diff --git a/docs/TEX_FIDELITY_BENCHMARK.md b/docs/TEX_FIDELITY_BENCHMARK.md index bd85f87..9652304 100755 --- a/docs/TEX_FIDELITY_BENCHMARK.md +++ b/docs/TEX_FIDELITY_BENCHMARK.md @@ -21,8 +21,8 @@ The current arXiv template comparison reports: ```text reference_pages 3, candidate_pages 3 -reference_words 1246, candidate_words 1256 -word_sequence_ratio 0.853 +reference_words 1246, candidate_words 1253 +word_sequence_ratio 0.851 page 1 ink bbox: TeX [72, 79, 540, 721] route-D [71, 79, 540, 724] page 2 ink bbox: TeX [72, 36, 540, 748] route-D [71, 41, 540, 751] page 3 ink bbox: TeX [72, 36, 540, 748] route-D [71, 41, 540, 751] diff --git a/docs/WEB_ROUTE_D_EXPERIMENT.md b/docs/WEB_ROUTE_D_EXPERIMENT.md index c15a9ab..f26cde7 100644 --- a/docs/WEB_ROUTE_D_EXPERIMENT.md +++ b/docs/WEB_ROUTE_D_EXPERIMENT.md @@ -140,7 +140,7 @@ 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) | Times Roman/bold/italic metrics (`ptmr8t`, `ptmb8t`, `ptmri8t`, `ptmbi8t`) with Liberation Serif TrueType | -| Text block | 1in left/right margins, 6.5in measure | 1in margins and 6.5in measure; Times body baselineskip is 11.5pt | +| Text block | 1in left/right margins, 6.5in measure | 1in margins and 6.5in measure; Times body baselineskip is 11.5pt with 2.5/1.5/0.83pt interword glue | | 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 | uppercase Times with rules above/below | | Author block | two affiliations, ORCID icons, footnote symbols | two-column author table; ORCID shows an `iD` text marker instead of the vector icon | diff --git a/src/route_d.rs b/src/route_d.rs index 5cbaf11..8aec16c 100755 --- a/src/route_d.rs +++ b/src/route_d.rs @@ -14162,7 +14162,11 @@ fn build_document_with_labels( space_width: 4 * SCALE, space_stretch: 6 * SCALE, space_shrink: 2 * SCALE, - space_skip: geometry.space_skip, + space_skip: if geometry.roman_family.as_deref() == Some("ptm") { + Some((25 * SCALE / 10, 15 * SCALE / 10, 83 * SCALE / 100)) + } else { + geometry.space_skip + }, xspace_skip: geometry.xspace_skip, }; let plain = strip_hrefs(&text).replace('~', " ");