oxedyne/fe2o3/fe2o3_austenite/tests/oracle/fixtures/include_fixture/root.typ
1.6 KiB, 1 run
created by r1870400018:58095, 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 oracle harness's cross-directory-include fixture -- the regression root for the bug found by |
| 2 | // adversarial QA of the Lucronics book: a CHAPTER's own `#include "../x.typ"` (not the book root's) was |
| 3 | // neither resolved nor reported, and the raw `#include "..."` line printed as literal body text while the |
| 4 | // included file's content -- figures and prose both -- vanished with no line in the `[austenite] skipped:` |
| 5 | // report. `chap_dynstrat_captonic_dynamics.typ:51` includes `../evidence/lucronics_evidence.typ` this |
| 6 | // way; this fixture reproduces the same shape (a chapter one directory down from the root, itself |
| 7 | // including a file from a SIBLING directory via `../`) without depending on the real book tree. |
| 8 | // |
| 9 | // Directory layout, mirroring Lucronics': |
| 10 | // include_fixture/root.typ (this file) |
| 11 | // include_fixture/chapters/chapter_one.typ (the "book root" includes this) |
| 12 | // include_fixture/evidence/evidence_one.typ (the CHAPTER includes this, via `../evidence/...`) |
| 13 | // |
| 14 | // A build that stops following the chapter's own include regresses this root two ways at once: the |
| 15 | // evidence paragraph and figure disappear from the page/anchor counts below, AND the literal |
| 16 | // `#include "../evidence/evidence_one.typ"` line would reappear as a paragraph of body text, which also |
| 17 | // moves the pinned PDF hash. Either failure mode reds this fixture. |
| 18 | |
| 19 | #set page(width: 595.276pt, height: 841.89pt, margin: 56.9pt) |
| 20 | #set text(size: 11pt, font: "Libertinus Serif") |
| 21 | #set par(justify: true, leading: 0.65em, spacing: 1.2em, first-line-indent: 0pt) |
| 22 | |
| 23 | #include "chapters/chapter_one.typ" |