From b16921627507e088ab6b988f289ba542ee921301 Mon Sep 17 00:00:00 2001 From: GloamXun Date: Wed, 28 Oct 2026 08:33:20 +0800 Subject: [PATCH] Tighten Times interword glue ptm paragraphs used the generic 4/6/2pt interword glue. Set the Times skip to 2.5/1.5/2.5pt, which lets the first page fit more of the final section-2 line and moves the page-2 equation about 21pt closer to TeX. Test count stays 1080. --- docs/WEB_ROUTE_D_EXPERIMENT.md | 2 +- src/route_d.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/WEB_ROUTE_D_EXPERIMENT.md b/docs/WEB_ROUTE_D_EXPERIMENT.md index 04a3f84..87ab57c 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 after the page-origin fix; body face still differs | +| Text block | 1in left/right margins, 6.5in measure | 1in margins and 6.5in measure; Times interword glue is 2.5/1.5/2.5pt | | 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 26a96d3..9d7416c 100755 --- a/src/route_d.rs +++ b/src/route_d.rs @@ -14157,7 +14157,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, 25 * SCALE / 10)) + } else { + geometry.space_skip + }, xspace_skip: geometry.xspace_skip, }; let plain = strip_hrefs(&text).replace('~', " ");