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,
|
||||
footer-descent : 0pt,
|
||||
)
|
||||
set heading(bookmarked: false)
|
||||
set text(
|
||||
fill : txt-color1,
|
||||
size : size,
|
||||
|
|
@ -306,7 +307,7 @@ cmyk(25%,7%,0%,0%),
|
|||
}
|
||||
if p_i == pnum and p_i != pmax {
|
||||
// In section, current page
|
||||
pages.push(sym.ast.circle)
|
||||
pages.push(sym.ast.op.o)
|
||||
p_i += 1
|
||||
}
|
||||
while p_i < pmax {
|
||||
|
|
@ -417,23 +418,29 @@ cmyk(25%,7%,0%,0%),
|
|||
inset: 0.8cm, outset: 0pt,
|
||||
fill: sns-polylux-template_colormap.at(here()).at(0),
|
||||
|
||||
align(horizon + center, {
|
||||
text(
|
||||
fill: sns-polylux-template_second-text-color.at(here()),
|
||||
font: sns-polylux-template_title-font.at(here()),
|
||||
size: 32pt,
|
||||
weight: "bold",
|
||||
title
|
||||
align(horizon + center,
|
||||
heading(
|
||||
level: if new-sec { 1 } else { 2 },
|
||||
bookmarked: true,
|
||||
{
|
||||
text(
|
||||
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 { [] }
|
||||
)
|
||||
|
|
@ -480,6 +487,16 @@ cmyk(25%,7%,0%,0%),
|
|||
set align(horizon)
|
||||
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%)
|
||||
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
|
||||
})
|
||||
|
||||
|
|
@ -487,7 +504,6 @@ cmyk(25%,7%,0%,0%),
|
|||
} )
|
||||
|
||||
#let focus-slide(
|
||||
new-sec : none,
|
||||
page-number : true,
|
||||
hide-section : false,
|
||||
background : [],
|
||||
|
|
@ -614,7 +630,14 @@ cmyk(25%,7%,0%,0%),
|
|||
|
||||
show: pad.with(20%)
|
||||
|
||||
name
|
||||
heading(
|
||||
level: 1,
|
||||
bookmarked: true,
|
||||
{
|
||||
//set text(1em/1.4, weight: "regular")
|
||||
name
|
||||
}
|
||||
)
|
||||
progress-bar()
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue