Add 10/11/12pt base font size options

This commit is contained in:
gloamxun committed 2026-10-19 13:52:24 +08:00
1 parent 269433abdb
commit 477e2124c8
8 files changed
+180 -69

No files matched your search

+9 -7
View File
@@ -304,12 +304,14 @@ rule reserves space without painting ink. `\fbox{...}` is an inline framed box:
the content is measured as a single unbreakable unit, wrapped in 3pt padding and
a 0.4pt frame, and painted in both the PDF and the SVG preview.
Known gaps for full document classes: base font-size class options
(`10pt`/`11pt`/`12pt`) are parsed but the engine still uses 11pt;
custom `\maketitle` implementations are ignored (the engine title layout is
used), `\parbox`/`\minipage` are block-level rather than inline, `\vbox` and
`\vtop` map to a full-width block box rather than true nested VBox material, and
the abstract prints as body text without an "Abstract" heading.
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, `\vbox` and `\vtop` map to a full-width block
box rather than true nested VBox material, and the abstract prints as body text
without an "Abstract" heading.
`\footnote{...}` captures its content, emits a superscript marker, reserves
space on the page where the paragraph ends, and paints the notes with a
@@ -480,7 +482,7 @@ advisory breaks, starred `\vspace`/`\hspace`, `center`, `\hrule`, `\fbox`,
| Paragraphs | Knuth-Plass breaking, TeX hyphenation, justification, centering, `\parindent` (17pt default), `\hfill`/`\hfil` | `\raggedright`/`\raggedleft` |
| Notes/floats | footnotes with page-bottom insertion area, title/author `\thanks`, figure/table `[htbp]` placement (top/bottom/page/here approximations) | deferred float queue, `\textfraction` |
| Pages | A4/Letter/... page sizes, margins/geometry, automatic pagination, `\newpage`, `\pagebreak`, plain/fancy page styles, `\thispagestyle`, fancyhdr L/C/R headers and footers | unified planner/renderer |
| Classes/packages | built-in + local classes, option protocol, local package options | base font-size options (10/11/12pt) |
| Classes/packages | built-in + local classes, option protocol, local package options, base font sizes 10/11/12pt | class-specific section formatting |
| Live preview | incremental paragraph/page caches, page-hash diffing, SVG refresh | — |
The compatibility layer also covers spacing macros, text symbols/letters, style