Skip to content

A shipped IEEEtran.cls puts a stray # before the author list #602

Open

Description

@tannevaled

A paper that ships its own IEEEtran.cls gets a stray # in front of its
author list, on the title page. The engine's embedded IEEEtran emulation does not
have the problem; the real class does.

Witness, three lines

\documentclass[conference]{IEEEtran}
\begin{document}
\title{W}\author{\IEEEauthorblockN{A Name}\IEEEauthorblockA{An Affiliation}}\maketitle
\end{document}

with a real IEEEtran.cls beside it. Read out of the two PDFs:

line 2 line 3
tectonic A Name An Affiliation
gotex # A Name An Affiliation

The same run reports two undefined commands, both on this path:

gotex: 3 undefined command(s) skipped, 3 occurrence(s)
       1  \everycr
       1  \noalign

Dropping the \IEEEauthorblockA leaves only \everycr; dropping the author block
leaves neither, and \IEEEeqnarray is not involved — removing it changes
nothing. So the path is IEEEtran's \halign-based author block:

IEEEtran.cls:4650  \def\@IEEEauthorblockNtopspaceline{\cr\noalign{\vskip\@IEEEauthorblockNtopspace}}
IEEEtran.cls:4670  \def\@IEEEauthorblockAtopspaceline{\cr\noalign{\vskip\@IEEEauthorblockAtopspace}}
IEEEtran.cls:4714  \def\@@@IEEEauthorhaligncr[#1]{\ifnum0=`{\fi}\cr\noalign{\vskip#1\relax}}

halign.go does implement \noalign, and \everycr is a TeX primitive the
engine lacks, so the alignment is not being entered the way the class expects and a
template # reaches the page.

Scale, measured on the corpus

Nine of the 154 fidelity papers use \IEEEauthorblockN. Split by whether they ship
the class:

paper class stray #
2307.14273 shipped yes
2310.19699 shipped yes
2408.03452 shipped yes
2408.07843 shipped yes (2)
2210.12297 embedded no
2304.04876 embedded no
2311.16571 embedded no
2405.05734 embedded no
2408.02112 embedded no

4 of 4 shipped, 0 of 5 embedded. A real one, 2307.14273, prints
# Roa’a Al-Emaryeen… on its title page.

Relation to #598

These are also where the remaining \noalign uses live. #598 teaches the tabular
parser \noalign and removes 19 of the corpus's 64 uses (2 papers); the other 45,
over 6 papers, come from this class by expansion — none of those papers writes
\noalign in its own source at all. Two of the six use the construct without an
author block, which is why the counts are 6 papers here and 4 above.

\everycr itself is 5 papers / 13 uses in the census of skipped commands.

Activity

  1. tannevaled commented on Oct 11, 2026

    @tannevaled
    ContributorAuthor

    Measured: 13 alignments over 5 papers, and the order the parts must land in

    #603 does three of the four things this needs, and deliberately not the fourth.

    The scale, measured with a probe written for the new report section (not the
    undefined channel — that is the whole point of this defect):

    154 paper(s) read of 154 named
    \halign      13 dropped over 5 paper(s): 2307.14273,2310.11223,2310.19699,2408.03452,2408.07843
    

    All five ship their own IEEEtran.cls. Nothing else in the corpus drops an
    alignment.

    Why the brace is the LAST part, not the first

    Accepting the implicit brace is one line, and I wrote it, measured it, and took it
    back out. With it, the alignment is entered and this engine cannot yet build it:

    line 2 of the title page
    tectonic A Name
    gotex today # A Name
    gotex with the brace accepted 0.511mm

    The author names are gone and a dimension is on the page instead. A cosmetic #
    that keeps the content beats a clean parse that loses it.

    Flipping the brace needs these first, and the three that are done are in #603:

    • a periodic preamble, \halign{&T\cr …} (tex.web §786/§793) — the preamble is
      &\relax\hfil…##\relax\hfil…\cr
    • an implicit \egroup ends a row (§774)
    • the abandonment is reported at all, so this is measurable
    • the rule spec in the template's v-part (\@IEEEauthorstrutrule) — this is
      where 0.511mm comes from
    • \everycr (§799), a token list inserted after every \cr; 5 papers / 13 uses
      in the census of skipped commands, and it is in the preamble here
    • IEEEtran's \ifnum0={\fi}brace trick, which is how\ is written inside the alignment (@@@IEEEauthorhaligncr`)
    • then: accept the implicit brace (§403), and re-measure this witness

    The witness stays the three-line one above; the control stays 4-of-4 shipped
    against 0-of-5 embedded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions