Add regression test for #2631 (#4328)

This commit is contained in:
Laurenz 2024-06-04 17:05:37 +02:00 committed by GitHub
parent 9afd247534
commit 1e2e07adff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -238,3 +238,23 @@ Look, ma, no page numbers!
#set page(header: auto, footer: auto)
Default page numbers now.
--- issue-2631-page-header-ordering ---
#set text(6pt)
#show heading: set text(6pt, weight: "regular")
#set page(
margin: (x: 10pt, top: 20pt, bottom: 10pt),
height: 50pt,
header: context {
let prev = query(selector(heading).before(here()))
let next = query(selector(heading).after(here()))
let prev = if prev != () { prev.last().body }
let next = if next != () { next.first().body }
(prev: prev, next: next)
}
)
= First
Hi
#pagebreak()
= Second