Skip to content

page style after pagebreak(to: "odd") affects the even numbered page before the break #2162

@frugal-10191

Description

@frugal-10191

Description

Some text on page 1
#pagebreak(to: "odd") //we should now be on page 3
#set page(fill: orange) // This sets the file from page 2...
this is some text on page 3

Expected result: Pages 1 and 2 should be white, and page 3 should be orange.

Actual result: Page 1 is white, but page 2 is Orange.

Some text on page 1
#pagebreak()
#pagebreak(to: "odd") //we should no be on page 3
#set page(fill: orange) // This sets the file from page 2...
this is some text on page 3

Putting an explicit page break before the pagebreak(to:"odd") exhibits the correct behaviour (1&2 white, 3 orange)

Some text on page 1
#pagebreak()
#pagebreak(to: "odd", weak: true) //we should no be on page 3
#set page(fill: orange) // This sets the file from page 2...
this is some text on page 3

adding "weak:true" to the page break exhibits the same behaviour as the error case (1 white, 2 and 3 orange)

putting any text between the two pagebreaks ensures that the page colours are correct, but now there is unwanted text.

Reproduction URL

n/a

Operating system

Web app

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