Skip to content

engine: IEEEtran's title block is a vertical, column-spanning block - #481

Merged
tannevaled merged 3 commits into
mainfrom
fix/ieee-author-blocks
Sep 27, 2026
Merged

tannevaled merged 3 commits into
mainfrom
fix/ieee-author-blocks

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Continues #480. \IEEEauthorblockN became 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

\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:

reference

              An Abstraction-Preserving Block Matrix
                    Implementation in Maple
                 Stephen M. Watt                          D. J. Jeffrey
   Ontario Research Centre for Computer Algebra   Ontario Research Centre for Computer Algebra
     and Cheriton School of Computer Science             and Department of Mathematics

ours, before

Stephen M. Watt Ontario Research Centre for Computer Algebra and Cheriton School of Computer…

IEEEtran.cls:4676-4677 defines both as pass-throughs outside conference, peerreviewca and transmag mode:

\def\IEEEauthorblockN#1{#1}
\def\IEEEauthorblockA#1{#1}

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 \crcr is 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.

\IEEEoverridecommandlockouts

It restores \thanks, \IEEEPARstart, \IEEEbiography, \IEEEpubid and \IEEEmembership from 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 — on 2408.02112 the affiliation runs off the right edge and the title interleaves with the introduction. The machinery already exists (colRegion.span, \@topnewpage, with \gotex@revtexbodytwocol as 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 from HEAD^ with git archive and 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

tannevaled and others added 2 commits September 27, 2026 17:04
…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]>
@tannevaled

Copy link
Copy Markdown
Contributor Author

⛔ Correction to this PR's original claim

The first commit here said the author-block pass-throughs fix the run-together on 2408.02112. They do not. Measured over the 154-paper corpus, dd642b7 against 5117ec8:

control treatment
Σ page error 330 330
glyphs 7 696 471 7 696 471
papers that moved — none

Byte-identical page hashes, 2408.02112 included (483a34923b32c351 both sides). The commands become defined — 13 census uses go to zero, and two papers stop failing on \IEEEoverridecommandlockouts — but nothing on the page changed, and the \par I had added was dead code.

That zero is what found the real defect, and it is in \maketitle.

\centerline cannot hold an author block

\long\def\maketitle{\par\bigskip\centerline{\@title}\smallskip\centerline{\@author}…}

— latex.go:193

\centerline is an \hbox. An IEEEtran author is a vertical list — \IEEEauthorblockN{name} over \IEEEauthorblockA{affiliation}, repeated per author — and an hbox flattens it into one line that does not wrap. A \par inside it does nothing, which is the whole explanation for the zero above. It is also why the affiliation ran off the right edge of the page.

And the block did not span the columns

IEEEtran sets two columns 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 — which is what put the title through the introduction.

\twocolumn[…] is exactly the construct for this: bracket material typeset full width and placed across the top of the region's first page (typesetSpanFullWidth, colRegion.span), the same path the revtex emulation already uses.

2408.02112, after:

              An Abstraction-Preserving Block Matrix Implementation in Maple

                                  Stephen M. Watt
                    Ontario Research Centre for Computer Algebra
                      and Cheriton School of Computer Science
                            University of Waterloo, Canada
                                [email protected]

                                   D. J. Jeffrey
                    Ontario Research Centre for Computer Algebra
                           and Department of Mathematics
                        University of Western Ontario, Canada
                                 [email protected]

                Abstract                     An implementation is described here that
  A Maple implementation of partitioned      preserves and respects the block structure
  matrices is described. …                   for all the usual matrix operations, …

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 otherwise 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, and the title's real size is a separate fidelity question with its own effect on Σ.

⛔ Both tests were wrong first, in the two ways this session keeps hitting

  • the \par check asserted on rendered text, where stripSVGTags joins lines with a space — so two separate lines read as one run and the check failed on a page that was correct. 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 present either way, wrongly placed; a witness small enough to assert on positions is also too small to overflow anything. It now asserts colRegions[0].span exists and is wider than the column measure. Both fail at HEAD^.

A/B for the spanning commit follows.

🤖 Generated with Claude Code

@tannevaled tannevaled changed the title engine: IEEEtran's author blocks, and the lockout override that must exist engine: IEEEtran's title block is a vertical, column-spanning block Sep 27, 2026
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]>
@tannevaled

Copy link
Copy Markdown
Contributor Author

Measured, whole branch against 5117ec8

Three commits, each measured against its own parent with measure sweeppair (control = HEAD^ by construction, provenance validated each time).

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

@tannevaled
tannevaled merged commit 136b7af into main Sep 27, 2026
18 checks passed
@tannevaled
tannevaled deleted the fix/ieee-author-blocks branch September 27, 2026 15:40
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.

1 participant