Build structured journal front matter for sn-jnl

This commit is contained in:
gloamxun committed 2026-10-20 01:08:37 +08:00
1 parent 82542740e7
commit 466abd4ce6
10 files changed
+684 -7

No files matched your search

+4 -2
View File
@@ -37,8 +37,10 @@ captions with the insertion area reserved on the caption page.
- 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).
first page style. Loading `sn-jnl` selects a structured journal title block
with numbered authors, affiliations, e-mail, abstract, and keywords.
Remaining work: two-column body layout (`iicol`), exact journal title
spacing, and class-specific author grids.
## 3. True vertical boxes (partial)
+4 -1
View File
@@ -57,6 +57,9 @@ the source changes; the SVG preview is refreshed per page.
`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.
Loading `sn-jnl` selects a structured journal title style built from
`\author`/`\affil`/`\abstract`/`\keywords` metadata: centered title,
numbered authors and affiliations, e-mail line, abstract, and keywords.
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.
@@ -126,7 +129,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
0.29 MB and `pdffonts` reports only embedded CID TrueType faces); this avoids
viewer-dependent glyph substitution. Tables use natural column widths and
centered rules; preview and PDF share the same table line coordinates.
- `cargo fmt --check` passes; `cargo test --offline` (71 tests: 67 compiler
- `cargo fmt --check` passes; `cargo test --offline` (72 tests: 68 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