Use Times metrics for table column widths
Halign measured every cell with the CMR default even in Times documents, so the sample table was wider than TeX and page 3 ink reached x=553. Give Halign an optional paragraph face and refresh column widths in that face; route-D now selects TimesRoman for ptm tabulars. Page 3 ink bbox moves to x=540, matching the reference.
This commit is contained in:
1 parent
43f8c979cf
commit
049365d595
3 files changed
+29
-3
No files matched your search
@@ -4269,6 +4269,11 @@ fn tabular_unit(
|
||||
12,
|
||||
Vec::new(),
|
||||
);
|
||||
if geometry.roman_family.as_deref() == Some("ptm")
|
||||
&& let Some(VerticalItem::Halign(halign)) = unit.items.first_mut()
|
||||
{
|
||||
halign.set_font(texrra_tex_core::paragraph::ParagraphFont::TimesRoman);
|
||||
}
|
||||
let stretch = geometry.array_stretch.unwrap_or(1000);
|
||||
if separator != 6 * SCALE || stretch != 1000 {
|
||||
if let Some(VerticalItem::Halign(halign)) = unit.items.first_mut() {
|
||||
|
||||
Reference in new issue
Block a user