Queue top figures and flow following text around them

This commit is contained in:
gloamxun committed 2026-10-19 14:28:49 +08:00
1 parent 5a54386dee
commit 23cf1f13de
6 files changed
+131 -24

No files matched your search

+7 -5
View File
@@ -11,15 +11,17 @@ styles (plain/fancy, `\thispagestyle`, fancyhdr headers/footers, `\thepage`);
geometry-aware `\textwidth`/`\textheight` named length registers; table of
contents and figure/table lists with dotted leaders; native PDF rectangles; unified pagination;
`\centering`/`\raggedright`/`\raggedleft` declarations and environments;
chapter headings with chapter-prefixed section numbering and page breaks
chapter headings with chapter-prefixed section numbering and page breaks;
deferred top-float queue for figures
(`build_positioned_pages` is the only page builder and no separate break
planner remains).
## 1. Deferred float queue
## 1. Float tuning and table queue
- Figures/tables currently place immediately from their source position. Add a
per-page float queue with `\textfraction`/`\topfraction` tuning so a later
float can move ahead of text while preserving source order numbers.
- Figures with `[t]` are queued and placed at the top of the next page while
following text fills the current page. Remaining work: queue table floats,
tune `\textfraction`/`\topfraction`, and support more than a one-page
lookahead.
## 2. True vertical boxes (remaining)