Map LaTeX tabular sources onto route-D halign

This commit is contained in:
gloamxun committed 2026-10-24 01:22:36 +08:00
1 parent 20011eadd3
commit 95e677b5c7
5 files changed
+171 -5

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
`\bottomnumber`, `\totalnumber`), insertion classes (`\skip`, fraction and
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
PDF opt-in with `?engine=route-d`). 488 workspace tests are green and no oracle
PDF opt-in with `?engine=route-d`). 490 workspace tests are green and no oracle
fixture is ignored.
Status after G1 (P0-P2): the paragraph model reproduces TeX's passes,
@@ -60,7 +60,7 @@ table in [`TEX_CORE.md`](TEX_CORE.md) lists the evidence per milestone.
Remaining gaps:
1. `\halign` handles spans/omit/templates, `p{width}` paragraph columns (wrapped cell text grows row heights and participates in row-level page splitting), explicit per-column `\tabskip` glue, page-sized row chunks that keep the table's column widths, and booktabs rule weights with partial `\cmidrule(lr){a-b}` spans, `@{}`/`@{\hspace{...}}` column expressions and `\noalign{\vskip ...}` row glue, longtable head/foot sections repeat the head rows on every page chunk and paint the foot block once, but not the full TeX column algorithm (`\valign` interleaving);
1. `\halign` handles spans/omit/templates, `p{width}` paragraph columns (wrapped cell text grows row heights and participates in row-level page splitting), explicit per-column `\tabskip` glue, page-sized row chunks that keep the table's column widths, and booktabs rule weights with partial `\cmidrule(lr){a-b}` spans, `@{}`/`@{\hspace{...}}` column expressions and `\noalign{\vskip ...}` row glue, longtable head/foot sections repeat the head rows on every page chunk and paint the foot block once, LaTeX `tabular` sources route through the same halign path, but not the full TeX column algorithm (`\valign` interleaving, nested tables);
2. math is a compact subset without the CM math fonts (`cmmi`, `cmsy`, `cmex`),
display-math line breaking or `\mathchoice`-level styling;
3. text fonts are Liberation, not Computer Modern; Type1 fonts are not embeddable