Render custom bibitem labels

The optional label of \bibitem[Label]{key} was parsed and thrown away, so the
list and citations always used the running number. The extractor now carries the
label in the entry (behind a private marker) and the bibliography list prints
[Label]; citation resolution uses the same label for that key, while unlabeled
entries keep their positional number.

A preview test gives the first entry a label and leaves the second plain,
then checks the list markers and the two citation markers with no warnings.
This commit is contained in:
gloamxun committed 2026-10-27 02:35:45 +08:00
1 parent 85d5c87b12
commit 9f642a2bbd
4 files changed
+67 -15

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 **1030 tests**:
The workspace currently passes **1031 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 437 |
| engine binary unit | 401 |
| engine binary unit | 402 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |