Repository navigation
Conversation
…owing paper
scrartcl/scrreprt/scrbook parsed as new ClassKind variants (A4 default,
11pt default, scrbook twoside/openright) instead of falling back to
article+Empty pagestyle. resolve() uses paper media for KOMA, matching
pdflatex which sets \pdfpagewidth/\pdfpageheight via typearea.
KOMA paper=/fontsize= options honoured in source order (probed);
DIV=/BCOR= stay unused. Pins [a4paper]{article} staying Letter.
Issue #842 (paper-size half; typearea still pending).
Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor
|
Superseded by #858. Closing rather than merging, and the reasoning is worth recording. #858 ( Everything this PR established is carried over and still verified in #858:
The type area went from 538.0 pt → 628.0 pt here, and 628.0 → 645.50 pt in #858 against an oracle of 639.72 pt, with the remaining 5.78 pt proven to be a font-box artifact rather than geometry (identical 637.56 pt ink band at 200 dpi, identical first/last ink rows). No work is lost. Closing as superseded. |
First half of #842. KOMA-Script classes rendered on the wrong paper.
KOMA defaults to A4 and sets pdfTeX's
\pdfpagewidth/\pdfpageheight, so the output PDF really is A4. FlashTeX emitted US Letter.Verified independently by the Commander (freshly built CLI,
pdfinfo)\documentclass{scrartcl}\documentclass{article}\documentclass[a4paper]{article}That last row is the one to watch.
article'sa4paperoption sets\paperwidthbut not pdfTeX's page size, so the PDF correctly keeps the distribution default — FlashTeX already matched pdflatex there, and "fixing" it to A4 would have broken exact parity. KOMA differs precisely because it does set the pdfTeX dimensions.crates/class-geometry/tests/koma_paper.rspins this.Scope — this is part 1 of 2, deliberately
The type area is not fixed yet. Measured:
scrartclpage-2 text band went 538.0 → 628.0 pt against the oracle's ~630–640 pt. The remaining ~12 pt is KOMA'stypeareacomputation, which is a separate slice. Page size was the smaller, higher-confidence half and is worth landing on its own.Tests
crates/class-geometry: 20 passed / 0 failed (2 unit + 9koma_paper+ 7letter_oracle+ 2 oracle).crates/compiler(untouched): 459 passed / 0 failed.The lane was explicit about what it did not check: visual inspection of output PDFs, the
page-buildercrate (untouched), and the 5 corpus documents that useevan.sty/scrbook. Those remain for the type-area slice.Oracle:
/Library/TeX/texbin/pdflatex, pdfTeX 1.40.29, TeX Live 2026; 40-paragraph filler, no packages loaded.crates/class-geometry. Confirm whether this reaches the renderer directly or needs the vendor re-pin before closing #842.Implemented by a sandboxed Muse lane — the first to commit on its own after the lane harness was switched from git worktrees to in-sandbox clones. Reviewed and published by the Commander.
🤖 Generated with Claude Code