revtex's abstract belongs after the title, not above it - #354
Merged
Merged
Conversation
In revtex the abstract is written BEFORE \maketitle and emitted BY it, after the
authors. The generic \abstract sets it where it stands, so every rendered revtex
paper carried its abstract ABOVE its own title. On 2203.15077 page one opened with
Abstract Growing a flat lamina such as a leaf is almost impossible without…
where the reference opens with "How to grow a flat leaf".
It costs no page, so Sigma cannot see it: 326 -> 326 (+0), glyphs +0. It was found
by LOOKING at the deployed playground's rendered page.
The abstract is collected into a box with \global\setbox — local would be restored
by the \endgroup that \end{abstract} runs, and the abstract would vanish (checked
both ways, and tectonic loses it too when the box is local) — and \maketitle places
it after the affiliations. An abstract written AFTER \maketitle, which some papers
do, is emitted as soon as it closes, so the order is right either way and nothing
is ever captured into a box no one empties.
pageChars and treeText walked the main vertical list and THEN the region spans, so
a revtex title block came out AFTER the body it heads. They walk in page order now:
a region's span, then that region's material.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
In revtex the abstract is written before
\maketitleand emitted by it, after the authors. The generic\abstract(latex.go) sets it where it stands, so every rendered revtex paper carried its abstract above its own title.On 2203.15077, page one:
Σ cannot see this one
326 → 326 (+0), glyphs +0, no paper losing content — a misplaced abstract costs no page. It was found by looking at the deployed playground's rendered page, after #353 made that page worth looking at.
Two things the implementation turns on
\global\setbox. A local one is restored by the\endgroupthat\end{abstract}runs and the abstract vanishes — checked both ways, and tectonic loses it too when the box is local.\maketitle(some papers do) is emitted as soon as it closes, so the order is right either way and nothing is ever captured into a box no one empties. It has its own test.A test helper was reporting the wrong order
pageCharsandtreeTextwalked the main vertical list and then the region spans, so a revtex title block came out after the body it heads — the first version of the order test failed on the helper, not on the engine. They walk in page order now: a region's span, then that region's material, which is also what afigure*/table*band needs.Both tests fail without the fix.
🤖 Generated with Claude Code