Repository navigation
\columnwidth is its own register, not another name for \hsize - #640
Merged
Merged
Conversation
latex.ltx:15020 declares it:
\newdimen\columnwidth
and every place that sets the measure sets \hsize FROM it, never the reverse:
\columnwidth\textwidth % 6682, \begin{document}
\if@twocolumn \advance\columnwidth -\columnsep
\divide\columnwidth\tw@ \hsize\columnwidth \fi
\hsize\columnwidth \linewidth\hsize % 6688
\global\hsize\columnwidth % 15079 (\onecolumn), 15113 (\twocolumn)
\columnwidth was \let to \hsize here. The two coincide in the body of a document,
which is why that carried the engine for a long time; they part company exactly where
a class sets \hsize for a block of front matter and then asks how wide a COLUMN is —
acmart's \@mkauthors@iv does it four lines apart (acmart.cls:2529-2530 then :2722).
\linewidth stays \let to \hsize: it IS the current measure, and \begin{document}
(6688) and \minipage (11861) both set it from \hsize.
⚠ Zero means "nobody has stated it yet", and then \columnwidth answers with the
paragraph measure — which is what the \let gave. A document that never reaches
\begin{document}'s recompute (a probe, a fragment, a class that states widths and
stops) therefore behaves exactly as before rather than reading a column width of 0pt.
⛔ I reached this from a hypothesis that was WRONG: that it explained acmart's author
block running 3356pt off the page on 2405.20319 (#629). It does not — acmtog uses
\@mkauthors@i and sigplan \@mkauthors@iii, and both size from \textwidth. Only
sigchi-a reads \columnwidth. The off-page author line has another cause (#629).
The change stands on the source, and the corpus then found witnesses the hypothesis
had not: 154 papers, control 712b4fc, THREE move and all three improve —
2304.06819 21 → 20 (ref 18)
2312.01923 9 → 8 (ref 7)
2407.11498 24 → 23 (ref 22)
Σ|·| 293 → 290, bias +83 → +80, none worse.
Co-Authored-By: Claude Opus 5 <[email protected]>
tannevaled
force-pushed
the
column-width-register
branch
from
October 21, 2026 07:11
c0bde30 to
c09d125
Compare
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.
\columnwidthwas\letto\hsize. It is its own register in LaTeX, and\hsizeis set from it — never the reverse.
The source
and every place that sets the measure:
The two coincide in the body of a document, which is why the
\letcarried thisengine for a long time. They part company exactly where a class sets
\hsizefor ablock of front matter and then asks how wide a column is — acmart's
\@mkauthors@ivdoes it four lines apart (acmart.cls:2529-2530then:2722).\linewidthstays\letto\hsize: it is the current measure, and both\begin{document}(6688) and\minipage(11861) set it from\hsize.⚠ Unset,
\columnwidthanswers with the paragraph measure — which is what the\letgave. A document that never reaches
\begin{document}'s recompute (a probe, afragment, a class that states widths and stops) therefore behaves exactly as before
rather than reading a column width of 0pt. There is a test for that, because it is the
one way this change could quietly size every box in such a document from zero.
Corpus
154 papers, control
712b4fc(the parent). Three move, all three toward thereference, none away:
2304.068192312.019232407.11498Σ|·| 293 → 290, bias +83 → +80, 36 exact either way.
⛔ The hypothesis that led me here was wrong
I expected this to explain acmart's author block running 3356pt off a 612pt page
on
2405.20319(#629). It does not: acmtog uses\@mkauthors@iand sigplan\@mkauthors@iii, and both size from\textwidth. Only sigchi-a reads\columnwidth. The change stands on the source, and the corpus then found witnessesthe hypothesis had not.
That off-page line has since been isolated to something else, with the oracle: see
#629.
🤖 Generated with Claude Code