Add abstract quotations, unnumbered paragraphs, and author-year citations

This commit is contained in:
gloamxun committed 2026-10-19 15:39:02 +08:00
1 parent 3406f84e86
commit 7f1f202de1
11 files changed
+366 -60

No files matched your search

+6 -2
View File
@@ -46,6 +46,8 @@ the source changes; the SVG preview is refreshed per page.
- Chapters: `\chapter` is a level-0 heading; chapter numbers prefix section
numbers (`1.1`, `1.1.1`) and reset lower counters. Chapters after the first
block start on a new page.
- Abstract: the `abstract` environment is a 20mm inset quotation with a bold
heading, matching the class styles used by the arXiv template.
- Class sizes: 10pt/11pt/12pt set the body size (article defaults to 10pt)
and propagate through
headings, title material, lists, tables, block boxes, footnotes, and the
@@ -62,7 +64,9 @@ the source changes; the SVG preview is refreshed per page.
`\DeclareOption`/`\ProcessOptions`/`\ExecuteOptions`/option passing.
- Compatibility: spacing macros (quad/qquad/thin/en/med/thick, `\vspace*`,
`\hspace*`, skips), text symbols/letters/punctuation, break advisories,
metadata, citations/references, tables/lists/images.
metadata, `\paragraph` run-in headings, citations/references, tables/lists/images.
- Citations: numeric citations by default; `natbib`/`arxiv.sty` selects author-year
`\citet`/`\citep` from `.bib` metadata and drops numeric bibliography labels.
- Live preview: paragraph cache, page-hash diffing, warm rebuilds in the low
milliseconds for small edits.
@@ -91,7 +95,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` (42 tests: 38 compiler
- `cargo fmt --check` passes; `cargo test --offline` (45 tests: 41 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