Fix the arXiv-template PDF output
The user-supplied template PDF exposed four concrete problems:
- title/headings were letter-spaced: plain text in a large paragraph took the
SizedText segment path and was scaled twice; the fallback run now stays at
the base size and is scaled once by the paragraph;
- the table lost its third column because unsupported math glyphs were sent
through the PDF fallback font; table-cell math now has a readable ASCII
fallback (Size (um), approx. 100, 10**6);
- fancyhdr's \cfoot{\thepage} was painted together with route-D's default page
number; default numbering is skipped for a fancy pagestyle;
- .bib data was ignored; simple @article/@inproceedings entries are now parsed
from project .bib files, inlined as thebibliography entries, and resolved by
the existing citation pass, producing References and [1]-[3].
The regenerated 3-page PDF was checked for title/heading spacing, table text,
references and a single page number per page. A project regression test covers
the .bib path, and the table/heading fixes have unit tests.
Remaining visible limits in this template: the complex display equation, the
\fbox/rule figure body, vector/PDF images and the author block layout.
Test count moves to 1069 (444 core, 432 engine, 65 server).
This commit is contained in:
1 parent
fab26234fc
commit
b1e3e03f00
9 files changed
+457
-26
No files matched your search
@@ -465,7 +465,8 @@ impl Halign {
|
||||
let baseline = center - (lines.len() as i64 - 1) * self.line_height / 2
|
||||
+ self.line_height * 3 / 10
|
||||
+ offset_index as i64 * self.line_height;
|
||||
let text_width = crate::text_width(line);
|
||||
let line = crate::table_cell_plain_text(line);
|
||||
let text_width = crate::text_width(&line);
|
||||
let offset = match cell.alignment {
|
||||
CellAlignment::Left => 0,
|
||||
CellAlignment::Center => (width - text_width).max(0) / 2,
|
||||
@@ -490,7 +491,8 @@ impl Halign {
|
||||
let Some((x, width)) = self.cell_span(row_index, index) else {
|
||||
continue;
|
||||
};
|
||||
let text_width = crate::text_width(line);
|
||||
let line = crate::table_cell_plain_text(line);
|
||||
let text_width = crate::text_width(&line);
|
||||
let offset = match cell.alignment {
|
||||
CellAlignment::Left => 0,
|
||||
CellAlignment::Center => (width - text_width).max(0) / 2,
|
||||
|
||||
Reference in new issue
Block a user