Skip to content

Incorrect introspection in outline for headings using weak page breaks #4527

@tingerrr

Description

@tingerrr

Description

The page numbers reported in the outline of the following code are off by one:

#outline()

#set page(numbering: "I.")
#set heading(numbering: "1.")
#show heading: it => pagebreak(weak: true) + it

= Hello
#lorem(1000)

= World
#lorem(1000)

image
World is located on page IV.

This was introduced somewhere between a2c9807 and 34990f7.

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingintrospectionRelated to the introspection categoryurgentShould be fixed before the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions