Repository navigation
Conversation
… no-op
`\(` and `\)` fell through the lexer's control-symbol branch and became the
literal words "(" and ")", so every LaTeX-style inline formula was typeset
as text: `\(x_t\)` printed "(x" with "math script marker used outside math
mode", `\(\alpha\)` reported \alpha as unsupported, and a 158-line notes
document written entirely with \( \) came back with 129 errors.
Lexer: `\(`/`\)` are `InlineMathOpen`/`InlineMathClose` beside the `\[`/`\]`
pair; the expansion converter, the math-mode "unexpected delimiter" arm, the
\text-argument literal table and siunitx's raw-text scan learn the two new
kinds. Parser: `paren_math` is `bracket_math` with display = false, so the
content, layout and recovery are exactly `$...$`'s (an unterminated `\(`
ends with its paragraph; a stray `\)` is reported and dropped).
`\allowdisplaybreaks[<0-4>]` (amsmath) only permits page breaks inside
displays; it is now a preamble no-op instead of an error, registered in
BUILT_INS, TEXT_COMMANDS and the vocabulary; inventory artifacts and the
bundled supported-latex.json regenerated (kernel command count +1).
Tests: tests/paren_inline_math.rs — same typeset items as `$`, inside a list
and through a \newcommand, the unterminated and stray cases. Compiler suite
473 passed / 0 failed. Through the render pipeline with this compiler
patched into the vendor mirror: the notes document 129 → 24 errors, 4 pages
like its pdflatex reference; the rest are \uline (ulem), \odot (kernel cmsy
slot not yet mapped), \maketitle without \author (#244) and \boxed's frame.
The render-pipeline vendor mirror is not touched here; re-pin it from main
(`git archive`, VENDORING.md) after this lands so the app and CLI pick it up.
Implementation-Agent: Claude Code (mac-claude-a)
Commit-Executor: git via Claude Code
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
) and \pagestyle family (#322) parser arms parser.rs conflict: #322 added the pagestyle/thispagestyle/pagenumbering arms where this branch (carrying #276's commit) added allowdisplaybreaks; kept both. Regenerated supported-LaTeX artefacts and synced the Mac copy. Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
|
daniel-parent: this PR's commit ( |
|
Closing: this landed on main. The ( … ) inline-math tests from this PR — |
\(and\)were lexed as the literal words(and), so every LaTeX-style inline formula was typeset as text (\(x_t\)→ "(x" + math script marker used outside math mode;\(\alpha\)→ \alpha is not supported). The owner's 158-line notes document, written entirely with\( \), came back with 129 errors.InlineMathOpen/InlineMathClosebeside\[/\]; expansion converter, math-mode delimiter arm, \text literal table and siunitx raw scan updated.paren_math=bracket_mathwith display=false → identical content, layout and recovery to$…$(unterminated ends with its paragraph; stray\)reported and dropped).\allowdisplaybreaks[0-4](amsmath): preamble no-op instead of an error; inventory + bundled JSON regenerated (+1 kernel command).Gates: compiler
cargo test --release --no-fail-fast473 passed / 0 failed (4 new intests/paren_inline_math.rs); inventory drift gates green;sync-supported-latex.shrun. Through the pipeline with this compiler patched into the vendor mirror locally: notes document 129 → 24 errors, 4 pages like the pdflatex reference (remaining:\uline×19 (ulem),\odot×2 (kernel cmsy slot unmapped),\maketitlewithout\author(#244),\boxedframe).Integrator: vendor mirror not touched — re-pin
crates/render-pipeline/vendor/compilerfrom main after this lands (VENDORING.md) so the app/CLI get it. Touchessupported.rs/inventory, so it conflicts with #230/#247 on those generated files: land it first or regenerate on rebase.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn