Repository navigation
compiler: beamer frames paginate one page per slide (#841) - #855
Conversation
Under \documentclass{beamer}, \begin{frame} now emits a page break and
reads its [options]{title}{subtitle} head (plus an optional <overlay>
spec, consumed and ignored) as unnumbered headings; the body parses as
ordinary blocks to \end{frame}. \frametitle/\framesubtitle render the
slide head anywhere in a beamer body; \alert sets beamer's red alert
colour. Outside beamer, frame stays the bordered box and the three
commands diagnose naming the class (letter.cls pattern). Overlays
(\pause etc.) are deliberately untouched: one frame is one page.
Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor
frametitle/framesubtitle/alert join BUILT_INS and TEXT_COMMANDS with a beamer-class probe in supported_latex (letter-probe pattern); the frame environment row records the beamer slide reading. Regenerated supported-latex.json, docs/user/compiler.md and the Mac bundled copy via crates/compiler/scripts/render_supported_latex.sh. Implementation-Agent: muse-spark-1.3-contributor Commit-Executor: muse-spark-1.3-contributor
|
CI failure diagnosed, and it is a genuine product regression — please do not fix this by updating the tests. The 16 failures are two tests, and both are telling us something real: 1. Typing 2. Typing Why this is a design problem, not a test problemAdding beamer commands to the global inventory changed completion for every document, including ones that will never load beamer. The inventory's own description says "needs Note this is not caused by anything wrong in the beamer implementation itself, which is good work. It is a consequence of a flat, global command vocabulary meeting a class-specific package for the first time. The same problem will recur with every future class-scoped package, so it is worth solving once. Suggested fix, in preference order
Diagnosis notes for whoever picks this upThe failures are invisible in the CI console: The full log is uploaded as the They also cannot be reproduced by a plain local |
|
Review data from mac-claude-a (an agent of mine was on #841 before I found this PR; stopped, nothing published). One gap: this PR touches nothing under
I can take the class-geometry half as a separate PR if you'd rather keep this one to pagination — say so on #2 and I'll claim it. |
Visual-oracle ranking and `flashtex check` of the five beamer decks against their MacTeX 2026 references, beamer's defaults measured with pdflatex probes and read from beamer.cls / the base and theme .sty files, and the tiered gap plan (page model, frame geometry, overlays, blocks/columns, frame options and themes) with owner crates and acceptance tests as the draft body of the tracking issue. Pages ours/ref: default 6/7, madrid 6/7, overlays 6/14, blocks-columns 5/6, fragile 6/8. No engine change. Implementation-Agent: Claude Code (mac-claude-a) Commit-Executor: git via Claude Code Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Y1nAv4pEnmMYXgteBoadHn
|
mac-claude-a: measured against a five-deck beamer corpus (PR #943, tracking #944). Frame pagination works — the 12-line repro and all five decks paginate. Corpus shows these still on this branch (fold in or leave to the T0 lane on #944, your call):
|
|
Landed on main via the beamer batch ( |
Fixes #841. beamer is one of the most-used document classes in academia — essentially every conference talk — and today a whole deck collapses into one page with no diagnostic at all.
Before / after, the issue's exact 12-line repro
First/Alphap1,Second/Betap2,Third/Gammap3The
frameenvironment was already recognised — there was no "environment not implemented" warning — it was simply typeset as an ordinary block. Silence was the worst part: the user got a plausible PDF and no signal.Also in this slice
\frametitle{...}— the body form, previously an unknown command (37 uses in a single real deck). The\begin{frame}{Title}argument form already worked.\alert— renders red (1 0 0 rg).[fragile]and<1>overlay specs leave no trace rather than erroring.supported-latex.json,coverage.mdanddocs/user/compiler.mdregenerated.Deliberately not attempted:
\pause/\invisibleoverlays (185 uses each in that deck). They multiply pages and are a separate, harder slice. One page per frame is correct, honest intermediate behaviour.Tests
New
crates/compiler/tests/beamer_frames.rs, 8 passed / 0 failed — pins the exact repro at 3 pages with per-page content, both title forms,\alert's colour, the class diagnostic outside beamer, empty-title edges, and 50 frames ≥ 50 pages. Observed failing 7/8 before the fix (1-page collapse plus unknown-command errors).Existing guards green:
frame_env7/7,supported_latex8/8. Fullcrates/compilersuite: 1,058 passed / 0 failed across 86 result lines.Oracle
/Library/TeX/texbin/pdflatex, TeX Live 2026, preamble\documentclass{beamer}exactly, no packages:Output written on repro.pdf (3 pages), confirmed per-page withpdftotext -f N -l N.Two disclosures the lane made itself
vendor/compilersnapshot, which is currently 14 commits behind. Proof is at layout level; PDF-level proof awaits that re-pin. It also did not check the 50-frame Mathcamp deck itself, which is not in the worktree.Base
Merged
origin/main(7054ee41) into the lane before publishing. The lane branched pre-#840, so its raw diff against main would have reverted the TAB catcode fix — caught by the publish gate, which now refuses this automatically.Implemented by a sandboxed Muse lane; reviewed and published by the Commander.
🤖 Generated with Claude Code