Repository navigation
Conversation
Sets the compiler's Inline::Box / SetLength / LengthGlue (\mbox, \makebox, \fbox, \framebox, \parbox, minipage, \raisebox, phantoms, \smash, laps, \strut, \hss, saved boxes, \settowidth & co.). Content is measured with the existing hbox/paragraph layout (parbox/minipage lines broken at the box width under \@parboxrestore), each measured line enters crates/tex-boxes as an opaque box tagged with a whatsit, the latex.ltx macro runs on it (frames with \fboxsep/\fboxrule, [l|c|r|s] and [t|c|b] placement with \vcenter/\vtop, \raisebox height/depth, interline glue), and ship_out gives every line position and frame rule to the sp; the record reuses the table record for painting. Lines inside boxes re-set their finite glue as hpack does (paragraph-layout sets loose lines with \emergencystretch included). Oracle: fixtures/boxes (37 fixtures, tools/box-oracle/oracle.py, references from pdflatex, cargo never runs TeX): 36/37 match (words 0.5 bp, rules 0.1 bp); known difference: minipage footnotes. Depends on the compiler box-commands PR (vendor re-pin). Implementation-Agent: Claude Opus 5 (subagent kabir-claude box commands, mac-m5pro-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 13, 2026
Merged
Closed
GoKubar
added a commit
that referenced
this pull request
Sep 13, 2026
Conflicts: adapter.rs Item enum (shared brace) and span_of or-pattern; typeset.rs Context::new. Renumbered #138's incremental hash tags 10..13 to 12..15, which collided with main's Footnote/Kern. Repointed flashtex-tex-boxes at vendor/tex-boxes to match the vendored compiler and avoid a lockfile package collision. Implementation-Agent: Claude Opus 5 (subagent kabir-claude integration, nixos-pc-kabir) Commit-Executor: Claude Code direct Git Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
This was referenced Sep 15, 2026
Closed
Contributor
Author
|
Closing as abandoned (per backlog triage). This is the render-pipeline half of #137, pinned against #137's compiler vendor snapshot ("needs compiler box-commands re-pin"). With #137 closed as abandoned and two vendor re-pin generations landed since, this cannot be revived as-is. The tex-boxes layout work (oracle 36/37) stays on branch agent/kabir-claude/box-commands-pipeline for a future rebuild. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Lays out the compiler's box nodes (
Inline::Box/SetLength/LengthGlue) withcrates/tex-boxes(KC-107), which render-pipelinenow depends on by path like class-geometry.
\hboxline (natural width, ortowidth for[s]/infinite glue with\bm@<pos>'s\hssin the same line), or\parbox/minipageparagraphs broken at the box width under\@parboxrestore(no indent,
\normalbaselineskip,\sloppy).BoxEngineas an opaque box tagged with a whatsit; thelatex.ltxmacro runs on it(
latex::fbox/frameboxwith\fboxsep/\fboxrulefrom\setlength,makeboxalignment,raiseboxheight/depth overrides,parbox/minipage[t|c|b]via\vtop/\vcenterwith the size's axis height,phantom,smash,lap,strut), andship_outgives every line position and frame rule to the sp. The record reuses the table record for painting.\settowidth& co. measure the content's hbox; lengths feed later box dimensions and\hspace{\len}.hpackdoes (set_finite_glue_as_hpack): paragraph-layout includes\emergencystretchin the stretch it sets a loose line with, so\sloppylines came out short of the measure.Depends
Needs the compiler PR (branch
agent/kabir-claude/box-commands) and avendor/compilerre-pin to its merge: against the currentlypinned vendor this branch does not build (
Inline::Boxetc. are missing). No vendor files are edited here.Evidence (scratch copy: this branch + merged compiler swapped into vendor/compiler, main 85ec30c)
tools/box-oracle/oracle.py(pdflatex TeX Live 2026, oracle only) overfixtures/boxes(37 fixtures: every command withoptions, nesting, fbox around math, parbox/minipage alignment in a line, side-by-side minipages, saved box used twice,
\settowidthdriving\hspace, 10/11/12pt): 36/37 within 0.5 bp (words) and 0.1 bp (rules). Known difference:23-minipage-footnote(minipage footnotes not implemented).tests/box_oracle.rsreplays the pinned references(cargo never runs TeX).
cargo test --release: 146 passed, 0 failed, 1 ignored.tools/real-world-corpus/run.sh --no-oracle, render producer): all 9 fixtures unchanged (status, pages,diagnostics).
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu