touying-typ / touying

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

Weird behavior of outline slide #23

Closed s92077 closed 3 months ago

s92077 commented 3 months ago

In the current version (version 0.3.3) of dewdrop theme, if there are too many sections to be packed into a single outline slide, it seem that each of the slide of the outline create a new section/subsection, which is not desired. Is there any quick fix to that?

OrangeX4 commented 3 months ago

Could you provide a concrete example?

s92077 commented 3 months ago

For example, in the following code, each section is repeated four times in the outline.

#import "@preview/touying:0.3.3": *

#let s = themes.dewdrop.register(
  aspect-ratio: "16-9",
  footer: [Dewdrop],
  navigation: "mini-slides",
)
#let s = (s.methods.info)(
  self: s,
  title: [Title],
  subtitle: [Subtitle],
  author: [Authors],
  date: datetime.today(),
  institution: [Institution],
)
#let (init, slides, touying-outline, alert) = utils.methods(s)
#show: init

#show strong: alert

#let (slide, empty-slide, title-slide, new-section-slide, focus-slide) = utils.slides(s)
#show: slides

= 1
= 2
= 3
= 4
= 5
= 6
= 7
= 8
= 9
= 10
= 11
OrangeX4 commented 3 months ago

It's really a bug, but not a bug with outline slide. If you want an outline slide that doesn't create new sections, you can

#slide[
  #touying-outline()
]

The bug here is that a multi-page slide creates the same section multiple times.