Skip to content

Weak pagebreak breaks pagebreak(to: _) #2841

@lkndl

Description

@lkndl

Description

Similar to #2473, combining a pagebreak(to: and a show rule to start chapters on a new page breaks the parity check.

#set page(paper: "a8", numbering: "1")
#show heading.where(level: 1): it => {
  pagebreak(weak: true)
  it
}

#lorem(20)
#pagebreak(to: "odd")

= Part 1
#lorem(45)

= Part 2
#lorem(20)

2023-12-03_15-34

Reproduction URL

No response

Operating system

Web app, Linux

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