Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content from later slides may be fused with the first slide. #195

Open
TravisWhitaker opened this issue Dec 20, 2024 · 1 comment
Open

Comments

@TravisWhitaker
Copy link

I noticed the following behavior while working on something that automatically generates a presentation consisting of one slide per "item" in a particular set of data. It's possible that this is totally expected and I'm simply misunderstanding this package or Typst itself (in which case, please accept an advance apology for my ignorance).

If I build the following with Typst 0.12.0:

#import "@preview/polylux:0.3.1": *

#set page( paper: "presentation-16-9"
         )

#polylux-slide[
a
]
#polylux-slide[
b
]
#polylux-slide[
c
]
#polylux-slide[
d
]

Then I get an output with a single slide, where I would expect four slides:

Screenshot 2024-12-20 at 8 32 11 AM

Strangely if I build this program instead:

#import "@preview/polylux:0.3.1": *

#set page( paper: "presentation-16-9"
         )

#polylux-slide[
a

]
#polylux-slide[
b

]
#polylux-slide[
c

]
#polylux-slide[
d

]

Then only a and b are merged into the first slide:

Screenshot 2024-12-20 at 8 35 46 AM

The problem is somehow specific to the first slide. If I put an explicit break after the first slide I seem to always get the number of slides out that I'd expect:

#import "@preview/polylux:0.3.1": *

#set page( paper: "presentation-16-9"
         )

#polylux-slide[a]
#pagebreak()
#polylux-slide[b]
#polylux-slide[c]
#polylux-slide[d]

This yields:

Screenshot 2024-12-20 at 8 39 36 AM
@andreasKroepelin
Copy link
Owner

Huh, this is very strange indeed... I will have to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants