fix outline

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-10-27 17:59:51 +01:00
parent 7863c6d7a8
commit ee60237550
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -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,7 +418,11 @@ cmyk(25%,7%,0%,0%),
inset: 0.8cm, outset: 0pt,
fill: sns-polylux-template_colormap.at(here()).at(0),
align(horizon + center, {
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()),
@ -433,7 +438,9 @@ cmyk(25%,7%,0%,0%),
" " + 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%)
heading(
level: 1,
bookmarked: true,
{
//set text(1em/1.4, weight: "regular")
name
}
)
progress-bar()
})