Allow documents to replace the title block

This commit is contained in:
gloamxun committed 2026-10-19 14:32:35 +08:00
1 parent 23cf1f13de
commit 5e9552d785
8 files changed
+89 -18

No files matched your search

+7 -5
View File
@@ -315,10 +315,12 @@ a 0.4pt frame, and painted in both the PDF and the SVG preview.
Base font-size class options `10pt`, `11pt`, and `12pt` now set the body
size and propagate through headings, title material, lists, tables, block
boxes, footnotes, and the default paragraph indent.
Known gaps for full document classes: custom `\maketitle` implementations
are ignored (the engine title layout is used), `\parbox`/`\minipage` are
block-level rather than inline, and `\vbox` and `\vtop` map to a full-width
block box rather than true nested VBox material.
A document-level `\renewcommand{\maketitle}` replaces the engine title block;
class and package files that replace `\maketitle` are ignored so template
title code cannot break the native layout. Known gaps for full document
classes: `\parbox`/`\minipage` are block-level rather than inline, and
`\vbox` and `\vtop` map to a full-width block box rather than true nested
VBox material.
`\footnote{...}` captures its content, emits a superscript marker, reserves
space on the page where the paragraph ends, and paints the notes with a
@@ -490,7 +492,7 @@ advisory breaks, starred `\vspace`/`\hspace`, `center`, `\hrule`, `\fbox`,
| Notes/floats | footnotes with page-bottom insertion area, title/author `\thanks`, figure `[htbp]` placement (deferred top floats, bottom/page/here), table page breaks | table float queue, `\textfraction` |
| Contents | `\tableofcontents`, `\listoffigures`, `\listoftables` generated from numbered headings and captions, dotted leaders, page numbers resolved after pagination | per-chapter book/report contents |
| Pages | A4/Letter/... page sizes, margins/geometry, automatic pagination, `\newpage`, `\pagebreak`, plain/fancy page styles, `\thispagestyle`, fancyhdr L/C/R headers and footers | — |
| Classes/packages | built-in + local classes, option protocol, local package options, base font sizes 10/11/12pt, chapter headings and numbering, chapter page breaks | class-specific formatting beyond chapter breaks |
| Classes/packages | built-in + local classes, option protocol, local package options, base font sizes 10/11/12pt, chapter headings and numbering, chapter page breaks, document-level custom `\maketitle` | class-specific formatting beyond chapter breaks |
| Live preview | incremental paragraph cache, page-hash diffing, SVG refresh | — |
The compatibility layer also covers spacing macros, text symbols/letters, style