Repository navigation
compiler: implement tabularx with even-split X columns (#837) - #901
Merged
Merged
Conversation
Parse \begin{tabularx}{width}{cols} (package-gated, like longtable),
accept a bare X letter in array column specs, and lay X columns out at
an even share of the leftover width, each wrapping like p{share}.
Verified against pdflatex/TeX Live 2026 showbox: equal shares (164.8pt
single-X, 87.4pt each for two X) even with very different contents.
Implementation-Agent: muse-spark-1.3-contributor
Commit-Executor: muse-spark-1.3-contributor
The lane's package_matches_layout arm for tabularx had no corresponding PACKAGES row, failing environment_and_package_inventory_equals_the_parser_arms in both debug and release. Also regenerates the derived inventory artifacts. Implementation-Agent: daniel-muse-lead-2 Commit-Executor: daniel-muse-lead-2
jay3332
added a commit
that referenced
this pull request
Sep 18, 2026
…tries take the paragraph branch Thirteen more compiler files landed on main since the last pin (etoolbox toggles, #901/#902/#913/#915/#917/#929). The mirror follows main again; the one new variant, tabular::Align::Flexible (tabularx's X column, a paragraph entry whose share is fixed at layout time), is set flush left like p entries when its content is placed. 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
jay3332
added a commit
that referenced
this pull request
Sep 18, 2026
…tries take the paragraph branch Thirteen more compiler files landed on main since the last pin (etoolbox toggles, #901/#902/#913/#915/#917/#929). The mirror follows main again; the one new variant, tabular::Align::Flexible (tabularx's X column, a paragraph entry whose share is fixed at layout time), is set flush left like p entries when its content is placed. 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
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.
Summary
\begin{tabularx}{width}{cols}environment, gated on\usepackage{tabularx}, with a bareXcolumn letter (no{width}group — a user\newcolumntype{X}still wins over the built-in).Align::Flexiblevariant:X's width can't be known at parse time (it depends on the other columns' natural widths), so it's computed at layout time as an even split of the leftover width (target - natural_width) across allXcolumns, then eachXentry is re-laid-out at its share, wrapping likep{share}.tabularx.sty(TeX Live 2026): it rewrites everyXtop{\TX@col@width}, one shared width for allXcolumns — so even-split is exact, not approximate, confirmed via\showboxdumps for both a single-Xand a two-Xtable (equal shares even with very different cell contents).\multicolumnspanning anXcolumn doesn't absorb into the share computation (real tabularx's trial loop does); an over-narrow target keeps natural widths rather than falling back to1em;\renewcommand{\tabularxcolumn}isn't honored.Review notes (mine)
The published lane's commit was missing a
PACKAGESinventory row fortabularxeven though it added apackage_matches_layoutarm for it — failedenvironment_and_package_inventory_equals_the_parser_armsin both debug and release. Added the missing entry, regenerated the derived inventory artifacts, and re-verified full green before publishing.Test plan
crates/compiler/src/tabular.rs: single-Xleftover-width case, two-Xeven split,Xwraps likep(top-aligned), width-required + package-gated diagnostics — all pdflatex-verified (\showboxbox-width dumps, TeX Live 2026)crates/compilersuite, independently re-run on the exact pushed tree after my fix:cargo test --lockedandcargo test --release --locked, both 0 failuresProduced by a supervised Muse Contributor lane (
tabularx-env), reviewed (full diff read, independently re-tested, one real gap found and fixed before publishing) by me.🤖 Generated with Claude Code