Give standalone labels their heading title
A \label on its own paragraph after a heading resolved \ref and \autoref, but \nameref fell back to the number because the label-to-title table only recorded labels taken from heading text. Section numbering now tracks the latest heading title and records it for label-only paragraphs (and ordinary paragraphs that carry a label), so \nameref returns the title for those labels too. A preview test puts \label on its own line after \section, then checks "Introduction and Section 1" with no warnings.
This commit is contained in:
1 parent
abf5e90578
commit
4ad15f1f0b
4 files changed
+42
-6
No files matched your search
@@ -14,12 +14,12 @@ cargo fmt --all -- --check
|
||||
cargo test --workspace --offline
|
||||
```
|
||||
|
||||
The workspace currently passes **1040 tests**:
|
||||
The workspace currently passes **1041 tests**:
|
||||
|
||||
| Suite | Tests |
|
||||
| --- | --- |
|
||||
| route-D unit (engine) | 437 |
|
||||
| engine binary unit | 411 |
|
||||
| engine binary unit | 412 |
|
||||
| server integration | 63 |
|
||||
| v1 integration | 71 |
|
||||
| pdfLaTeX oracle | 42 |
|
||||
|
||||
Reference in new issue
Block a user