Polish preprint title details and plainnat bibliography formatting

This commit is contained in:
gloamxun committed 2026-10-19 15:53:47 +08:00
1 parent 7f1f202de1
commit d211889e93
8 files changed
+120 -11

No files matched your search

+11 -3
View File
@@ -999,7 +999,7 @@ Body.
let value: serde_json::Value = serde_json::from_str(&preview).expect("preview JSON");
let svg = value["pages"][0]["svg"].as_str().expect("svg");
assert!(
svg.contains(">Abstract</text>"),
svg.contains(">BSTRACT</text>"),
"missing abstract heading: {svg}"
);
assert!(
@@ -1218,8 +1218,16 @@ fn natbib_citations_use_author_year() {
"numeric citation was not replaced: {second}"
);
let third = page_svg(&value, 2);
let george = third.find("Geor").expect("bibliography given name missing");
let kour = third
.find(">Kour</text>")
.expect("bibliography family name missing");
assert!(
third.contains(">Kour</text>"),
"bibliography entry missing: {third}"
george < kour,
"bibliography should render given name before family name: {third}"
);
assert!(
!third.contains(">[1]</text>"),
"author-year bibliography should omit numeric labels: {third}"
);
}