Skip to content

toolbox.current-section is empty in header for first page #216

@luxzeitlos

Description

@luxzeitlos

Hello

it seems that when using #toolbox.current-section in the header of the first page is empty, even when set before calling #slide.
It however works for consecutive slides, or when #toolbox.register-section is called before #set page.

So this does not work as expected:

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

// #toolbox.register-section[X] // This here actually works, and is displayed on the first slide.

#set page(
  header: toolbox.current-section,
  paper: "presentation-16-9",
)

#toolbox.register-section[Content A] // this does *NOT* work, but I expected it to work

#slide[
  Content A
]

#toolbox.register-section[Section B]
#slide[
  Content B
]

Metadata

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