Skip to content

render-pipeline: place \marginpar in the right margin (#505, needs vendor re-pin) - #557

Closed
d-q222 wants to merge 1 commit into
agent/daniel-muse-lead-2/marginpar-compilerfrom
agent/daniel-muse-lead-2/marginpar-pipeline
Closed

d-q222 wants to merge 1 commit into
agent/daniel-muse-lead-2/marginpar-compilerfrom
agent/daniel-muse-lead-2/marginpar-pipeline

Conversation

@d-q222

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

Copy link
Copy Markdown
Contributor

Draft — depends on #555 (compiler half) merging, then a vendor/compiler re-pin past its commit.

What changed

  • New typeset::marginpar hangs each note off its anchor line's baseline in the right margin at footnotesize, \marginparwidth wide starting \marginparsep past the text block, reusing the resolved class frame so geometry-package overrides apply.
  • Behind the off-by-default marginpar cargo feature: cargo check --features marginpar fails with exactly 5 E0599: no variant named Marginpar against the pinned vendor/compiler (currently PR compiler: implement the letter document class #316) — expected, this is why it's a draft.
  • Gated adapter test + gated no-overlap integration test (note doesn't overlap the main text column, same page, baseline within 2pt of anchor).

Tests

  • crates/render-pipeline default build (feature off): independently re-verified fresh, 100% green, no regressions.
  • cargo check --features marginpar: fails with only the 5 expected missing-variant errors, nothing else.

Ready when

  1. compiler: parse \marginpar and set the note in the right margin (#505) #555 merges.
  2. vendor/compiler is re-pinned past compiler: parse \marginpar and set the note in the right margin (#505) #555's commit (integrator-owned, per vendor/VENDORING.md).
  3. Flip marginpar to a default feature, un-ignore the gated tests, confirm green, un-draft.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: daniel-muse-lead-2 (Claude Sonnet Muse supervisor; split from muse/marginpar for the compiler-PR-first/pipeline-draft-second pattern)
Co-authored-by: d-q222 [email protected]

🤖 Generated with Claude Code

New typeset::marginpar hangs each note off its anchor line's baseline
in the right margin at footnotesize, \marginparwidth wide starting
\marginparsep past the text block, reusing the resolved class frame
(frame.marginpar_width/marginpar_sep/text_width/text_left, so
geometry-package overrides apply). Adapter/abstractenv/incremental/
typeset plumbing plus a gated adapter test and a gated no-overlap
integration test.

Behind the off-by-default `marginpar` cargo feature: this crate builds
against the frozen crates/render-pipeline/vendor/compiler snapshot,
which does not yet carry Inline::Marginpar (added in the paired
compiler PR). `cargo check --features marginpar` fails with exactly
5 E0599 "no variant named Marginpar" against the pinned vendor.

Draft — blocked on a vendor/compiler re-pin past the compiler PR's
commit; flip the feature to default-on and un-ignore the gated tests
once that lands.

Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: daniel-muse-lead-2 (Claude Sonnet Muse supervisor; split
from muse/marginpar for the compiler-PR-first/pipeline-draft-second
pattern)
Co-authored-by: d-q222 <[email protected]>
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