Render arxiv-style preprint title blocks
This commit is contained in:
1 parent
8d5cbc69ba
commit
4991bdfcfc
12 files changed
+559
-77
No files matched your search
+6
-9
@@ -25,16 +25,13 @@ planner remains).
|
||||
work: queue table float-page placements, tune
|
||||
`\textfraction`/`\topfraction`, and support more than a one-page lookahead.
|
||||
|
||||
## 2. Class title blocks
|
||||
## 2. Class title blocks (implemented for arXiv-style preprints)
|
||||
|
||||
- A document-level `\renewcommand{\maketitle}` already works. Class/package
|
||||
title code is still ignored; the arXiv style replaces both `\maketitle` and
|
||||
`\@maketitle` with box-level TeX (title rules, `\undertitle`, author
|
||||
tabular, `\thispagestyle{empty}`). Supporting it generally requires running
|
||||
style-origin layout commands or modelling their semantic pieces (title,
|
||||
subtitle, author blocks, affiliations, date, abstract heading) as data.
|
||||
- Until then, arXiv PDFs use the native title block and page 1 uses `plain`
|
||||
(no fancy header) but still shows the page number.
|
||||
- A document-level `\renewcommand{\maketitle}` works, and loading `arxiv.sty`
|
||||
switches to a native preprint title block: title rules, small-caps title,
|
||||
`\undertitle`, two-column author/affiliation blocks, long date, and an empty
|
||||
first page style. Remaining work is class-specific variation beyond this
|
||||
style (for example other journal templates with different author grids).
|
||||
|
||||
## 3. True vertical boxes (partial)
|
||||
|
||||
|
||||
+8
-5
@@ -50,10 +50,13 @@ the source changes; the SVG preview is refreshed per page.
|
||||
headings, title material, lists, tables, block boxes, footnotes, and the
|
||||
default paragraph indent (10/12pt use 15pt; 11pt uses 17pt).
|
||||
- Title blocks: a document-level `\renewcommand{\maketitle}` replaces the
|
||||
engine title layout and can use `\@title`/`\@author`/`\@date`; class and
|
||||
package replacements are ignored so template title code keeps using the
|
||||
native layout. The arXiv style's box-level `\maketitle`/`\@maketitle`
|
||||
(title rules, `\undertitle`, author tabular) is therefore not applied.
|
||||
engine title layout and can use `\@title`/`\@author`/`\@date`. Loading
|
||||
`arxiv.sty` selects a native preprint title style (rules, small-caps title,
|
||||
`\undertitle`, two-column author/affiliation blocks, long date, empty first
|
||||
page style), so arXiv PDFs no longer fall back to the plain article title.
|
||||
Class/package replacements of `\maketitle` itself remain ignored.
|
||||
- Line spacing: ordinary text lines use a TeX baseline grid (1.2em height,
|
||||
0.8em ascent); boxes/rules keep their measured vertical metrics.
|
||||
- Classes/packages: built-in classes, local `.cls`/`.sty`, paper options,
|
||||
`\DeclareOption`/`\ProcessOptions`/`\ExecuteOptions`/option passing.
|
||||
- Compatibility: spacing macros (quad/qquad/thin/en/med/thick, `\vspace*`,
|
||||
@@ -87,7 +90,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
|
||||
|
||||
- `examples/hello.tex`, `examples/boxes.tex`, `examples/compat.tex` compile to
|
||||
one A4 page each; the arXiv template project compiles to 3 Letter pages.
|
||||
- `cargo fmt --check` passes; `cargo test --offline` (41 tests: 37 compiler
|
||||
- `cargo fmt --check` passes; `cargo test --offline` (42 tests: 38 compiler
|
||||
integration tests + 4 server tests) covers the three examples, the arXiv
|
||||
fixture, figure/table floats (top and bottom), newpage, page styles and `\thispagestyle`, SVG/PDF output,
|
||||
project API, static frontend assets, path traversal, the legacy
|
||||
|
||||
Reference in new issue
Block a user