Compile a trustworthy TeX reference for fidelity checks
The checked-in template.pdf is stale: its references.bib snapshot does not match the checked-in .bib, so earlier scores used the wrong oracle. Add a reproducible pdflatex/bibtex script that copies the fixture, drops the unused cleveref package (cleveref/hyperref socket mismatch in this TeX Live), defines languagename for lipsum, and produces a valid 3-page reference. Re-score route-D against it: 1243 reference words, 1251 candidate words, ratio 0.8605.
This commit is contained in:
1 parent
b8573a2e70
commit
b7a8637835
3 files changed
+53
-8
No files matched your search
@@ -17,7 +17,7 @@ PDF is the best verified build; no unsafe layout experiment was kept.
|
||||
- Workspace tests: **1084 passed / 0 failed**
|
||||
- 438 engine / 451 core / 67 server / 71 v1 / 42 oracle / 10 route-D
|
||||
integration / 4 / 1
|
||||
- Fidelity harness: 3 vs 3 pages, 1246 vs 1251 words, ratio **0.8514**
|
||||
- Fidelity harness: 3 vs 3 pages, 1243 vs 1251 words, ratio **0.8605** with a freshly compiled reference
|
||||
- Formula band ink bbox:
|
||||
- TeX `x=184..519, y=230..269`
|
||||
- route-D `x=201..519, y=241..274`
|
||||
@@ -56,8 +56,9 @@ PDF is the best verified build; no unsafe layout experiment was kept.
|
||||
|
||||
```bash
|
||||
cargo test --workspace --offline
|
||||
./scripts/compile-tex-reference.sh fixtures/arxiv-template /tmp/texrra-arxiv-reference
|
||||
python3 scripts/tex-fidelity.py \
|
||||
--reference a_template_for_the_arxiv_texlive.pdf \
|
||||
--reference /tmp/texrra-arxiv-reference/template.pdf \
|
||||
--candidate a_template_for_the_arxiv_route_d_fixed.pdf \
|
||||
--json /tmp/fidelity.json
|
||||
```
|
||||
Reference in new issue
Block a user