Collect footnotes inside figure and table captions

This commit is contained in:
gloamxun committed 2026-10-19 18:39:16 +08:00
1 parent 6414770de7
commit 0c615c8e82
5 files changed
+68 -9

No files matched your search

+2 -1
View File
@@ -20,7 +20,8 @@ author-year citations and plainnat bibliography formatting with duplicate-year
(`build_positioned_pages` is the only page builder and no separate break
planner remains); conditional Base-14 font embedding and natural-width centered
table layout; `\multicolumn` column spans with alignment and partial
`\cmidrule(r){a-b}`/`\cline{a-b}` rules.
`\cmidrule(r){a-b}`/`\cline{a-b}` rules; footnote capture in figure/table
captions with the insertion area reserved on the caption page.
## 1. Float tuning and table queue
+4 -3
View File
@@ -96,8 +96,9 @@ See `docs/ROADMAP.md` for concrete implementation plans.
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
collected; the insertion area follows the page where the paragraph ends
- Notes: footnotes inside figure/table captions are collected and painted on
the caption's page; footnotes inside floats or arbitrary boxes are not
collected yet. The insertion area follows the page where the paragraph ends
rather than the exact reference line. Heading keep-with-next is approximate,
so a section heading can be left at the bottom of a page with its body on
the next page.
@@ -115,7 +116,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- ASCII-only documents use non-embedded Base-14 Times/Courier (arXiv PDF is
about 0.7 MB); documents with accented/non-WinAnsi text embed Liberation
faces. Tables use natural column widths and centered rules.
- `cargo fmt --check` passes; `cargo test --offline` (50 tests: 46 compiler
- `cargo fmt --check` passes; `cargo test --offline` (51 tests: 47 compiler
integration tests + 4 server tests) covers the three examples, the arXiv
fixture, figure/table floats (top and bottom), newpage, page styles and `\thispagestyle`, SVG/PDF output,
project API, static frontend assets, path traversal, the legacy