Support footnotemark and footnotetext
\footnotemark and \footnotetext were unsupported, so deferring a note body was impossible. The footnote numbering pass now selects among \footnote, \footnotemark and \footnotetext (longest name first so the prefix cannot win): \footnotemark advances the counter, emits the numbered reference and records an empty note for the number; \footnotetext fills that pending note with its body and leaves no text in the line; the remaining text is appended once. A test pairs a mark and its text in one paragraph, checks the page carries "(1)" and "Deferred note." with no warnings, and that neither command leaks.
This commit is contained in:
1 parent
53a299bd58
commit
6c6963cac7
4 files changed
+74
-17
No files matched your search
@@ -14,12 +14,12 @@ cargo fmt --all -- --check
|
||||
cargo test --workspace --offline
|
||||
```
|
||||
|
||||
The workspace currently passes **1019 tests**:
|
||||
The workspace currently passes **1020 tests**:
|
||||
|
||||
| Suite | Tests |
|
||||
| --- | --- |
|
||||
| route-D unit (engine) | 437 |
|
||||
| engine binary unit | 390 |
|
||||
| engine binary unit | 391 |
|
||||
| server integration | 63 |
|
||||
| v1 integration | 71 |
|
||||
| pdfLaTeX oracle | 42 |
|
||||
|
||||
Reference in new issue
Block a user