Skip to content

Incorrect page numbering when using #pagebreak(to) #2095

@Zheoni

Description

@Zheoni

Description

When using #pagebreak(to) in combination with a change in page numbering with a set rule, the (maybe) inserted empty page uses the incorrect page numbering.

This is a minimal example:

#set page(height: 5cm, numbering: none)
= This page should not be numbered
#lorem(20)

#pagebreak(weak: true, to: "odd")

#set page(numbering: "1")
#counter(page).update(1)

= This page should
#lorem(20)

image

The empty page has a page number when it should not.

This is in typst 0.7.0 (da8367e1) in windows. I got it from winget.

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstylingAbout set and show rules or style properties

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions