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

bad slide layout when content is none #50

Open QuadnucYard opened 1 month ago

QuadnucYard commented 1 month ago

Use the Quick start example, and add a slide with content set to {} (or none)

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

#let s = themes.simple.register(aspect-ratio: "16-9")
#let (init, slides) = utils.methods(s)
#show: init

#let (slide, empty-slide) = utils.slides(s)
#show: slides

= Title

#slide(self => (self.methods.touying-slide)(self: self, repeat: none, section: (title: [Contents]), {}))

== First Slide

Hello, Touying!

This will yield:

image

If we put the slide at the end:

= Title

== First Slide

Hello, Touying!

#slide(self => (self.methods.touying-slide)(self: self, repeat: none, section: (title: [Contents]), {}))

image

Enter-tainer commented 1 month ago

I believe this is related #35