Generate table of contents and figure/table lists

This commit is contained in:
gloamxun committed 2026-10-19 14:01:35 +08:00
1 parent 477e2124c8
commit 4aa1714923
11 files changed
+353 -29

No files matched your search

+6 -5
View File
@@ -25,13 +25,14 @@ and geometry-aware `\textwidth`/`\textheight` named length registers.
tables, block boxes, footnotes, and the default `\parindent` (15pt for
10/12pt, 17pt for 11pt).
## 3. Table of contents and lists
## 3. Table of contents and lists (implemented)
- Record section/figure/table entries while parsing, then generate
`\tableofcontents`, `\listoffigures`, and `\listoftables` blocks with
resolved page numbers after pagination.
- Parser placeholders are expanded after parsing into headings plus entries
from numbered sections and captions; entry runs carry a `TocPage` reference
that is resolved by re-laying out once page numbers are known. Dotted
leaders are not implemented.
## 4. PDF painting and title blocks
## 4. PDF painting and title blocks (remaining)
- Paint rules and frames as native PDF rectangles (`printpdf` operators)
instead of 1x1 image XObjects.