Repository navigation
render-pipeline: enumitem labelindent/labelwidth/left=/labelsep*/widest*/align=left (needs manual rebase, base branch already landed via #649) - #682
Merged
GoKubar merged 1 commit intoSep 16, 2026
Conversation
…abelindent*/widest* and align=left follow enit@calcleft Stacked on PR #625 (list-item-text-offset): extends its ListGeom groundwork with the rest of the horizontal key system (enumitem.sty 874-893). adapter.rs: per-level calcleft solver state (calc 0/2/3, sep/lbl-from-margin tracking) resolving labelsep*, itemindent, labelindent(*), labelwidth, left=<a>[..<b>], widest* (counter formatted as <n>) and align=left into ListGeom tail fields (appended) and WidestSep.labelindent_pt / LeftSepAuto margins. Verified register-for-register against TeX Live 2026 pdflatex, including the absorptions (lone labelindent(*)/labelwidth are no-ops) and the ignored explicit labelwidth under leftmargin=*. typeset.rs: align=left label placement (box-left, not glued-right) and @item text push under negative labelwidth / over-wide left labels. Tests: pdflatex-oracle enumitem_keys_rest (15 rows x 10/11/12pt, 0.1bp); compiler arms for labelsep*/labelindent*/widest*/left (+ unit test). Implementation-Agent: muse-spark-1.3-contributor
GoKubar
marked this pull request as ready for review
September 16, 2026 03:54
GoKubar
merged commit Sep 16, 2026
9759a96
into
agent/daniel-parent/list-item-text-offset
21 checks passed
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.
Scope
Implements
GH-ENUMITEM-KEYS-REST: the remaining enumitem horizontal-geometrykeys —
labelindent(*),labelwidth,left=<a>[..<b>],labelsep*,widest*, andalign=leftlabel placement — following\enit@calcleft(enumitem.sty ~874). Render-pipeline only, one commit (
3305ed8d):crates/compiler/src/parser/lists.rs(+30, AST parse arms for previouslyOther-caught keys),crates/render-pipeline/src/adapter.rs(+389, per-level\enit@calcleftsolver; newListGeomfieldslabelwidth_pt/align_leftappended at the end, no reordering),
crates/render-pipeline/src/typeset.rs(+94, align=left box placement + negative-labelwidth text push), plus a new
pdflatex-oracle test (
tests/enumitem_keys_rest.rs, 15 rows × 3 class sizes,0.1bp tolerance).
Overlap check
This branch was built stacked on PR #625
(
agent/daniel-parent/list-item-text-offset), which has since closed —its content landed on main via integration PR #649 (squash, commit
79c83aa7), soagent/daniel-parent/list-item-text-offsetis no longer anancestor of main. I attempted to rebase this single commit onto current
origin/mainand hit real conflicts beyond a mechanical relocation: main'slist_margins(inadapter.rs) has been further refactored to take a&SourceIndex/textslookup instead of a rawsource: &str, which thisbranch's code doesn't know about. That's a real re-integration, not a
find/replace, so I aborted the rebase rather than hand-merge unfamiliar
refactored internals under a lighter-touch pass. Confirmed via
grep -c '^<<<<<<<': 1 conflict hunk inlists.rs, 2 inadapter.rs, 2 intypeset.rs— bounded, but theadapter.rsones require understanding thenew
SourceIndexarchitecture, not just re-applying text. NoListGeomfield reordering in this branch's own diff (new fields appended at struct
end, confirmed via diff review) and no
crates/render-pipeline/vendor/touches (confirmed via
git diff --stat -- crates/render-pipeline/vendor/,empty).
This PR is opened against the dead
agent/daniel-parent/list-item-text-offsetbranch (still exists as a ref on GitHub) purely to preserve the diff/review
record. It is NOT mergeable as-is — whoever picks this up next needs to
rebase this single commit onto current
mainand manually resolve thelist_margins/SourceIndexconflict (bounded to the hunks above), thenre-run the oracle test.
Test results
enumitem_keys_rest_origins_match_pdflatex: independentlyre-ran via
cargo test --manifest-path crates/render-pipeline/Cargo.toml --test enumitem_keys_restwith a freshCARGO_TARGET_DIR: 1 passed, 0failed (internally covers 15 rows × 3 class sizes per the lane's own
report).
lighter-touch verification): full
crates/render-pipelinesuite greenexcept
letter_class_geometry(5 tests), reproduced identically on theuntouched base via
git stash— pre-existing/environmental, unrelated(its fixture has zero lists). Mutation check quoted for all 7 consumption
paths in the lane's checkin.
Not done
blocker, not a scope gap.
*/!length-value auto-compute,
align=parleft,wide=/style=families.widest*+leftmargin=*is apdflatex error path (degenerate width), implemented as a no-op rather than
bug-for-bug reproduction.
🤖 Generated with Claude Code