Place bottom tables at the page bottom

This commit is contained in:
gloamxun committed 2026-10-19 14:43:33 +08:00
1 parent 6658a155fc
commit e7bcdf6c53
5 files changed
+117 -12

No files matched your search

+7 -6
View File
@@ -29,8 +29,9 @@ the source changes; the SVG preview is refreshed per page.
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
queue `[t]` captions and rows at the top of the next page and take a float
page for `[p]`; table `[b]`/`[h]` stay in the text flow. Page styles:
queue `[t]` captions and rows at the top of the next page, sit at the page
bottom for `[b]`, take a float page for `[p]`, and stay in the text flow for
`[h]`. 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`
@@ -68,8 +69,8 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- Boxes: `\parbox`/`\minipage` are block-level; `\vbox`/`\vtop` capture
and splice vertical material but do not expose an independent natural width
or box baseline.
- Pages: the figure/table queues only look one page ahead; table `[b]` and
float-page queues are not implemented and there is no
- Pages: the figure/table queues only look one page ahead; table float-page
queues are not implemented 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
@@ -82,9 +83,9 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- `examples/hello.tex`, `examples/boxes.tex`, `examples/compat.tex` compile to
one A4 page each; the arXiv template project compiles to 3 Letter pages.
- `cargo fmt --check` passes; `cargo test --offline` (40 tests: 36 compiler
- `cargo fmt --check` passes; `cargo test --offline` (41 tests: 37 compiler
integration tests + 4 server tests) covers the three examples, the arXiv
fixture, figure/table floats, newpage, page styles and `\thispagestyle`, SVG/PDF output,
fixture, figure/table floats (top and bottom), newpage, page styles and `\thispagestyle`, SVG/PDF output,
project API, static frontend assets, path traversal, the legacy
`/texrra` endpoint, and page-hash cache stability.
- Warm preview: hello ~0.6ms, arXiv ~13ms (release server, page layout cached).