From e532bceb8a9b6ef1cd402deefd161573417d7e06 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 13 Jan 2022 08:41:05 -0800 Subject: [PATCH] Add test for #7826 notes-after-punctuation. --- test/command/7826.md | 78 +++++ test/command/american-medical-association.csl | 279 ++++++++++++++++++ 2 files changed, 357 insertions(+) create mode 100644 test/command/7826.md create mode 100644 test/command/american-medical-association.csl diff --git a/test/command/7826.md b/test/command/7826.md new file mode 100644 index 000000000..425a04d69 --- /dev/null +++ b/test/command/7826.md @@ -0,0 +1,78 @@ +``` +% pandoc -t plain --citeproc +--- +bibliography: command/biblio.bib +suppress-bibliography: true +csl: command/american-medical-association.csl +notes-after-punctuation: true +--- + +In numerous recent works [@item1; @item2], statistician +Foo and Bar have criticized XXX. +^D +In numerous recent works,^(1,2) statistician Foo and Bar have criticized +XXX. +``` +``` +% pandoc -t plain --citeproc +--- +bibliography: command/biblio.bib +suppress-bibliography: true +csl: command/american-medical-association.csl +--- + +In numerous recent works [@item1; @item2], statistician +Foo and Bar have criticized XXX. +^D +In numerous recent works^(1,2), statistician Foo and Bar have criticized +XXX. +``` +``` +% pandoc -t plain --citeproc +--- +bibliography: command/biblio.bib +suppress-bibliography: true +csl: command/chicago-fullnote-bibliography.csl +notes-after-punctuation: false +--- + +In numerous recent works [@item1; @item2], statistician +Foo and Bar have criticized XXX. +^D +In numerous recent works[1], statistician Foo and Bar have criticized +XXX. + +[1] John Doe, First Book (Cambridge: Cambridge University Press, 2005); +John Doe, “Article,” Journal of Generic Studies 6 (2006): 33–34. +``` +``` +% pandoc -t plain --citeproc +--- +bibliography: command/biblio.bib +suppress-bibliography: true +csl: command/chicago-fullnote-bibliography.csl +--- + +In numerous recent works [@item1; @item2], statistician +Foo and Bar have criticized XXX. +^D +In numerous recent works,[1] statistician Foo and Bar have criticized +XXX. + +[1] John Doe, First Book (Cambridge: Cambridge University Press, 2005); +John Doe, “Article,” Journal of Generic Studies 6 (2006): 33–34. +``` +``` +% pandoc -t plain --citeproc +--- +bibliography: command/biblio.bib +suppress-bibliography: true +notes-after-punctuation: true +--- + +In numerous recent works [@item1; @item2], statistician +Foo and Bar have criticized XXX. +^D +In numerous recent works (Doe 2005, 2006), statistician Foo and Bar have +criticized XXX. +``` diff --git a/test/command/american-medical-association.csl b/test/command/american-medical-association.csl new file mode 100644 index 000000000..2ab4f4187 --- /dev/null +++ b/test/command/american-medical-association.csl @@ -0,0 +1,279 @@ + +