oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/intro/query_heading.typ
515 bytes, 1 run
created by r1870400018:64184, 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 | // query(heading): the headings in document order with their fields, and the bounds `before` and `after` |
| 2 | // put on them, read from contexts that see the whole document. |
| 3 | // intro: needs heading numbering |
| 4 | #set heading(numbering: "1.") |
| 5 | #context [#metadata(query(heading).map(h => (h.level, h.body))) <probe>] |
| 6 | = One |
| 7 | == Two <two> |
| 8 | = Three |
| 9 | #context [#metadata((query(heading.where(level: 1)).len(), query(selector(heading).before(<two>)).len(), query(selector(heading).after(<two>)).len(), locate(<two>).page())) <probe>] |