Emit author-year labels for project BibTeX
The project .bib inliner now derives author-year labels (with a/b disambiguation for duplicate author-years) and writes them as optional \bibitem labels. The route-D citation pass uses those labels only when they look like author-year labels: \citep gets parentheses, \citet becomes Author (Year), and reference entries lose their numeric brackets. Inline thebibliography entries without such labels remain numeric. The arXiv sample now prints (Kour and Saabne, 2014a; Keshet et al., 2016) and Kour and Saabne (2014b), matching natbib semantics more closely. Test count stays 1073.
This commit is contained in:
1 parent
d2f0fe97c5
commit
c2310d85ac
5 files changed
+96
-13
No files matched your search
+1
-1
@@ -1253,7 +1253,7 @@ fn project_preview_resolves_bibtex() {
|
||||
}
|
||||
let text: String = text.split_whitespace().collect();
|
||||
assert!(text.contains("References"), "{text}");
|
||||
assert!(text.contains("[1]"), "{text}");
|
||||
assert!(text.contains("Doe,2024"), "{text}");
|
||||
assert!(text.contains("Alphaentry"), "{text}");
|
||||
assert!(!text.contains("[?]"), "{text}");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user