oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/intro/counter_heading.typ
826 bytes, 1 run
created by r1870400018:64160, 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 | // The heading counter: numbered headings step their level, unnumbered ones do not. |
| 2 | // intro: needs heading numbering |
| 3 | #set heading(numbering: "1.a") |
| 4 | = A |
| 5 | #context [#metadata((counter(heading).get(), counter(heading).display())) <probe>] |
| 6 | == B |
| 7 | == C |
| 8 | #context [#metadata((counter(heading).get(), counter(heading).display(), counter(heading).display("I.1"), counter(heading).display(both: true))) <probe>] |
| 9 | #set heading(numbering: none) |
| 10 | = Unnumbered |
| 11 | #context [#metadata(counter(heading).get()) <probe>] |
| 12 | #set heading(numbering: "1.") |
| 13 | #counter(heading).update(5) |
| 14 | = D |
| 15 | #context [#metadata((counter(heading).get(), counter(heading).final(), query(heading).len(), query(heading.where(level: 2)).len())) <probe>] |
| 16 | #heading(level: 3)[E] |
| 17 | #context [#metadata((counter(heading).get(), counter(heading).display((..n) => n.pos().len()))) <probe>] |