polylux icon indicating copy to clipboard operation
polylux copied to clipboard

University theme ignores section name if title is not set

Open dblsaiko opened this issue 1 year ago • 0 comments

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

dblsaiko avatar May 22 '24 22:05 dblsaiko