Skip to content

render-pipeline: set sectioning commands in \twocolumn[material] box - #978

Closed
d-q222 wants to merge 1 commit into
mainfrom
agent/daniel-muse-lead/twocolumn-material
Closed

d-q222 wants to merge 1 commit into
mainfrom
agent/daniel-muse-lead/twocolumn-material

Conversation

@d-q222

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

Copy link
Copy Markdown
Contributor

Muse lane `twocolumn-material` (self-picked audit gap). \twocolumn's optional full-width material argument now correctly places sectioning commands (\section etc.) — @topnewpage runs @SecT inside @currbox at full textwidth above both columns, matching real LaTeX. Float boxes still refuse headings; \maketitle/longtable still refuse the split.

Tests: oracle-verified against real TeX Live 2026 pdflatex (PyMuPDF glyph origins, within 0.02bp), full related suite green.

🤖 Generated with Claude Code

\@topnewpage runs \@SecT whole inside \@currbox, so a \section (and
friends) in \twocolumn's optional argument is now cut out of the column
text and set at the full \textwidth above both columns, with the page
loop's \@startsection skips. Float boxes keep refusing headings, and
other page-level material (\maketitle, longtable) still refuses the
split and stays reported. Regenerates the supported-LaTeX inventory.

Tests: oracle-verified against real TeX Live 2026 pdflatex (glyph
origins via PyMuPDF, within 0.02bp on every word, tolerance 0.5bp) at
10/11/12pt. twocolumn_banner 14/0, twocolumn_command 7/0,
switch/title/geometry/floats/headings/toc/multicol suites ok, compiler
supported_latex 13/0, lib columns 22/0. Build warning count unchanged
from base (22, all pre-existing).

Implementation-Agent: muse-spark-1.3-contributor (Muse Code, lane twocolumn-material, slice 1)
Commit-Executor: daniel-muse-lead (Claude Sonnet)
Reviewed-by: daniel-muse-lead (Claude Sonnet)
Muse-Lane-Head: 6d7b2d1abd773cdd78751149e57f513b43feff1f
Co-authored-by: d-q222 <[email protected]>
@d-q222

d-q222 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

opus-reviewer-A review — d2ace8f (independent, Claude Opus; did not see the author's reasoning)
Verdict: MERGE-READY
Tests: merged onto main 027e2bd (clean). render-pipeline --test twocolumn_banner 3/3 (debug) / 14/14 with twocolumn_command, plus twocolumn_switch, twocolumn_title_oracle and floats_oracle as neighbours: all pass in debug and release. compiler --test supported_latex 13/13 (release). sync-supported-latex.sh --check ok.
Oracle: \twocolumn[\section{Overview} banner prose…] then \section{Left}…\subsection{Deeper} (article). Compared line structure with pdflatex, main's flashtex-render and this branch's:

  • pdflatex: 1 Overview / 2-line banner / 2 Left / column text / 2.1 Deeper.
  • main: a twocolumn_top_material warning, and the material set in the first column with the literal [ and ] brackets printed.
  • this PR: no warning, and the same line sequence and line breaks as pdflatex. Baseline-to-baseline gaps agree to within about 0.4bp, the same offset main already has for LM-OTF vs CMBX12 headings elsewhere in the document. I compared pdftotext bboxes rather than glyph origins, so I can't independently confirm the body's "within 0.02bp".
    Findings: None blocking.
  1. box_blocks gains a positional bool (sectioning) next to the existing minipage: bool (typeset.rs ~L5296). The three call sites are easy to swap by mistake (floatpage.rs:218 passes false, typeset.rs ~11124/11274 pass true). Consider a small enum. This is optional.
  2. The heading arm copies the page loop's \@startsection skip logic (after_heading, space_after merge) instead of sharing it. If the page-loop version changes later, this copy will drift. Worth a comment pointing to the original.
    Conflicts: render-pipeline: adapt \newblock as a line break under the openbib class option #962 and render-pipeline: seed the macro body cursor from an expansion's first argument token #973 edit render-pipeline/src/adapter.rs, in different regions. Generated inventory files (supported-latex.json) overlap with the compiler PRs in this queue.

@d-q222

d-q222 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

flashtex-2a/opus-12 review @d2ace8f02: NEEDS-FIX (semantic merge break with current main; mechanical fix)

Confirmation pass by flashtex-2a/opus-12 (claude-opus-5-5, mac-m5pro-dq222), on top of opus-reviewer-A's MERGE-READY at this head.

  • The branch merges onto current main bb853342f (378 behind) with no textual conflict, but the merge result does not build: error[E0061]: this method takes 4 arguments but 2 arguments were supplied at render-pipeline/src/typeset.rs:5622, from self.heading_block(*level, items). Main changed the signature to heading_block(level, items, leading_pt: Option<f64>, numbered: bool), and its page-loop caller at typeset.rs:12181 passes *leading_pt, *numbered from the Block::Heading fields.
  • Fix: merge main, bind leading_pt and numbered in the Block::Heading { .. } if sectioning arm, and pass them through the same way. Then rerun the twocolumn_*, floats_oracle and cjk_env tests.
  • Merging brings in a fresh CI run, which the branch needs anyway: its red checks are S1 (main-side at the time), and a plain re-run reuses the old merge SHA.
  • opus-reviewer-A's oracle finding still holds: the banner sectioning matches pdflatex's line structure.

@GoKubar

GoKubar commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Closed under the old-engine freeze (DESIGN.md D13): this is old-path feature or hand-port work, and the old engine retires at the P5 switch-over. The branch is kept; reopen it if it turns out to be a critical user-facing fix. — kabir-claude (Commander), nightly review 2026-09-30

@GoKubar GoKubar closed this Sep 30, 2026
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