Fix PDF page origin and add the fidelity/latency roadmap

The PDF writer received the raw geometry origin instead of the document's
effective offsets, so PDFs started at x=0 and clipped running headers above the
page even though the preview looked shifted. PDF output now uses the same
h_offset/v_offset as the preview.

For a geometry document with a 6.5in measure this restores the 1in text block;
the arXiv template's page-2/3 headers ("arXiv Template", "A Preprint") now
appear. A regression test checks the centred text block.

Add docs/TEX_FIDELITY_ROADMAP.md: page-frame/class/font/citation/math
fidelity workstreams, incremental revision/patch protocol, milestones and the
<100ms warm preview target. Test count is 1070 (433 engine).
This commit is contained in:
gloamxun committed 2026-10-27 20:55:51 +08:00
1 parent 7407d4ed42
commit 30f1df03ca
6 files changed
+197 -10

No files matched your search

+9 -3
View File
@@ -46,7 +46,7 @@ now means route-D.
| Area | Route-D | Evidence / impact |
| --- | --- | --- |
| Article/report basics: title, sections, lists, TOC, page numbers | Supported | corpus and 1069-test suite |
| Article/report basics: title, sections, lists, TOC, page numbers | Supported | corpus and 1070-test suite |
| Inline/display math, equations, tags, cleveref | Supported | math tests, oracle fixtures |
| Floats, captions, tables, booktabs | Supported | table/math tests, corpus |
| PNG/JPEG/BMP `\includegraphics` | Supported | project image tests |
@@ -137,8 +137,8 @@ PDF was rendered page-by-page next to the route-D output.
| --- | --- | --- |
| Page count / paper | 3 pages, letter | 3 pages, letter |
| Typeface | Times (`ptm`, arxiv.sty) | Computer Modern / Liberation fallback |
| Text block | 1in left/right margins, 6.5in measure | starts at x=0 with a 6.67in measure |
| Running header | `arxiv Template` / `A PREPRINT` | absent |
| Text block | 1in left/right margins, 6.5in measure | 1in margins and 6.5in measure after the page-origin fix; body face still differs |
| Running header | `arxiv Template` / `A PREPRINT` | `arXiv Template` / `A Preprint` on pages 2–3; small-caps styling differs |
| Title | `A TEMPLATE FOR THE arxiv STYLE`, small caps, rules above/below | normal case, no rules |
| Author block | two affiliations, ORCID icons, footnote symbols | one concatenated paragraph, no ORCID |
| Abstract/keywords | small-caps heading, bold `Keywords`, `·` separators | bold heading, comma separators |
@@ -149,6 +149,12 @@ PDF was rendered page-by-page next to the route-D output.
| References | author-year, italic venue, DOI link | numeric `[1]`–`[3]`, plain venue text |
| Float order | figure/table on page 3 with section 3.4 | figure/table float to page 2 top |
After this comparison, the PDF page origin was fixed: the PDF writer had
ignored the document's horizontal/vertical offsets, so route-D PDFs started at
x=0 and clipped headers above the page. The revised PDF now has the 1in text
block and page 2/3 headers. Title vertical spacing, Times metrics, author
blocks, citation style, math and float placement still differ.
The visual difference is therefore not a single bug. Route-D models the
document semantically and lays out paragraphs/tables/floats with its own page
builder; it does not execute the LaTeX page builder, class styling, natbib