touying-typ / touying

Touying is a powerful package for creating presentation slides in Typst.
https://touying-typ.github.io/touying/
MIT License
460 stars 10 forks source link

Weird behavior of touying-outline in theme "metropolis" with slide-level 2 #40

Closed ShampooDeng closed 2 months ago

ShampooDeng commented 2 months ago

Description Level3 heading gets seperated into a new slide when slide-level is set to 2 globally in theme "metropolis". And level1 heading and level3 heading are assigned to the header of subsection slide(level2 heading content) and subsubsection slide(level3 heading content) respectively. This phenomenon is shown in the screenshot at the bottom.

Reproduce typst version: 0.11.0 (2bf9f95d) touying version: 0.4.0 The following script will reporoduce this issue.

// I just copyed the temple of touying-aqua, and made modifications to it
#let s = themes.metropolis.register(aspect-ratio: "16-9")
//...
#show: slides.with(
  outline-title: [outline],
  slide-level: 2,
)

= section

== subsection

TODO

=== subsubsection

TODO

Expected behavior Outline presents a table of content with a depth to level 2 heading. And level 2 heading gets placed in the slide header, while level 3 heading is in the body of the slide. It should be look like the image below. image

Screenshot image

ShampooDeng commented 2 months ago

Setting the slide-level to 1 gets exactlly what I want, except the outline only presents level 1 heading. I'm not sure if it's bug, or it's designed in this way 🤔 .

OrangeX4 commented 2 months ago

This is the expected behavior, currently touying has no subsubsection, your subsubsection is just a title, currently metropolis displays title first, then the current section, by default subsection is not considered.