andreasKroepelin / polylux

A package for creating slides in Typst
https://polylux.dev/book
MIT License
1.13k stars 51 forks source link

University theme ignores section name if title is not set #169

Open 2xsaiko opened 4 months ago

2xsaiko commented 4 months ago

Take e.g.

#slide(title: [Title 1], new-section: [Section 1])[
  #lorem(20)
]

#slide(new-section: [Section 2])[
  #lorem(20)
]

#slide(title: [Title 2])[
  #lorem(20)
]

Only the first and third slides will display section name, and the third slide will show up as Section 1.

Looking at the code, I can see that the new-section argument is entirely ignored if title is not set.

https://github.com/andreasKroepelin/polylux/blob/462716289947a30686694fcabaf47f04f8ab4e02/themes/university.typ#L126-L129