intro rasta

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-10-16 17:10:52 +02:00
parent 679076fc63
commit 23440a4b3c
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
8 changed files with 1374 additions and 86 deletions

View file

@ -38,6 +38,7 @@ cmyk(25%,7%,0%,0%),
#let sns-polylux-template_second-text-color = state("txt_color2", none)
#let sns-polylux-template_title-text-color = state("title_color", none)
#let sns-polylux-template_size = state("size", none)
#let sns-polylux-template_section-size = state("section-size",none)
#let sns-polylux-template_title-size = state("title-size", none)
// Data
@ -67,6 +68,7 @@ cmyk(25%,7%,0%,0%),
txt-color2 : white,
title-color : rgb("#444444"),
size : 20pt,
section-size : 20pt,
title-size : 64pt,
bkgnd-color : white,
@ -93,6 +95,7 @@ cmyk(25%,7%,0%,0%),
sns-polylux-template_title-text-color.update(title-color)
sns-polylux-template_size.update(size)
sns-polylux-template_title-size.update(title-size)
sns-polylux-template_section-size.update(section-size)
sns-polylux-template_colormap.update(colormap)
@ -127,7 +130,7 @@ cmyk(25%,7%,0%,0%),
context {
//let section-pages = sns-polylux-template_section-pages.final()
if not "END" in sns-polylux-template_section-pages.at(here()).keys() {
let page_num = counter("logical-slide").at(here())
let page_num = counter("logical-slide").get()
sns-polylux-template_section-pages.update(secpages => {
secpages.insert("END", page_num)
secpages
@ -138,7 +141,7 @@ cmyk(25%,7%,0%,0%),
#let register-section(title, no_dedicated_slide: false) = context {
// YUCKKKKK, but polylux don't allows access to integers soooooo
let page_num = counter("logical-slide").at(here()) //sns-polylux-template_slide-pages.at(here())
let page_num = counter("logical-slide").get() //sns-polylux-template_slide-pages.at(here())
if no_dedicated_slide {
page_num.at(0) += 1
}
@ -282,9 +285,11 @@ cmyk(25%,7%,0%,0%),
counter("logical-slide").update( n => n - 1 )
} )
#let sections() = context {
#let sections(pos_before_slide) = context {
let section-pages = sns-polylux-template_section-pages.final()
let pnum = counter("logical-slide").at(here()).first() + 1
let section-size = sns-polylux-template_section-size.at(pos_before_slide)
set text(size: section-size)
let pnum = counter("logical-slide").at(pos_before_slide).first() + 1
pl.toolbox.all-sections((sections, current) => {
let beg-end-section = (:)
let prev-sec = none
@ -383,6 +388,8 @@ cmyk(25%,7%,0%,0%),
let progress_bar_height = 3pt
let title_bar_height = 2cm
let pos_before_slide = here()
// HEADER
let header = align(top, context( {
let logo = sns-polylux-template_logo-2.at(here())
@ -412,7 +419,7 @@ cmyk(25%,7%,0%,0%),
align(horizon + center,text(fill: sns-polylux-template_second-text-color.at(here()), {
v(-1em)
if hide-section { hide(sections()) } else { sections() }
if hide-section { hide(sections(pos_before_slide)) } else { sections(pos_before_slide) }
}))
),
grid.cell(colspan: columns.len(), progress-bar()),