Track textwidth and textheight from page geometry

This commit is contained in:
gloamxun committed 2026-10-19 13:46:25 +08:00
1 parent ed1da06685
commit 269433abdb
7 files changed
+153 -28

No files matched your search

+4 -6
View File
@@ -6,8 +6,9 @@ are still missing. Each item names the files/functions to touch.
Completed: paragraph indentation (`\parindent`) and `\hfill`/`\hfil`; sans
family and true scaled small caps; inline box geometry (`\fbox`, `\makebox`,
`\raisebox`), `\minipage`, `\vbox`/`\vtop` block approximations;
footnotes/`\thanks`; figure/table `[htbp]` placement approximations; and page
styles (plain/fancy, `\thispagestyle`, fancyhdr headers/footers, `\thepage`).
footnotes/`\thanks`; figure/table `[htbp]` placement approximations; page
styles (plain/fancy, `\thispagestyle`, fancyhdr headers/footers, `\thepage`);
and geometry-aware `\textwidth`/`\textheight` named length registers.
## 1. Unified pagination
@@ -16,11 +17,8 @@ styles (plain/fancy, `\thispagestyle`, fancyhdr headers/footers, `\thepage`).
ordered list of placed items, then use it for both page-break decisions and
final painting. This is the prerequisite for a true deferred float queue.
## 2. Lengths and base font size
## 2. Base font size
- Emit geometry changes into named length registers so `\textwidth`,
`\textheight`, `\linewidth`, and `\columnwidth` track `\geometry` and
paper-size options instead of fixed A4 defaults.
- Thread the `10pt`/`11pt`/`12pt` class option through the parser, line metrics,
headings, and the PDF so the base size changes consistently.