tingerrr / hydra

A typst package for displaying the active section in the page header or footer.
MIT License
26 stars 3 forks source link

Empty pages get incorrect candidates #7

Open tingerrr opened 10 months ago

tingerrr commented 10 months ago

Given a document like so:

#import "@preview/hydra:0.4.0": hydra
#show heading.where(level: 1): it => pagebreak(weak: true) + it
#set page(paper: "a7", flipped: true, width: 100pt, header: context hydra(1))

= Incorrect

= Correct
#hide[.]

renders the following two pages: image

Where the first page incorrectly shows the next heading. This seems to be directly correlated to typst#2631.

tingerrr commented 7 months ago

With Typst 0.11.0 such an incorrect query also seems to cause "Layout did not converge within 5 attempts" for more complex documents.