Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/furniture/running_header.typ

607 bytes, 1 run

created by r1870400018:63870, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1// oracle: levels 4
2// A running header from a context query: the last level-one heading at or before the page. The first pass
3// has no introspector, so the header settles only when its reads are compared and a second pass is made.
4#set page(
5 width: 220pt, height: 200pt, margin: (top: 46pt, bottom: 30pt, x: 24pt),
6 header: context {
7 let hs = query(heading.where(level: 1).before(here()))
8 if hs.len() > 0 { emph(hs.last().body) } else { [no chapter yet] }
9 },
10)
11#set heading(numbering: none)
12Preface text.
13#pagebreak()
14= Alpha
15Alpha text.
16#pagebreak()
17Alpha continues.
18#pagebreak()
19= Beta
20Beta text.