aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEthan Riley <riley787cmplex@gmail.com>2020-02-14 16:44:40 +0000
committerGitHub <noreply@github.com>2020-02-14 08:44:40 -0800
commitdaf770c1e9b8427611c10904bc4b80110556ea4d (patch)
tree479bfa9e55752e5c752b055bfd4defd1c41b68f0 /test
parent652ed0b82cd7095f418859356d7e5f8ada65eb49 (diff)
downloadpandoc-daf770c1e9b8427611c10904bc4b80110556ea4d.tar.gz
Fixes: group biblatex citations even with prefix and suffix (#6058)
Closes #5849. Previously biblatex citations were only grouped if there was no prefix. This patch allows them to be grouped in subgroups split by prefixes and suffixes, which allows better citation sorting.
Diffstat (limited to 'test')
-rw-r--r--test/command/5849-prefix.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/command/5849-prefix.md b/test/command/5849-prefix.md
new file mode 100644
index 000000000..61af8f03a
--- /dev/null
+++ b/test/command/5849-prefix.md
@@ -0,0 +1,32 @@
+```
+% pandoc -t latex --biblatex
+[e.g. @a1;@a2;@a3; but also @b1;@b2;@b3]
+^D
+\autocites[e.g.~][]{a1,a2,a3}[but also][]{b1,b2,b3}
+```
+```
+% pandoc -t latex --biblatex
+[e.g. @a1; e.g. @a2;@a3; but also @b1;@b2;but also @b3]
+^D
+\autocites[e.g.~][]{a1}[e.g.~][]{a2,a3}[but also][]{b1,b2}[but
+also][]{b3}
+```
+```
+% pandoc -t latex --biblatex
+[e.g. @a1, ch.3 and elsewhere;@a2;@a3; but also @a4;@a5]
+^D
+\autocites[e.g.~][ch.3 and elsewhere]{a1}{a2,a3}[but also][]{a4,a5}
+```
+```
+% pandoc -t latex --biblatex
+[e.g. @a1;@a2, ch.3 and elsewhere;@a3; but also @a4;@a5]
+^D
+\autocites[e.g.~][ch.3 and elsewhere]{a1,a2}{a3}[but also][]{a4,a5}
+```
+```
+% pandoc -t latex --biblatex
+[e.g. @a1, blah;@a2, ch.3 and elsewhere;@a3; but also @b4;@b5]
+^D
+\autocites[e.g.~][blah]{a1}[ch.3 and elsewhere]{a2}{a3}[but
+also][]{b4,b5}
+```