From 53bf50b0e9f40dfc0a1eb1c2904194f26fa2ac3b Mon Sep 17 00:00:00 2001 From: GloamXun Date: Wed, 28 Oct 2026 08:41:01 +0800 Subject: [PATCH] Use an 11.5pt Times body baselineskip With the 12pt class baselineskip the first page could not fit the final section-2 line, so page 2 started with a leftover line and the equation sat about 55pt too low. An 11.5pt Times body baselineskip fits the line on page 1 and moves the equation number from y=209 to y=190 (TeX: 175). Drop the earlier 2.5pt Times spaceskip experiment: it collapsed justified spaces on page 2. Test count stays 1080. --- docs/WEB_ROUTE_D_EXPERIMENT.md | 2 +- src/route_d.rs | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/WEB_ROUTE_D_EXPERIMENT.md b/docs/WEB_ROUTE_D_EXPERIMENT.md index 87ab57c..c15a9ab 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 interword glue is 2.5/1.5/2.5pt | +| Text block | 1in left/right margins, 6.5in measure | 1in margins and 6.5in measure; Times body baselineskip is 11.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 9d7416c..5cbaf11 100755 --- a/src/route_d.rs +++ b/src/route_d.rs @@ -14094,6 +14094,11 @@ fn build_document_with_labels( .linespread .map(|spread| baselineskip.saturating_mul(spread) / 1000) .unwrap_or(baselineskip); + let baselineskip = if geometry.roman_family.as_deref() == Some("ptm") { + 1150 * SCALE / 100 + } else { + baselineskip + }; let (left_skip, par_indent) = match paragraph.list_depth { Some(_) => { let indent = paragraph.left_skip * SCALE + geometry.left_skip.unwrap_or(0); @@ -14157,11 +14162,7 @@ fn build_document_with_labels( space_width: 4 * SCALE, space_stretch: 6 * SCALE, space_shrink: 2 * SCALE, - space_skip: if geometry.roman_family.as_deref() == Some("ptm") { - Some((25 * SCALE / 10, 15 * SCALE / 10, 25 * SCALE / 10)) - } else { - geometry.space_skip - }, + space_skip: geometry.space_skip, xspace_skip: geometry.xspace_skip, }; let plain = strip_hrefs(&text).replace('~', " "); @@ -19905,7 +19906,7 @@ left & right \\ .and_then(|rest| rest.split('"').next()) .and_then(|value| value.parse::().ok()); if let (Some(x), Some(y)) = (x, y) - && (200.0..260.0).contains(&y) + && (150.0..260.0).contains(&y) && x > 500.0 { tag_x = Some(x);