Allow documents to replace the title block
This commit is contained in:
1 parent
23cf1f13de
commit
5e9552d785
8 files changed
+89
-18
No files matched your search
+1
-6
@@ -12,7 +12,7 @@ geometry-aware `\textwidth`/`\textheight` named length registers; table of
|
||||
contents and figure/table lists with dotted leaders; native PDF rectangles; unified pagination;
|
||||
`\centering`/`\raggedright`/`\raggedleft` declarations and environments;
|
||||
chapter headings with chapter-prefixed section numbering and page breaks;
|
||||
deferred top-float queue for figures
|
||||
deferred top-float queue for figures; document-level custom `\maketitle`
|
||||
(`build_positioned_pages` is the only page builder and no separate break
|
||||
planner remains).
|
||||
|
||||
@@ -28,8 +28,3 @@ planner remains).
|
||||
- `\vbox`/`\vtop` currently map to a full-width block `\parbox`. A real VBox
|
||||
needs a vertical-material capture with its own natural width, baseline, and
|
||||
nested line/box children in the positioned renderer.
|
||||
|
||||
## 3. Custom title blocks (remaining)
|
||||
|
||||
- Let a document-level `\renewcommand{\maketitle}` contribute a real title
|
||||
block once the engine's title model can run box material.
|
||||
+5
-3
@@ -46,6 +46,10 @@ the source changes; the SVG preview is refreshed per page.
|
||||
- Class sizes: 10pt/11pt/12pt set the body size and propagate through
|
||||
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.
|
||||
- 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*`,
|
||||
@@ -70,14 +74,12 @@ See `docs/ROADMAP.md` for concrete implementation plans.
|
||||
ends rather than the exact reference line.
|
||||
- Contents: chapter headings are listed with chapter-prefixed section
|
||||
numbers, but contents are not split per chapter.
|
||||
- Miscellaneous: a document-level `\renewcommand{\maketitle}` is ignored in
|
||||
favor of the engine title block.
|
||||
|
||||
## Verification
|
||||
|
||||
- `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` (37 tests: 33 compiler
|
||||
- `cargo fmt --check` passes; `cargo test --offline` (38 tests: 34 compiler
|
||||
integration tests + 4 server tests) covers the three examples, the arXiv
|
||||
fixture, floats/newpage, page styles and `\thispagestyle`, SVG/PDF output,
|
||||
project API, static frontend assets, path traversal, the legacy
|
||||
|
||||
Reference in new issue
Block a user