Skip to content

render-pipeline: amssymb symbols, braces, over/under arrows, wide accents (stacked on #126; amssymb oracle 38/39) - #127

Closed
GoKubar wants to merge 1 commit into
agent/kabir-claude/math-amssymb-bracesfrom
agent/kabir-claude/math-amssymb-braces-pipeline
Closed

GoKubar wants to merge 1 commit into
agent/kabir-claude/math-amssymb-bracesfrom
agent/kabir-claude/math-amssymb-braces-pipeline

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Math coverage, part 2 of 2: render-pipeline painting + pdflatex oracle corpus. Stacked on the compiler/math-layout PR (base branch agent/kabir-claude/math-amssymb-braces); it compiles only once the Commander re-pins vendor/compiler + vendor/math-layout to that PR's merge (no vendor edits here). Verified with an uncommitted local vendor swap.

What

  • amssymb atoms (MathAtom.ams_symbol) become a plane-15 sentinel carrying the msam/msbm slot: TexMathMetrics boxes them from the AMS TFMs at the math size (umsa.fd 5/7/10 selection) and paints the table text from New Computer Modern Math when it has it, else Latin Modern Math (one msam10/msbm10 resource-profile note). Negations spelled base + U+0338 paint the combining solidus centred on the base in the same cluster. \widehat/\widetilde grow along cmex "62-"64/"65-"67 (painted with the nearest LM Math horizontal variant) and, with amsfonts, switch to msbm "5B/"5C past 2em. \hat, \tilde, \bar, \dot, \ddot, \check, \breve, \acute, \grave now use their roman slots (they previously all resolved to the unmapped cmex chain and painted nothing).
  • \overbrace/\underbrace: math-layout's Brace box; the four cmex pieces are painted as LM Math's three U+23DE/U+23DF assembly parts aligned to the pieces; fills are rules; scripts are limits. amsmath over/under arrows via OverArrow (\ex@ from amsgen.sty for the under kern). Dashed arrows: exact box, 1em ⇢ right-aligned.
  • TextRunMetrics forwards extension_glyph; AMS font ids are provider fonts, not \text runs.

Oracle (crates/compiler/tests/amssymb_corpus, 39 fixtures vs MacTeX 2026 pdflatex, 0.5 bp)

38/39 pass: symbol rows by class (Bin/Rel/Ord, arrows, 7 negated-relation rows, corners, script sizes), over/underbrace with limits (inline + display), wide accents at 4 widths each, over/under arrows, over/underline, dashed arrows, display relations. 32-braces-narrow fails at 1.01 bp: every word is exact, but for braces narrower than 2em LM/NewCM Math's 2.003em brace middle part overshoots cmex's 1.793em four-piece minimum (outline geometry, both faces identical). Per-fixture results: results-render-pipeline.json.

Gates

render-pipeline cargo test --release green (+5 tests/amssymb_braces.rs); amsmath corpus 42/42 before and after (no per-fixture change); HW1 byte-identical glyph positions (3 pages, 0 errors, 0 overfull); HW2 3 pages, 0 errors, same single overfull line, one new msbm10 profile note, and its \subsetneq line now matches HW2-reference.pdf exactly (A at 269.20 bp, was 272.23).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu

…ver/under arrows and growing wide accents (+ amssymb oracle corpus 38/39)

Stacked on agent/kabir-claude/math-amssymb-braces (#126); needs the Commander's vendor re-pin to build.

Implementation-Agent: Claude Opus 5 (subagent kabir-claude math amssymb braces, mac-m5pro-kabir)
Commit-Executor: Claude Code direct Git
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
@jay3332

jay3332 commented Sep 13, 2026

Copy link
Copy Markdown
Member

Merged to main via integration/2026-09-13k (Commander).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants