Consume caption and numbering declarations

\captionsetup, \numberwithin and \DeclareCaption were unsupported and could
leak into the body. The page-geometry pass now consumes those declaration lines
(the caption styling and equation-number scoping are not modelled), in the
preamble and in the body alike.

A preview test declares \captionsetup (plain and with [figure]) and
\numberwithin before and inside the document, then checks "Text." renders with
no warnings and no leaked declarations.
This commit is contained in:
gloamxun committed 2026-10-27 02:08:59 +08:00
1 parent ebb178bff5
commit 6139621653
4 files changed
+31 -6

No files matched your search

+2 -2
View File
@@ -14,12 +14,12 @@ cargo fmt --all -- --check
cargo test --workspace --offline
```
The workspace currently passes **1022 tests**:
The workspace currently passes **1023 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 437 |
| engine binary unit | 393 |
| engine binary unit | 394 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |