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
@@ -51,7 +51,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
|
||||
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
|
||||
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
|
||||
PDF opt-in with `?engine=route-d`; flat `/preview` and project previews now
|
||||
prefer route-D with a v1 fallback). 1035 workspace tests are green and no oracle
|
||||
prefer route-D with a v1 fallback). 1036 workspace tests are green and no oracle
|
||||
fixture is ignored. Preview JSON also carries a `warnings` array naming
|
||||
environments route-D cannot lay out and control words that survived layout, so
|
||||
unsupported source is reported instead of being silently typeset.
|
||||
|
||||
Reference in new issue
Block a user