Repository navigation
Conversation
…rivlist skips, labels) - em lengths are the body font's quad (\fontdimen6: cmr12 11.74988pt), \leftmargini 2em in twocolumn (article.cls \if@twocolumn) - \@endpe after \end{itemize|enumerate}: no indent on the next paragraph - \@endparenv skips use the closed list's own level and combine with the next \item/\begin as \addvspace (max, not sum); \begin after \end{env} reads in vertical mode (\partopsep); negative \@nbitem after headings - enumitem \begin keys: nosep, noitemsep, topsep/partopsep/itemsep/parsep, labelsep; key lists no longer read as shortlabels templates - article labels by \@itemdepth/\@enumdepth (bullet, bold en dash, asterisk, cdot; arabic/alph/roman/Alph) with cmsy metrics for symbols - list_corpus: 39 pdflatex fixtures + oracle.py; list_oracle gate (24) Implementation-Agent: Claude Opus 5 (subagent kabir-claude list fidelity, 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
…t 28/39 - quotation: \listparindent = \itemindent = 1.5em (article.cls), told apart from quote by the enclosing environment in the source - oracle.py reads label runs glyph by glyph (all label glyphs share the \item span, so cluster bytes misspelled them) - list_oracle gates 28 fixtures; the 11 pending ones name their cause Implementation-Agent: Claude Opus 5 (subagent kabir-claude list fidelity, 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
…ucture-pipeline Implementation-Agent: Claude Opus 5 (subagent kabir-claude list structure, mac-m5pro-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]>
… quote in lists (list gate 39/39) Reads the structured list data of the compiler PR #147 (Block::ListItem `lists`/`item`, Block::Styled `lists`/`line_break_before`): - Item labels are the compiler's text (article \labelitem<i>/\labelenum<i> per depth, enumitem label/shortlabels, start/resume, \item[...]); the source reconstruction `class_label`/`roman_lower` and the `innermost_quote_env` scan are removed. The label font comes from how the label was produced (bold \labelitemii and description terms, math-font \textbullet/\textasteriskcentered/\textperiodcentered) instead of being guessed from the text, so `\item[--]` is no longer bold. - itemize/enumerate labels are \hss\llap (latex.ltx 16061/16072): a wider label never moves the text; thebibliography keeps the \@mklab box. - description (article.cls 360-365): \itemindent-\leftmargin, \labelwidth\z@, \descriptionlabel = \hspace\labelsep\bfseries term at natural width; spaces inside a label are the face's \fontdimen2. - EnvShape for verse and for quote/quotation nested in a list (article.cls 389-410): enclosing \@totalleftmargin plus the environment's own \leftmargin/\rightmargin, \itemindent=\listparindent (verse -1.5em, quotation 1.5em), \@list<depth> seps with \@item's \addvspace\@topsep; verse's \\ starts a paragraph without \parskip (\@centercr). - description counts as a list opener/closer in the source-based skips. Verification (uncommitted scratch copy with vendor/compiler = PR #147's list change on the current pin): list corpus 39/39 (was 28/39); cargo test --release green; HW1/HW2 and the other seven real-world fixtures byte-identical (v2 and PDF) against this branch with the current vendor pin. vendor/ is not modified; building this branch needs the vendor/compiler re-pin from PR #147. Implementation-Agent: Claude Opus 5 (subagent kabir-claude list structure, 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
GoKubar
added a commit
that referenced
this pull request
Sep 13, 2026
Took #152's list refactor (class_seps/apply_sep_keys/is_key_list, env_shape, three-tuple list_stack_at) over main's inline loop, but kept main's outer_parskip default and #135's hsize() for paragraphs inside float and minipage boxes; style.rs keeps #151's five headings and the class labelsep alongside #152's em_pt. Implementation-Agent: Claude Opus 5 (subagent kabir-claude integration, nixos-pc-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
GoKubar
added a commit
that referenced
this pull request
Sep 13, 2026
#171 predates #151/#152 in every conflicting region; its three residual fixes were grafted onto the newer structure: parse_dimen_in/ec_em_ex threaded through #152's apply_sep_keys and list_labelsep, and the item-label protrusion kern plus label_recs bookkeeping added to #152's multi-word label box. Implementation-Agent: Claude Opus 5 (subagent kabir-claude integration, nixos-pc-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
GoKubar
added a commit
that referenced
this pull request
Sep 13, 2026
15 conflicts (adapter.rs 12, typeset.rs 3), plus one API collision that git did not flag at all. #167 and #156 both extended `adapter::Item` with variants called `Glue` and `Penalty`, with different shapes, and git auto-merged both definitions into the enum without a conflict marker -- the build was the only thing that noticed. - `Penalty { penalty: i32 }` and `Penalty { value: i32 }` are the same thing under two field names; #167's emitters now use #156's, and its duplicate `hash_items` arm (tag 31) is gone, since #156's Penalty is already tag 21. - `Glue` is not the same thing. #156's is `\thm@headsep`: points plus interword spaces of a given style. #167's is `\newblock`'s `\hskip .11em\@plus.33em\@minus.07em`: scaled by the font's quad, which is not known until typesetting. Neither can be expressed in the other, so #167's keeps its own variant as `Item::EmGlue`, with tag 30 (no collision with 19-23). It has exactly one emitter, so the rename is contained. The rest, where #167 branched before this lane's list work: - `ListGeom`: #167's `bibliography: Option<BibItemGeom>` joins this branch's `labelsep`/`label_bold`/`label_math`/`description`/`llap`, and the item builds one ListGeom carrying all of them. #167 called the three-argument `list_margins`; this branch's takes the twocolumn flag. - `list_seps` had since been refactored into `class_seps` + `apply_sep_keys` + a version taking the list's own `\begin` options, so only #167's new `natbib_bibsep` is taken (natbib.sty 641-647: `\bibsep` is `\@listi`'s `\itemsep` plus `\parsep`), applied on top of the computed separations. - The list-environment predicates already cover `thebibliography` through `LIST_ENVS`, so #167's three hand-written copies of the name list are dropped in favour of it. - Item label layout: #167 still carried the `label_box` version that #152 replaced with `label_words`/`label_bold`/`label_math`. Its bibliography branch is kept and its copy of the general branch dropped, so the two paths are `if bibliography { ... } else if label { ...this branch's... }`. The bibliography branch now passes the label's font to `label_box`, which gained those arguments with the list work. - `theorem_items` (#156) still wraps the paragraph's items; #167's `bibliography_space_factors` (`\sfcode`\.\@m`, so the space after "Knuth." is an ordinary interword space) runs on the result. Two markers came off, both because the work they waited on is already here `bibliography_oracle` kept 14 fixtures behind `oracle_after_repin!`, ignored with "needs the vendored compiler re-pinned to natbib citations and .bbl input". Stage 1 re-pinned it, and all 14 pass, so the macro is gone and they run. The oracle is 20 passing of 21; the one still ignored is the residual #167 itself documents (`\Citet` upper-cases through natbib's `\NAT@Up`, whose group ends between `V` and `an`, so pdfTeX sets no `Va` kern and the pipeline does: 0.83 bp). Gates (zero font diagnostics on every run): bibliography_oracle 20/21, thebibliography_oracle passes, theorem_oracle, multicol_oracle and siunitx_oracle pass, amsmath 59/59, tabular 59/59, display-placement 33/36, real-world 10/10 recovered with every page count still equal to its committed reference. `cargo test --release` in render-pipeline: the same 11 known failures, no more. Implementation-Agent: Claude Opus 5 (subagent kabir-claude integration, nixos-pc-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 15, 2026
This was referenced Sep 16, 2026
compiler:
\item[<label>] is a text run — nested math, styles, no silent drops (#676, PR 1 of 2)
#702
Merged
Merged
Contributor
|
Superseded. Verified on Note: this PR's own Closed by the Commander after a stale-draft screening pass that required evidence in both directions — a landing SHA to close, an empty grep to keep open. If this verdict is wrong, say so on issue #2 and I will reopen: an asymmetric bar has produced wrong calls here in both directions before. |
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.
This is the render-pipeline half of the list corpus work. It depends on the compiler PR #147 and includes #143's branch, which is merged in; it supersedes #143 once both land. With it the list corpus goes from 28/39 to 39/39.
Build dependency:
vendor/compilerhas to be re-pinned to #147. This PR buildsCBlock::Styledliterals with #147's new fields, so it does not compile against the current pin (ba46bec). vendor/ is not modified here.Changes (
src/adapter.rs,src/typeset.rs)ListItem.label/itemsupply the article label for each depth, enumitemlabel/shortlabels,start/resumeand\item[...]. The pipeline's own reconstruction (class_label,roman_lower, theinnermost_quote_envscan) is removed. Label font comes from theItemLabelkind rather than guessing from the text, which fixes\item[--]being set bold.\hss\llap(latex.ltx 16061/16072), so a wider label never pushes the text. thebibliography keeps its\@mklabbox.\itemindent-\leftmargin,\labelwidth\z@, and\descriptionlabel(\hspace\labelsep\bfseriesterm) at natural width. Spaces inside a label use the face's\fontdimen2.descriptionalso counts as a list opener/closer in the source-based\topsep/\endtrivlistskips.EnvShapecovers verse and quote/quotation inside lists (article.cls 389-410). It adds the enclosing\@totalleftmarginto the environment's own\leftmargin/\rightmargin, sets\itemindent=\listparindent(verse -1.5em, quotation 1.5em), and uses the\@list<depth>seps with\@item's\addvspace\@topsep. In verse,\\starts a paragraph without\parskip(\@centercr), plus its[dimen]. Level-1 quote/quotation keep the existing path.tests/list_oracle.rs: all 39 fixtures are now in PASSING, and PENDING is removed.Verification
Done on an uncommitted scratch copy of this branch whose
vendor/compilerwas the #147 compiler change (d0feb19, which equals the current pin plus the list diff):oracle.py checkcargo test --release --no-fail-fast--font-dir apps/mac/Fonts)Per fixture, all PASS: 01-itemize-10/11/12pt, 02-enumerate-10/11/12pt, 03-description-10/11/12pt, 04-nested-enumerate-11/12pt, 04-nested-itemize-10pt, 04-nested-mixed-10pt, 05-twocolumn-description-12pt, 05-twocolumn-itemize-10pt, 05-twocolumn-nested-11pt, 06-consecutive-10pt, 06-consecutive-blank-12pt, 07-after-display-11pt, 07-after-heading-10pt, 08-multipar-10/12pt, 09-description-in-itemize-10pt, 09-description-long-11pt, 10-center-after-list-10pt, 10-quotation-10pt, 10-quote-11pt, 10-quote-in-list-11pt, 10-verse-12pt, and 11-enumitem-label/labelsep/leftmargin-star/noitemsep/nosep/seps/setlist/start-resume, 12-item-optional-10pt, 12-long-items-11pt.
Integration note: main's
crates/compileris already ahead of main'svendor/compilerpin by the expansion pass and newInline/Nucleus/Framevariants from other lanes. A re-pin to #147's merged tip therefore also needs those lanes' pipeline arms. The list verification above isolates this change on top of the current pin.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu