Skip to content

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

Closed

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

Activity

  1. added
    bug
    on Sep 9, 2023
  2. laurmaedje commented on Sep 25, 2023

    @laurmaedje
    Member

    Fixed by #2182

  3. added
    styling
    and removed on Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstyling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions