Resolve nameref for figure captions

\nameref fell back to the number for float labels because only headings fed the
title table. The float numbering pass now records each label with its raw
caption text, and that table is merged into the same title map nameref reads, so
\nameref{fig:a} returns "A plot" while \autoref keeps "Figure 1".

A preview test labels a figure with \caption{A plot} and checks
"See A plot and Figure 1." with no warnings.
This commit is contained in:
gloamxun committed 2026-10-27 03:26:04 +08:00
1 parent 8a5411af1d
commit 4d713df3dd
4 files changed
+39 -7

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 **1046 tests**:
The workspace currently passes **1047 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 439 |
| engine binary unit | 416 |
| engine binary unit | 417 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |