fix outline
This commit is contained in:
parent
7863c6d7a8
commit
ee60237550
1 changed files with 42 additions and 19 deletions
|
|
@ -106,6 +106,7 @@ cmyk(25%,7%,0%,0%),
|
||||||
header-ascent : 0pt,
|
header-ascent : 0pt,
|
||||||
footer-descent : 0pt,
|
footer-descent : 0pt,
|
||||||
)
|
)
|
||||||
|
set heading(bookmarked: false)
|
||||||
set text(
|
set text(
|
||||||
fill : txt-color1,
|
fill : txt-color1,
|
||||||
size : size,
|
size : size,
|
||||||
|
|
@ -306,7 +307,7 @@ cmyk(25%,7%,0%,0%),
|
||||||
}
|
}
|
||||||
if p_i == pnum and p_i != pmax {
|
if p_i == pnum and p_i != pmax {
|
||||||
// In section, current page
|
// In section, current page
|
||||||
pages.push(sym.ast.circle)
|
pages.push(sym.ast.op.o)
|
||||||
p_i += 1
|
p_i += 1
|
||||||
}
|
}
|
||||||
while p_i < pmax {
|
while p_i < pmax {
|
||||||
|
|
@ -417,23 +418,29 @@ cmyk(25%,7%,0%,0%),
|
||||||
inset: 0.8cm, outset: 0pt,
|
inset: 0.8cm, outset: 0pt,
|
||||||
fill: sns-polylux-template_colormap.at(here()).at(0),
|
fill: sns-polylux-template_colormap.at(here()).at(0),
|
||||||
|
|
||||||
align(horizon + center, {
|
align(horizon + center,
|
||||||
text(
|
heading(
|
||||||
fill: sns-polylux-template_second-text-color.at(here()),
|
level: if new-sec { 1 } else { 2 },
|
||||||
font: sns-polylux-template_title-font.at(here()),
|
bookmarked: true,
|
||||||
size: 32pt,
|
{
|
||||||
weight: "bold",
|
text(
|
||||||
title
|
fill: sns-polylux-template_second-text-color.at(here()),
|
||||||
|
font: sns-polylux-template_title-font.at(here()),
|
||||||
|
size: 32pt,
|
||||||
|
weight: "bold",
|
||||||
|
title
|
||||||
|
)
|
||||||
|
if subtitle != none {
|
||||||
|
smallcaps(text(
|
||||||
|
fill: sns-polylux-template_second-text-color.at(here()),
|
||||||
|
font: sns-polylux-template_title-font.at(here()),
|
||||||
|
size: 24pt,
|
||||||
|
" — " + subtitle
|
||||||
|
))
|
||||||
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
if subtitle != none {
|
)
|
||||||
smallcaps(text(
|
|
||||||
fill: sns-polylux-template_second-text-color.at(here()),
|
|
||||||
font: sns-polylux-template_title-font.at(here()),
|
|
||||||
size: 24pt,
|
|
||||||
" — " + subtitle
|
|
||||||
))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
)
|
)
|
||||||
} else { [] }
|
} else { [] }
|
||||||
)
|
)
|
||||||
|
|
@ -480,6 +487,16 @@ cmyk(25%,7%,0%,0%),
|
||||||
set align(horizon)
|
set align(horizon)
|
||||||
set text(size: sns-polylux-template_size.at(here()), top-edge: 20pt, bottom-edge: 0pt)
|
set text(size: sns-polylux-template_size.at(here()), top-edge: 20pt, bottom-edge: 0pt)
|
||||||
show: block.with(inset: (x: 1.2cm, y:.2cm), width: 100%)
|
show: block.with(inset: (x: 1.2cm, y:.2cm), width: 100%)
|
||||||
|
if title != none and hide-title {
|
||||||
|
// hidden and out of layout, but exists, in order to add it to the outlined
|
||||||
|
place(hide(
|
||||||
|
heading(
|
||||||
|
level: if new-sec { 1 } else { 2 },
|
||||||
|
bookmarked: true,
|
||||||
|
{ title + if subtitle != none {" — " + subtitle } else { "" }}
|
||||||
|
)
|
||||||
|
))
|
||||||
|
}
|
||||||
body
|
body
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -487,7 +504,6 @@ cmyk(25%,7%,0%,0%),
|
||||||
} )
|
} )
|
||||||
|
|
||||||
#let focus-slide(
|
#let focus-slide(
|
||||||
new-sec : none,
|
|
||||||
page-number : true,
|
page-number : true,
|
||||||
hide-section : false,
|
hide-section : false,
|
||||||
background : [],
|
background : [],
|
||||||
|
|
@ -614,7 +630,14 @@ cmyk(25%,7%,0%,0%),
|
||||||
|
|
||||||
show: pad.with(20%)
|
show: pad.with(20%)
|
||||||
|
|
||||||
name
|
heading(
|
||||||
|
level: 1,
|
||||||
|
bookmarked: true,
|
||||||
|
{
|
||||||
|
//set text(1em/1.4, weight: "regular")
|
||||||
|
name
|
||||||
|
}
|
||||||
|
)
|
||||||
progress-bar()
|
progress-bar()
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue