From c9a074b1feda53e503b7252b960ef252eeea7dea Mon Sep 17 00:00:00 2001 From: GloamXun Date: Sun, 25 Oct 2026 02:37:42 +0800 Subject: [PATCH] Audit the M3-M7 stage and record residual gaps --- docs/TEX_CORE.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/TEX_CORE.md b/docs/TEX_CORE.md index 9eedd85..2a4ae58 100755 --- a/docs/TEX_CORE.md +++ b/docs/TEX_CORE.md @@ -411,6 +411,32 @@ Residual approximations, documented rather than special-cased: - NFSS family switching and multi-face Computer Modern outlines are not implemented (route-D embeds Liberation faces). +### G2 audit (M3-M7) + +The `M3`-`M7` stage of the roadmap is implemented to the extent recorded below. +The goal ran for 90 rounds and landed 123 commits (`8c42f2d..7350fb7`); the +workspace suite is at 802 tests. + +| Milestone | Evidence | +| --- | --- | +| M3 `\halign` | shared column widths, `l`/`c`/`r`/`p{width}` with wrapped cells, `\tabskip`, `@{}`/`@{\hspace{...}}`, booktabs rule weights and partial spans, `\cline`, `\noalign{\vskip}`, `\multicolumn`, longtable heads/feet, `*{n}{cols}`, vertical `|` rules, optional position/bracket arguments, row `\\[dim]` gaps, LaTeX `tabular`/`longtable` capture, and page splitting that keeps column geometry. | +| M4 math | Computer Modern math metrics (cmmi/cmsy/cmex/msbm/eufm) embedded as Type1 outlines, TeX's 3/4/5mu class table, `\mid`/`\colon`, `\mskip`-family dimension scans, `\frac` and infix fraction forms, `\left`/`\right`/`\middle` and `\big` CMEX sizing, `align`/`gather` row layout with per-row tags, equation numbering with `\eqref`/`\ref`/`\tag`/`\notag`, math alphabets (`\mathbf`/`\mathit`/`\mathsf`/`\mathtt`/`\mathcal`/`\mathbb`/`\mathfrak`) and wide-display line splitting. | +| M5 fonts | twelve Computer Modern text programs (roman/bold/italic/bold-italic/mono/sans/sans-bold/sans-italic/small-caps/slanted/bold-slanted/mono-italic) plus four math programs, all embedded as Type1 with TFM widths; NFSS declarations, legacy switches, paragraph/inline runs with relative composition, per-run base sizes, superscripts/subscripts, accent composition, case commands, per-glyph Liberation fallback and Type1 ToUnicode CMaps. | +| M6 class execution | article size options and `\linespread`, title/author/date and `\maketitle`, five-level sectioning with counters, TOC and float lists with page numbers and dot leaders, floats and in-text graphics with `\includegraphics` sizing/`\graphicspath`, footnote insertions, `thebibliography`/`\cite`, theorem environments and `\newtheorem`, nested lists with article skips and hanging indents, `quotation`/`quote`/`verse`, `minipage`, `\today`, page numbering, label/counter renaming, and preamble macro execution (`\newcommand`/`\def`/`\let`/`\newenvironment`/`\newif`/`\newlength`/`\newcounter`). Project `.cls`/`.sty` files are inlined with `\DeclareOption`/`\ProcessOptions`/`\ExecuteOptions`, `\LoadClass` inheritance, recursive `\RequirePackage`, local `\input`, `\AtBeginDocument` hooks and `\PassOptionsToClass`/`\PassOptionsToPackage`. | +| M7 service | route-D preview/PDF/edit endpoints and the `?engine=route-d` project switch, `TEXRRA_ENGINE` default, memoised project previews/PDFs (source and image bytes in the key), flat endpoint caches with FIFO eviction and concurrency coverage, JSON 422 errors, PDF `/Link` annotations from `\href`, and per-glyph Unicode extraction. | + +Residuals are deliberate and documented rather than template special cases: + +- class files are executed as declarations, options, macros and includes; their + full layout code is still modelled by route-D's native semantics instead of + being interpreted token by token; +- arbitrary package code and BibTeX are not executed; +- `\box255` content remains uninspectable beyond its dimensions; +- a table cell or list item cannot yet contain a `minipage`; +- floats and insertions take the scrolling-builder path in the paged + incremental replay; +- Unicode coverage follows the Liberation fallback subset. + ### Open milestones The staged program that closes these milestones is described in