diff --git a/docs/STATUS.md b/docs/STATUS.md index 67b0529..dc40ce8 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -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 diff --git a/src/rust_typeset/pdf/layout.rs b/src/rust_typeset/pdf/layout.rs index 8542a81..c1b85b3 100644 --- a/src/rust_typeset/pdf/layout.rs +++ b/src/rust_typeset/pdf/layout.rs @@ -626,7 +626,7 @@ fn layout_table( .map(|run| run.text.chars().count()) .sum::() as f64 * f64::from(cell_font_size) - * 0.45 + * 0.438 * 25.4 / 72.27; let mut width = 0.0_f64; diff --git a/tests/typeset.rs b/tests/typeset.rs index 8b9971d..cd02b6f 100644 --- a/tests/typeset.rs +++ b/tests/typeset.rs @@ -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" ); }