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

+8 -6
View File
@@ -25,8 +25,11 @@ the source changes; the SVG preview is refreshed per page.
`\addtolength`/`\noindent` aware), and `\hfill`/`\hfil` infinite glue.
- Pages: A4/A5/B5/Letter/Legal/Executive, landscape, geometry margins and
text block, geometry-aware `\textwidth`/`\textheight`/`\linewidth`/
`\columnwidth` (as live named length registers), automatic pagination, `\newpage`/`\pagebreak`; figures/tables
honor `[htbp]` hints with top/bottom/page/here approximations. Page styles:
`\columnwidth` (as live named length registers), automatic pagination, `\newpage`/`\pagebreak`.
Figures honor `[htbp]` hints: `[t]` is queued and placed at the top of the
next page while following text fills the current page, `[b]` sits at the page
bottom, `[p]` takes a float page, and `[h]` stays in the text flow. Tables
still use immediate page breaks. Page styles:
default `plain` page numbers, `\pagestyle{empty|plain|fancy}`,
`\thispagestyle`, fancyhdr `\fancyhead`/`\fancyfoot` (L/C/R) and
`\lhead`/`\chead`/`\rhead`/`\lfoot`/`\cfoot`/`\rfoot`, with `\thepage`
@@ -59,10 +62,9 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- Boxes: `\parbox`/`\minipage` are block-level; `\vbox`/`\vtop` map to a
full-width block rather than true nested VBox material.
- Pages: float placement is immediate rather than a deferred float queue
(no `\textfraction` tuning, no reordering around later text). Pagination is
performed by the positioned renderer; the separate page-break planner was
removed.
- Pages: the figure queue only looks one page ahead; tables are not queued and
there is no `\textfraction`/`\topfraction` tuning. Pagination is performed by
the positioned renderer; the separate page-break planner was removed.
- Notes: footnotes inside captions, floats, or arbitrary boxes are not
collected; the insertion area currently follows the page where the paragraph
ends rather than the exact reference line.