Repository navigation
Conversation
latex.ltx \quad is \hskip1em; in math mode em is \fontdimen6 of the text font current outside the formula, at the text size in every style. The compiler marks such glue (Space.font_em: \quad, \qquad, \tag's 2\quad); render-pipeline (feature amsmath-inline) scales it by the text quad over the family-2 quad. amsmath oracle 37: 0.378 -> 0.005 bp, 38: 0.380 -> 0.006 bp. Implementation-Agent: Claude Opus 5 (subagent kabir-claude FT-061 finish, 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
\xrightarrow[below]{above}, \xleftarrow and mathtools' \xleftrightarrow
(amsmath.sty 971-979 \arrowfill@, 1012-1028 \ext@arrow): compiler nucleus
ExtArrow (a relation); math-layout Nucleus::ExtArrow builds the arrow at
its natural width (left piece, -7mu, \cleaders fill, -7mu, right piece,
muskips zeroed, \relbar smashed) or stretched to the widest
\scriptstyle\mkern#3mu{label}\mkern#4mu with centred leaders (tex.web
section 626), then sets the labels as \mathop\limits (make_op's limit code,
split out as op_scripts).
\intertext and mathtools \shortintertext: MathRow.intertext holds the
paragraphs set before a row (a row with material is ended first, as
\ifvmode\else\\\fi does). render-pipeline (feature amsmath-inline) sets
each as a \noindent paragraph between the rows with amsmath's
\belowdisplayskip/\abovedisplayskip (amsmath.sty 1186-1199), or mathtools'
variants when mathtools is loaded (-\jot on each side, 3pt seps and the
short skips for \shortintertext; mathtools.sty 1424-1448, 1502-1528).
Lines inside one intertext keep \normalbaselines.
Oracle: glyphs whose origins coincide within 0.05 bp are ordered by text
(the \relbar and arrow head of an unstretched arrow sit 0.002 bp apart,
below pdfTeX's TJ quantisation); refs regenerated, only 28 changed.
amsmath oracle: 40/42 -> 42/42 (25-intertext 42.058 -> 0.006 bp,
28-xrightarrow 11.676 -> 0.005 bp). HW1/HW2 within 0.5 bp: 268/251,
unchanged. Supported-LaTeX artefacts regenerated.
Implementation-Agent: Claude Opus 5 (subagent kabir-claude FT-061 finish, 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
This was referenced Sep 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FT-061 finish (kabir-claude). Stacked on #103 (
agent/kabir-claude/amsmath-inline@ 9cc8419).Oracle (crates/compiler/tests/amsmath_corpus, pdflatex refs)
Measured as in #103: render-pipeline with
vendor/compilerandvendor/math-layoutswapped for this branch's crates,--features amsmath-inline(a local mirror; no vendor changes committed).Changes
\quad:\quadis\hskip1em(latex.ltx). In math, em is\fontdimen6of the text font, at the text size in every style, not 18 mu. CompilerSpacegetsfont_em(\quad,\qquad,\tag's2\quad). The pipeline scales it by text quad / family-2 quad.\xrightarrow[below]{above},\xleftarrow, mathtools\xleftrightarrow(amsmath.sty 971-979\arrowfill@, 1012-1028\ext@arrow):ExtArrownucleus (a relation)Nucleus::ExtArrow. The arrow is its natural width (left piece, -7mu,\cleadersfill, -7mu, right piece; muskips zeroed;\relbarsmashed), or stretched to the widest\scriptstyle\mkern#3mu{label}\mkern#4mu. Stretching adds centred leaders (tex.web §626). The labels are set as\mathop\limitslimits, usingmake_op's limit code, now split out asop_scripts.\intertext/ mathtools\shortintertext:MathRow.intertextholds the paragraphs set before a row. A row that already has material is ended first (\ifvmode\else\\\fi).rows_block(featureamsmath-inline) sets each one as a\noindentparagraph between the rows.\belowdisplayskip/\abovedisplayskip(amsmath.sty 1186-1199).-\joton each side, 3pt seps, and the short skips for\shortintertext(mathtools.sty 1424-1448, 1502-1528).\normalbaselines.\relbarand arrow head are 0.002 bp apart, below pdfTeX's TJ quantisation, so the two sides sorted them differently. Refs were regenerated with the same pdfTeX; only28-xrightarrow.jsonchanged (two words swapped).Verification
cargo test --releaseis green for:\xrightarrowparsing,\quadvs\,units.Known limits
vskip_aftercarries no stretch or shrink. That is exact under article's\raggedbottom.\xLeftarrow/\xRightarrow/\xhookrightarrowand the other mathtools arrows are not included; they need\labels or joined pieces.Re-pin note from #103 still applies: showing this in the app needs
vendor/compilerandvendor/math-layoutre-pinned andamsmath-inlineenabled.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu