1.8 KiB
1.8 KiB
Roadmap: remaining structural work
This file lists the concrete implementation plans for the foundational items that 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; page
styles (plain/fancy, \thispagestyle, fancyhdr headers/footers, \thepage);
and geometry-aware \textwidth/\textheight named length registers.
1. Unified pagination
- Extract the current duplicated planner (
build_page_break_plan) and renderer (build_positioned_pages) vertical logic into one page builder returning an 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. Base font size (implemented)
DocumentModel.base_font_sizeis set by the class option (default 11) and threaded through both the page planner and the positioned renderer: body lines, headings (article_heading_font_size), title material, lists, tables, block boxes, footnotes, and the default\parindent(15pt for 10/12pt, 17pt for 11pt).
3. Table of contents and lists
- Record section/figure/table entries while parsing, then generate
\tableofcontents,\listoffigures, and\listoftablesblocks with resolved page numbers after pagination.
4. PDF painting and title blocks
- Paint rules and frames as native PDF rectangles (
printpdfoperators) instead of 1x1 image XObjects. - Let a document-level
\renewcommand{\maketitle}contribute a real title block once the engine's title model can run box material.