Give autoref the right kind prefix
\autoref always wrote "Section <number>", even for figure, table or theorem labels. The reference passes now record a kind alongside each label: sections use "Section", floats use their caption prefix (Figure/Table), and theorems use their display name; resolve_section_refs builds \autoref from that kind, falling back to "Section" for unknown labels. A preview test labels a figure, refers to it with \autoref, and checks "Figure 1" with no warnings.
This commit is contained in:
1 parent
48e86fb214
commit
5dda1a948a
4 files changed
+76
-12
No files matched your search
@@ -14,12 +14,12 @@ cargo fmt --all -- --check
|
||||
cargo test --workspace --offline
|
||||
```
|
||||
|
||||
The workspace currently passes **1035 tests**:
|
||||
The workspace currently passes **1036 tests**:
|
||||
|
||||
| Suite | Tests |
|
||||
| --- | --- |
|
||||
| route-D unit (engine) | 437 |
|
||||
| engine binary unit | 406 |
|
||||
| engine binary unit | 407 |
|
||||
| server integration | 63 |
|
||||
| v1 integration | 71 |
|
||||
| pdfLaTeX oracle | 42 |
|
||||
|
||||
Reference in new issue
Block a user