Match the reference table width to 0.1 mm

This commit is contained in:
gloamxun committed 2026-10-19 21:27:14 +08:00
1 parent e4c5b0cb32
commit 4c2ec0a402
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -142,7 +142,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- arXiv fixture: 3 Letter pages, ~3.6 MB, embedded Liberation faces only.
- Title/author/date/Introduction baselines within 0.3 pt of the XeLaTeX
reference; page 1 keeps the closing section-2 line above the footnote.
- Table 61.6 mm wide (reference 61.2 mm) with `\multicolumn` spans and
- Table 61.1 mm wide (reference 61.2 mm) with `\multicolumn` spans and
partial `\cmidrule` rules; table rules in the SVG preview use absolute page
coordinates, matching the PDF.
- Remaining blocker: PDF link annotations (`/Annots`); printpdf 0.3.4 has
+1 -1
View File
@@ -626,7 +626,7 @@ fn layout_table(
.map(|run| run.text.chars().count())
.sum::<usize>() as f64
* f64::from(cell_font_size)
* 0.45
* 0.438
* 25.4
/ 72.27;
let mut width = 0.0_f64;
+1 -1
View File
@@ -1136,7 +1136,7 @@ fn arxiv_table_rules_follow_a_narrow_centered_table() {
.map(|(_, width, _)| *width)
.fold(0.0_f64, f64::max);
assert!(
(60.5..62.5).contains(&widest),
(60.8..61.4).contains(&widest),
"natural-width table should match the reference width (~61.2mm), got {widest:.2}mm"
);
}