Match the reference table width for math cells

This commit is contained in:
gloamxun committed 2026-10-19 18:41:47 +08:00
1 parent 0c615c8e82
commit 247893282b
4 files changed
+14 -2

No files matched your search

+8
View File
@@ -1062,6 +1062,14 @@ fn arxiv_table_rules_follow_a_narrow_centered_table() {
.all(|(x, width)| *x > 20.0 && *width < 140.0),
"table rules should be centered and narrower than the text block: {table_rules:?}"
);
let widest = table_rules
.iter()
.map(|(_, width)| *width)
.fold(0.0_f64, f64::max);
assert!(
(60.5..62.5).contains(&widest),
"natural-width table should match the reference width (~61.2mm), got {widest:.2}mm"
);
}
#[test]