Repository navigation
a footnote's layout is \@makefntext, called, not a row built in Go - #680
Merged
Merged
Conversation
queueFootnoteText put the mark, a space and the text in a flat list, so no class
could place the mark. All three base classes right-align it in a 1.8em box —
\newcommand\@makefntext[1]{%
\parindent 1em\noindent\hb@[email protected]{\hss\@makefnmark}#1}
(article.cls:609-612, report.cls:708, book.cls:714) — so every note's text began
one box-width left of the reference's. The note is now handed to \@makefntext the
way latex.ltx:13198 hands it over, and the mark reaches it through \@thefnmark
and \@makefnmark (latex.ltx:13168, :13179), both of which a document may replace.
Measured on a plain article note: no box of 14.400pt existed anywhere on the page
before, one does now; a document asking for \hb@xt@3in gets 216.81pt where it
previously got nothing.
The note is passed BRACED because amsart.cls:1303 writes \def\@makefntext{%
\indent\@makefnmark} with no parameter at all: that group is the argument for the
three base classes and an ordinary group for amsart, and both read correctly.
\@thefnmark is \def'd inside the note's own group rather than globally. The
reference's \protected@xdef is global, but it rewrites it before every note, so
the two cannot be told apart from the output and the local form cannot leak a
mark into what follows.
NOT DONE HERE: \@textsuperscript is the identity in this engine
(classprims.go:260), so the mark is set at text size on the baseline where the
reference raises it. That is a separate divergence, and this change leaves it
exactly as it was.
Co-Authored-By: Claude Opus 5 <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
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.
Next on the parity roadmap (#677) after
\thefootnoteand\footnoterule:\@makefnmarkwas named by 57 of the 154 measured papers and verified by hand asgenuinely absent — it appeared in this engine only inside comments.
The defect
queueFootnoteTextbuilt the note as a flat row in Go:so no class could place the mark. All three base classes right-align it in a box:
(
article.cls:609-612,report.cls:708,book.cls:714). Every note's text thereforebegan one box-width to the left of the reference's, on every document with a
footnote.
The note is now handed to
\@makefntextthe waylatex.ltx:13198hands it over, andthe mark reaches it through
\@thefnmarkand\@makefnmark(latex.ltx:13168,:13179) — both replaceable by a document.Measured
A plain
articlenote, box widths read off the assembled page:[345.000 345.000 15.000 4.950 137.998 345.000 4.950 345.000 15.000 345.000 4.950]A document asking for
\hb@xt@3ingets 216.81pt where it previously got nothing.The controls
\renewcommand\@makefntext[1]{\@makefnmark #1}— gets none. Without it the first test would also pass on an engine that built the 1.8em box in Go, which is the same defect under another name.amsart.cls:1303writes\def\@makefntext{\indent\@makefnmark}with no parameter at all. The brace group is the argument for the three base classes and an ordinary group for amsart, and both read correctly — a failure that would be invisible on every class the other tests exercise.\@makefntextcall disabled, the two geometry tests fail and the negative control still passes.Corpus A/B
Control
a843d02(main), treatment6269c7d:Against the reference,
refclean:makefntext-ctlmakefntext-trtThe one document that changed pages,
2209.13121, went 36 → 37 against a reference of42: deviation −6 → −5, toward the reference. The signed bias rises because that
paper was short, not because anything got worse; Σ|·| falls by the same 1, and with a
single mover there is no net gain hiding a document that went red.
72 of 154 render differently, 71 of them invisible to a page count — the render
channel again measuring what the page count cannot see (#675).
NOT DONE HERE
\@textsuperscriptis the identity in this engine (classprims.go:260), so the mark isset at text size on the baseline where the reference raises it
(
\hbox{\@textsuperscript{\normalfont\@thefnmark}},latex.ltx:13168-13172). That is aseparate divergence, and this change leaves it exactly as it was.
🤖 Generated with Claude Code