Add natbib a/b year suffixes for duplicate author-year entries

This commit is contained in:
gloamxun committed 2026-10-19 18:04:19 +08:00
1 parent 87b6b6e44e
commit 2fca019237
6 files changed
+76 -5

No files matched your search

+8
View File
@@ -1355,6 +1355,10 @@ fn natbib_citations_use_author_year() {
!second.contains(">[1, 3]</text>"),
"numeric citation was not replaced: {second}"
);
assert!(
second.contains("2014a") && second.contains("2014b"),
"duplicate author-year citations should get a/b suffixes: {second}"
);
let third = page_svg(&value, 2);
let george = third.find("Geor").expect("bibliography given name missing");
let kour = third
@@ -1368,4 +1372,8 @@ fn natbib_citations_use_author_year() {
!third.contains(">[1]</text>"),
"author-year bibliography should omit numeric labels: {third}"
);
assert!(
third.contains("2014a") && third.contains("2014b"),
"bibliography years should carry a/b suffixes: {third}"
);
}