Repository navigation
engine: IEEEtran's title block is a vertical, column-spanning block - #481
Conversation
…exist \IEEEauthorblockN and \IEEEauthorblockA were undefined, so a conference paper's names and affiliations were skipped as commands and their arguments ran into ONE paragraph. On 2408.02112 the reference reads "Stephen M. Watt" and "D. J. Jeffrey" above their affiliations; we produced "Stephen M. Watt Ontario Research Centre for Computer Algebra and Cheriton School of …". IEEEtran.cls:4676-4677 defines both as pass-throughs outside conference, peerreviewca and transmag mode, and inside those modes sets them through \@IEEEauthorhalign (:4683), which places the name rows and the affiliation rows side by side in COLUMNS. That halign is not implemented, so every mode gets the pass-through — but not a bare #1: the halign's \crcr is what ends each block, and without it the run-together is exactly what we had. A paragraph per block keeps the content and its reading order and loses only the column arrangement. \IEEEoverridecommandlockouts restores \thanks, \IEEEPARstart, \IEEEbiography, \IEEEpubid and \IEEEmembership from their saved meanings, which conference mode locked out (IEEEtran.cls:6274-6285). Nothing is locked out here, so there is nothing to restore — but the command has to EXIST, because a paper that calls it is stopped by an undefined control sequence before its preamble is finished. Two corpus papers do (2304.04876, 2311.16571). Census: 5 papers, 13 uses, and it was only visible at all after #480 — the command sits inside \author{…} after a blank line, so the engine never reached it while the call was being abandoned. ⛔ Not fixed here, and larger: the IEEEtran title block does not SPAN the columns. The class sets two columns from \documentclass, and the generic \maketitle (latex.go:193) emits the title into column one, where it overlaps the body — the affiliation on 2408.02112 runs off the right edge. The machinery exists (colRegion.span, \@topnewpage, and \gotex@revtexbodytwocol as the model); it is its own change. Co-Authored-By: Claude Opus 5 <[email protected]>
The author-block commands alone changed the corpus by ZERO — Σ +0, glyphs +0, and
byte-identical page hashes on every paper. That measurement is what found the real
defect, which is in \maketitle.
⛔ \centerline{\@author} is an \hbox, and an IEEEtran author is a VERTICAL list:
\IEEEauthorblockN{name} over \IEEEauthorblockA{affiliation}, repeated per author. An
hbox flattens it into one line that does not wrap, so a \par inside it does nothing —
which is exactly why defining \IEEEauthorblockN with one had no effect. On 2408.02112
the reference sets two authors side by side over four affiliation lines each; we set
one line that ran off the right edge of the page.
⛔ And the block did not SPAN the columns. IEEEtran sets two from \documentclass, and
applyTwoColumnMeasure defers halving the measure to the first BODY paragraph — so the
title block was typeset at FULL width and then sliced by paginateTwoColList as if it
were column material. That is what put the title through the introduction.
\twocolumn[…] is the construct for this: its bracket material is typeset full width
and placed across the top of the region's first page (typesetSpanFullWidth,
colRegion.span), which is how the revtex emulation already does it. On 2408.02112 the
title now sits across the page, each name over its own affiliation lines, with the
abstract and the body in two columns below it — the reference's structure, minus the
\@IEEEauthorhalign that would set the two authors side by side rather than stacked.
[onecolumn] gets a non-spanning form, because \twocolumn[…] GOBBLES its span when the
engine is not in two-column mode and would drop the whole title block. It still
replaces \centerline with a center environment: the hbox defect is not about columns.
Font sizes are deliberately unchanged. This is structural; the title's real size is a
separate fidelity question with its own effect on Σ.
⛔ Both tests had to be rewritten after failing the way they were first written:
- the \par check asserted on rendered TEXT, where stripSVGTags joins lines with a
space, so two separate lines read as one run. It now compares the y of each
token's <tspan>.
- the span check asserted only that the words were on the page, and PASSED against
the unfixed engine — the words are there either way, wrongly placed. It now asserts
colRegions[0].span exists and is wider than the column measure.
Co-Authored-By: Claude Opus 5 <[email protected]>
⛔ Correction to this PR's original claimThe first commit here said the author-block pass-throughs fix the run-together on
Byte-identical page hashes, That zero is what found the real defect, and it is in
|
Found by looking at the page after the spanning title block landed: 2405.05734's
author line came out as
Daanish Mahajan
,
Chirag Jain
,
Navin Kashyap
where the reference reads "Daanish Mahajan, Chirag Jain, Navin Kashyap".
IEEEtran defines the author blocks TWO WAYS, and the distinction is the whole point.
In conference, peerreviewca and transmag mode they are ROWS of \@IEEEauthorhalign,
each ended by its own \crcr (IEEEtran.cls:4632, :4649). Outside those modes the class
defines plain pass-throughs (:4676-4677):
\def\IEEEauthorblockN#1{#1}
\def\IEEEauthorblockA#1{#1}
because a journal paper writes the blocks INLINE with its own punctuation between
them — which is exactly what 2405.05734 does, and breaking there strands every comma
alone on a line.
The halign is still not implemented, so the conference rows are a vertical stack
rather than side-by-side columns. But the mode distinction costs nothing to keep and
is visible on the page both ways: with rows everywhere, a journal author line is shot
through with orphan commas; with pass-throughs everywhere, 2408.02112's conference
author ran together on one line off the right edge of the page.
Co-Authored-By: Claude Opus 5 <[email protected]>
Measured, whole branch against
|
| commit | what | Σ | glyphs | papers moved |
|---|---|---|---|---|
dd642b7 author blocks defined |
330 → 330 | +0 | none | |
312574e vertical, spanning title block |
330 → 330 | −310 | 1 | |
c6af28f blocks follow the class mode |
330 → 330 | +0 | none |
Channel census, 5117ec8 → branch
| channel | base | branch | |
|---|---|---|---|
| undefined command | 3677 | 3652 | −25 |
| equations dropped | 198 | 198 | +0 |
| undefined environment | 323 | 323 | +0 |
| figure as empty box | 997 | 997 | +0 |
}-overrun |
16 | 16 | +0 |
| macro call abandoned | 65 | 65 | +0 |
The −25 is exactly the three commands: \IEEEauthorblockN (5 papers, 13 uses), \IEEEauthorblockA (10) and \IEEEoverridecommandlockouts (2). Nothing else in any channel moved.
The −310 glyphs is a duplicate removed
2408.02112, counted against the reference:
| control | treatment | reference | |
|---|---|---|---|
Stephen |
4 | 3 | 3 |
Cheriton |
2 | 1 | 1 |
Waterloo |
2 | 1 | 1 |
Jeffrey |
0 | 1 | 1 |
Abstraction-Preserving |
2 | 1 | 1 |
The title block was typeset at full width and then sliced into both columns, so the title and the affiliations were emitted twice and the second author was lost off the edge. Every count now matches the reference.
Why only one paper moved
Of the nine corpus papers using \IEEEauthorblockN, four bundle IEEEtran.cls and so never reach the emulation at all (2307.14273, 2310.19699, 2408.03452, 2408.07843). Of the five that do, one is [conference,onecolumn] and gets the non-spanning form; the remaining three have title blocks short enough to fit in one column slice, so the span changed their PLACEMENT and not their content — which Σ and the glyph count cannot see either way.
2405.05734 is the witness for that: its author line was
Daanish Mahajan
,
Chirag Jain
,
Navin Kashyap
and now reads Daanish Mahajan, Chirag Jain, Navin Kashyap, as the reference does. Σ +0, glyphs +0, and the test is the only thing that holds it.
🤖 Generated with Claude Code
Continues #480.
\IEEEauthorblockNbecame visible in the census only after that PR — the command sits inside\author{…}after a blank line, so the engine never reached it while the call was being abandoned. Census: 5 papers, 13 uses.The run-together
\IEEEauthorblockNand\IEEEauthorblockAwere undefined, so a conference paper's names and affiliations were skipped as commands and their arguments ran into one paragraph. On2408.02112:reference
ours, before
IEEEtran.cls:4676-4677defines both as pass-throughs outside conference, peerreviewca and transmag mode:and inside those modes sets them through
\@IEEEauthorhalign(:4683), which places the name rows and the affiliation rows side by side in columns. That halign is not implemented here, so every mode gets the pass-through — but not a bare#1: the halign's\crcris what ends each block, and without it the run-together is precisely what we had. A paragraph per block keeps the content and its reading order, and loses only the column arrangement, which is what not implementing the halign costs.\IEEEoverridecommandlockoutsIt restores
\thanks,\IEEEPARstart,\IEEEbiography,\IEEEpubidand\IEEEmembershipfrom their saved meanings, which conference mode locked out (IEEEtran.cls:6274-6285). Nothing is locked out in this emulation, so there is nothing to restore — but the command has to exist: a paper that calls it is stopped by an undefined control sequence before its preamble is finished. Two corpus papers do (2304.04876,2311.16571).⛔ Named and deliberately not fixed here
The IEEEtran title block does not span the columns. The class sets two columns from
\documentclass, and the generic\maketitle(latex.go:193) emits the title into column one, where it overlaps the body — on2408.02112the affiliation runs off the right edge and the title interleaves with the introduction. The machinery already exists (colRegion.span,\@topnewpage, with\gotex@revtexbodytwocolas the working model for revtex). It is a larger change and gets its own PR rather than riding along in this one.Testing
go test -count=1 ./...green. Break check built fromHEAD^withgit archiveand the new test dropped in — it fails there on all three commands still being undefined.A/B measurement follows in a comment.
🤖 Generated with Claude Code