Skip to content

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

Open
@TravisWhitaker

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions