Parenthesise eqref for non-equation labels

\eqref on a section, figure or table label rendered the bare number because the
section-reference pass shared the \ref replacement. It now wraps the value in
parentheses, matching amsmath's equation form; equation labels already took the
parenthesised path in the equation pass.

A preview test labels a section and checks "See (1)." with no warnings.
This commit is contained in:
gloamxun committed 2026-10-27 04:11:45 +08:00
1 parent 263fa36fb5
commit a50023691b
4 files changed
+35 -7

No files matched your search

+2 -2
View File
@@ -16,12 +16,12 @@ cargo test --workspace --offline
or run `./scripts/verify-route-d.sh`, which executes both.
The workspace currently passes **1061 tests**:
The workspace currently passes **1062 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 442 |
| engine binary unit | 428 |
| engine binary unit | 429 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |