Skip to content

#pause may hide parts of the template (or: we need a way to reset the pause counter) #192

Open
@rmburg

Description

Suppose we have a template like follows:

#let slide(title: "", content) = {
  let content = {
    grid(
      columns: (1fr, 3.5em),
      // Title and content
      grid(
        rows: (3em, 1fr),
        text(size: 25pt, title),
        text(size: 18pt, content),
      ),
      // Sidebar
      grid(
        rows: (1fr, 2em),
        [],
        text(size: 14pt, logic.logical-slide.display()),
      ),
    )
  }

  logic.polylux-slide(content)
}

If we now use #pause in such a slide, the sidebar of the template will be hidden on all but the last subslide.
To fix this, we would need some sort of mechanism to reset or scope the effect of #pause.
I tried wrapping the last grid in an only((:)) block, but this didn't work.

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