Repository navigation
Conversation
#258 rank 4 (`fixtures/divergence-probes/min-paragraph`): both commands were in `KNOWN_UNIMPLEMENTED_COMMANDS`, so every `\paragraph{...}` raised an error and its argument fell through as ordinary body text -- not bold, indented by `\parindent` (+14.94 bp) and missing the 13.94 bp `\@startsection` puts above it. They are not exotic: a `\paragraph` run-in heading is how solutions, proofs and notes are titled. article.cls lines 302-321 (report.cls and book.cls identical) declare five `\@startsection` levels, not three. The two that were missing differ from the others only in `#5`, which is `-1em`: a non-positive after-skip is what makes `\@xsect` run the heading into the first line of the following paragraph instead of ending a line. That is a layout decision, so the block this crate produces is the same `Block::Heading` as the other three, at level 4 and 5. - `parser.rs`: the sectioning arm takes `paragraph` and `subparagraph`; both join `BUILT_INS`, and they leave the unimplemented list. - `xref.rs`: article.cls lines 255-266 also declare `\newcounter{paragraph} [subsubsection]` and `\newcounter{subparagraph}[paragraph]`, so a new `\subsubsection` resets them both. Every level steps here; which of them are *printed* is the consumer's `\c@secnumdepth` (article 3, report/book 2), which this crate does not model -- the same simplification that already applied to `subsubsection` under report/book. - `layout.rs` (this crate's own v1 layout, not the exact route): levels 4 and 5 are run-in. The heading does not end its line, `\@xsect`'s `\hskip -#5` follows it and the next paragraph continues there with no `\par` and so no `\parskip`; `after_run_in_heading` carries that across the block boundary and is part of `FlowState`, so an incrementally reused block cannot resume into the wrong shape. Their number is not set: both levels are past every standard class's `secnumdepth`. - `supported.rs` plus the regenerated `supported/{coverage.md, supported-latex.json}` and `docs/user/compiler.md` (kernel commands 164/410 -> 166/410). **This is the compiler half.** The exact route (`flashtex-render --v2`) needs its own arm for a level-4/5 heading -- it currently clamps `Stylesheet::heading` to levels 1..=3 and has no run-in form at all -- and until `crates/render-pipeline/vendor/compiler` is re-pinned past this commit it cannot see these blocks. The pipeline PR is separate and must land with a re-pin; measured before/after numbers for the reproducer are reported there. Tests (`crates/compiler`, `cargo test --release --no-fail-fast`): 298 lib + every integration suite pass, 0 failed. New: the two commands are heading levels 4 and 5 with `\the<name>` chained through all five counters; a new `\subsubsection` resets them; the starred forms take no number and produce a heading rather than body text; and in the v1 layout a run-in heading keeps its paragraph on the same line while the `\subsection` above it does not. Implementation-Agent: Claude Opus 5 (engine layout lane, linux-primary / NixOS) Commit-Executor: Claude Opus 5 via Claude Code (direct-agent Git execution under the observed-Cursor-limit user override) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
This was referenced Sep 14, 2026
This was referenced Sep 14, 2026
Merged
compiler: preamble \setlength, \addtolength and TeX length assignments, with TeX's unit factors
#432
Closed
Contributor
Author
|
Closing as superseded — the work is already on Replacement: b891e7d plus the parser.rs dispatch arms Closed by the integration lane while clearing a 219-PR backlog (112 of them drafts). If this is wrong, reopen it and tell me — I would rather be corrected than leave stale work buried. — orchestrator-astra (Commander) |
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.
#258 rank 4 (
fixtures/divergence-probes/min-paragraph):\paragraphand\subparagraphwere inKNOWN_UNIMPLEMENTED_COMMANDS, so every\paragraph{...}raised an error and its argument fell through as ordinarybody text — not bold, indented by
\parindent(+14.94 bp) and missing the13.94 bp
\@startsectionputs above it, per occurrence. They are not exotic:a run-in
\paragraphis how solutions, proofs and notes are titled.Split as the lane convention requires: this is the compiler PR; the
pipeline PR is #292 and must land with a
vendor/compilerre-pin past this commit.
What changed
article.cls lines 302-321 (report.cls and book.cls identical) declare five
\@startsectionlevels, not three. The two that were missing differ from theothers only in
#5, which is-1em: a non-positive after-skip is what makes\@xsectrun the heading into the first line of the following paragraphinstead of ending a line of its own. That is a layout decision, so the block
this crate produces is the same
Block::Headingas the other three, at level4 and 5.
parser.rs: the sectioning arm takes both names; they joinBUILT_INSandleave the unimplemented list.
xref.rs: article.cls lines 255-266 also declare\newcounter{paragraph}[subsubsection]and\newcounter{subparagraph}[paragraph], so a new\subsubsectionresetsthem both. Every level steps here; which are printed is the consumer's
\c@secnumdepth(article 3, report/book 2), which this crate does not model— the same simplification that already applied to
subsubsectionunderreport/book.
layout.rs(this crate's own v1 layout, not the exact route): levels 4 and5 are run-in. The heading does not end its line,
\@xsect's\hskip -#5follows it and the next paragraph continues there with no
\parand so no\parskip.after_run_in_headingcarries that across the block boundaryand is part of
FlowState, so an incrementally reused block cannot resumeinto the wrong shape. Their number is not set: both levels are past every
standard class's
secnumdepth.supported.rsplus the regeneratedsupported/{coverage.md, supported-latex.json}anddocs/user/compiler.md(kernel commands164/410 → 166/410) — produced by
crates/compiler/scripts/render_supported_latex.sh, not by hand.Gates
NixOS
linux-primary,CARGO_BUILD_JOBS=4.crates/compilercargo test --release --no-fail-fasttests/supported_latex.rsdrift gatesNew tests: the two commands are heading levels 4 and 5 with
\the<name>chained through all five counters; a new
\subsubsectionresets them; thestarred forms take no number and produce a heading rather than body text; and
in the v1 layout a run-in heading keeps its paragraph on the same line while
the
\subsectionabove it does not.What this does not do
The exact route (
flashtex-render --v2) needs its own arm for a level-4/5heading — it clamped
Stylesheet::headingto levels 1..=3 and had no run-inform at all. That is the pipeline PR, whose arm is inert until
crates/render-pipeline/vendor/compileris re-pinned past this commit. Withboth in place and the vendor mirrored locally,
min-paragraphgoes from max|dx| 14.94 / |dy| 27.87 bp with 27 of 74 words within 0.5 bp to 0.01 / 0.01
bp with all 74; the numbers are reported in full on the pipeline PR.