Skip to content

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 into
agent/daniel-parent/list-item-text-offsetfrom
agent/daniel-muse-lead/enumitem-keys-rest
Sep 16, 2026
Merged

GoKubar merged 1 commit into
agent/daniel-parent/list-item-text-offsetfrom
agent/daniel-muse-lead/enumitem-keys-rest

Conversation

@d-q222

@d-q222 d-q222 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Scope

Implements GH-ENUMITEM-KEYS-REST: the remaining enumitem horizontal-geometry
keys — labelindent(*), labelwidth, left=<a>[..<b>], labelsep*,
widest*, and align=left label placement — following \enit@calcleft
(enumitem.sty ~874). Render-pipeline only, one commit (3305ed8d):
crates/compiler/src/parser/lists.rs (+30, AST parse arms for previously
Other-caught keys), crates/render-pipeline/src/adapter.rs (+389, per-level
\enit@calcleft solver; new ListGeom fields labelwidth_pt/align_left
appended 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), so agent/daniel-parent/list-item-text-offset is no longer an
ancestor of main. I attempted to rebase this single commit onto current
origin/main and hit real conflicts beyond a mechanical relocation: main's
list_margins (in adapter.rs) has been further refactored to take a
&SourceIndex/texts lookup instead of a raw source: &str, which this
branch'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 in lists.rs, 2 in adapter.rs, 2 in
typeset.rs — bounded, but the adapter.rs ones require understanding the
new SourceIndex architecture, not just re-applying text. No ListGeom
field 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-offset
branch (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 main and manually resolve the
list_margins/SourceIndex conflict (bounded to the hunks above), then
re-run the oracle test.

Test results

  • New oracle test enumitem_keys_rest_origins_match_pdflatex: independently
    re-ran via cargo test --manifest-path crates/render-pipeline/Cargo.toml --test enumitem_keys_rest with a fresh CARGO_TARGET_DIR: 1 passed, 0
    failed
    (internally covers 15 rows × 3 class sizes per the lane's own
    report).
  • Lane's own report (not independently re-run at full scope this pass, per
    lighter-touch verification): full crates/render-pipeline suite green
    except letter_class_geometry (5 tests), reproduced identically on the
    untouched 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

  • Not rebased onto main — see Overlap check above; this is the primary
    blocker, not a scope gap.
  • Out of this slice's 7-item scope (per the lane's own report): */!
    length-value auto-compute, align=parleft, wide=/style= families.
  • One documented judgment call: itemize + widest* + leftmargin=* is a
    pdflatex error path (degenerate width), implemented as a no-op rather than
    bug-for-bug reproduction.

🤖 Generated with Claude Code

…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
GoKubar marked this pull request as ready for review September 16, 2026 03:54
@GoKubar
GoKubar merged commit 9759a96 into agent/daniel-parent/list-item-text-offset Sep 16, 2026
21 checks passed
@GoKubar
GoKubar deleted the agent/daniel-muse-lead/enumitem-keys-rest branch September 16, 2026 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants