Draw the arXiv title rules and undertitle

The arXiv class places 2pt rules above/below the title and an A Preprint
undertitle. Detect the class via its toptitlebar macro, reserve space with an
invisible rule (page builders discard glue before the first unit), and stamp
the rules/undertitle onto the first page for both preview and PDF.

Update the title-page header assertion: the first page legitimately carries the
undertitle, so it must lack the running center header instead. Author lines
remain sequential; two-column affiliations are still open.
This commit is contained in:
gloamxun committed 2026-10-27 22:07:40 +08:00
1 parent 7528ea26e2
commit 6b89ab1dd7
3 files changed
+73 -5

No files matched your search

+3 -2
View File
@@ -40,8 +40,9 @@ execution is not a goal.
6.5in text block and page-2/page-3 headers instead of content at x=0.
- Still visibly different from TeX:
- body face is CMR/fallback, not Times from `\rmdefault{ptm}`;
- title now uses small caps and author metadata is split onto class-like
lines; title rules, two-column affiliations and ORCID icons are still
- title uses small caps; the arXiv class's top/bottom rules and
"A Preprint" undertitle are drawn, and author metadata is split onto
class-like lines. Two-column affiliations and ORCID icons are still
missing;
- reference style is numeric, not natbib author-year;
- display math is approximate;
+2
View File
@@ -116,6 +116,8 @@ problems in the generated PDF, all fixed in the follow-up increment:
Remaining visible gaps in this template:
- the display equation is still a rough approximation of the printed formula;
- the title rules and A Preprint undertitle are now drawn, but the author
block is sequential rather than the class's two columns;
- the `\fbox{\rule...}` figure body is not drawn (only its caption survives);
- `orcid.pdf` is a vector image and stays unsupported;
- the author block is concatenated and does not reproduce the class layout.