andreasKroepelin / polylux

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

Adding subsection in the outline ? #156

Open eusebe opened 5 months ago

eusebe commented 5 months ago

Hello everyone,

I am a new user of typst and polylux, and I have not yet explored how to create or adapt an existing theme to my needs.

Before doing so, I have a somewhat naive question: do you think it is possible to integrate subsections into the document structure and have them appear in the outline? We rarely need them for short presentations, but I often use this second level of structure in my classes.

Thank you very much! I apologize if the answer to my question seems obvious.

m-kru commented 2 months ago

#outline(target: heading) includes all headings (aka. subsections) in the outline. If you want to stop at specific level, I guess you can use heading.where(level: {you desired level}). You might also want to add the indent: 1em argument to indent subsections.