1.6 KiB
Executable File
1.6 KiB
Executable File
Scoped route-D fidelity goal
Start baseline: engine c6743e2, 1089 tests, fidelity 0.8944 against
/tmp/texrra-arxiv-reference/template.pdf (freshly compiled), warm preview
32–50 ms.
Scope
- Page 2/3 flow — implement a bounded microtype-like text-width
expansion/line-fit model for Times body text so 2.1 is six lines and
3.3 Tablesreturns to the bottom of page 2. - Display-math internal geometry — fraction density and sum/script vertical spacing, checked with the arXiv equation bbox.
- Float placement — verify the arXiv and article samples without regressing the Times table column fix.
Acceptance
- 2.1 paragraph: six lines.
3.3 Tableson page 2.- Page ink bbox no regression; page 3 right edge 540.
- Formula tag
y≈174.9, formula text span close tox=132.7..540.7. - At least 1089 tests; warm arXiv preview under 100 ms.
- Fresh TeX-vs-route comparison and fidelity score in the final report.
Rejected approaches
- Vertical glue/space_before swaps: moved sections but never fit 3.3 and lowered the fidelity score.
- Uniform 1%/3% body font shrink (9.9/9.7 pt): 3.3 stayed on page 3.
- Uniform 3 pt spaces between every top-level math atom: visually over-spaced.
Planned model
A line-level bounded expansion model: allow a small, symmetric glyph-width expansion window during line breaking (microtype-like), record the chosen expansion per line, and apply the same factor when painting PDF/SVG text. This keeps line targets and glyph advances consistent instead of adding overflow or collapsing interword glue.