git.iko.soy/typeable/pandoc
on master help sign in
Depend on latest citeproc.

This fixes the citation number issue with ieee.csl and other styles that do not explicitly sort bibliographies. (Pandoc was numbering them by their order in the bibliography file, rather than the order cited, as required by the CSL spec.) Closes #6741.

commit229e763646f2d743c03972a4118f542dbe0580cb authorJohn MacFarlane <jgm@berkeley.edu> dateTue 13 Oct 2020, 14:52 (6 years ago) parent6fce81f
3 files changed+147−2
cabal.project+1−1 stack.yaml+1−1 test/command/6741.md+145
cabal.project+1−1
@@ -7,4 +7,4 @@ package pandoc
77source-repository-package
88 type: git
99 location: https://github.com/jgm/citeproc
10− tag: a15c87ea0280880d138de774ed1a5deeb655e076
10+ tag: ea3a2b3827df61595ec16408c904ecda96bbdc5f
stack.yaml+1−1
@@ -23,7 +23,7 @@ extra-deps:
2323- commonmark-extensions-0.2.0.1
2424- commonmark-pandoc-0.2.0.1
2525- git: https://github.com/jgm/citeproc
26− commit: a15c87ea0280880d138de774ed1a5deeb655e076
26+ commit: ea3a2b3827df61595ec16408c904ecda96bbdc5f
2727
2828ghc-options:
2929 "$locals": -fhide-source-paths -Wno-missing-home-modules
test/command/6741.mdnew file+145
@@ -0,0 +1,145 @@
1+```
2+% pandoc --citeproc --csl command/ieee.csl -t plain
3+---
4+title: 'A Simple Citations Test'
5+author: 'Joanna Doe'
6+references:
7+- author:
8+ - family: Mathôt
9+ given: S
10+ container-title: Annual review of vision science
11+ DOI: 10.1146/annurev-vision-030320-062352
12+ id: mathot2020
13+ issued: 2020
14+ title: "Tuning the senses: How the pupil shapes vision at the earliest
15+ stage."
16+ title-short: Tuning the senses
17+ type: article-journal
18+- author:
19+ - family: Zokaei
20+ given: Nahid
21+ - family: Board
22+ given: Alexander G.
23+ - family: Manohar
24+ given: Sanjay G.
25+ - family: Nobre
26+ given: Anna C.
27+ container-title: Proceedings of the National Academy of Sciences of
28+ the United States of America
29+ DOI: 10.1073/pnas.1909959116
30+ id: zokaei2019
31+ issued: 2019
32+ page: 201909959
33+ title: Modulation of the pupillary response by the content of visual
34+ working memory
35+ type: article-journal
36+- author:
37+ - family: Suzuki
38+ given: Y
39+ - family: Minami
40+ given: T
41+ - family: Laeng
42+ given: B
43+ - family: Nakauchi
44+ given: S
45+ container-title: Acta Psychologica
46+ DOI: 10.1016/j.actpsy.2019.102882
47+ id: suzuki2019
48+ issued: 2019
49+ page: 102882
50+ title: "Colorful glares: Effects of colors on brightness illusions
51+ measured with pupillometry."
52+ title-short: Colorful glares
53+ type: article-journal
54+ volume: 198
55+- author:
56+ - family: Brainard
57+ given: David H.
58+ - family: Hurlbert
59+ given: Anya
60+ container-title: Current Biology
61+ DOI: 10.1016/j.cub.2015.05.020
62+ id: brainard2015a
63+ issue: 13
64+ issued: 2015
65+ page: R551-R554
66+ title: "Colour vision: Understanding \\#TheDress"
67+ title-short: Colour vision
68+ type: article-journal
69+ volume: 25
70+- author:
71+ - family: Cavanagh
72+ given: Patrick
73+ container-title: Limits of vision
74+ editor:
75+ - family: Crody-Dillon
76+ given: John R.
77+ id: cavanagh1991
78+ issued: 1991
79+ page: 234-250
80+ publisher: CRC Press
81+ title: Vision at equiluminance
82+ type: chapter
83+- author:
84+ - family: Brainard
85+ given: David H.
86+ container-title: Annual Review of Vision Science
87+ DOI: 10.1146/annurev-vision-082114-035341
88+ id: brainard2015
89+ issued: 2015
90+ page: 519-546
91+ title: Color and the cone mosaic
92+ type: article-journal
93+ volume: 1
94+...
95+
96+# First Heading #
97+Here is some **text**. And a reference [@brainard2015;@brainard2015a].
98+
99+# Second Heading #
100+Here is some *text*[@cavanagh1991]. And a reference [@cavanagh1991;@brainard2015].
101+
102+# Third Heading #
103+Here is some [text]{.underline}. And a reference [@mathot2020;@zokaei2019;@suzuki2019].
104+
105+::: {#refs}
106+## Bibliography ##
107+:::
108+^D
109+First Heading
110+
111+Here is some text. And a reference [1], [2].
112+
113+Second Heading
114+
115+Here is some text[3]. And a reference [1], [3].
116+
117+Third Heading
118+
119+Here is some text. And a reference [4]–[6].
120+
121+Bibliography
122+
123+[1] D. H. Brainard, “Color and the cone mosaic,” Annual Review of Vision
124+Science, vol. 1, pp. 519–546, 2015.
125+
126+[2] D. H. Brainard and A. Hurlbert, “Colour vision: Understanding
127+#TheDress,” Current Biology, vol. 25, no. 13, pp. R551–R554, 2015.
128+
129+[3] P. Cavanagh, “Vision at equiluminance,” in Limits of vision, J. R.
130+Crody-Dillon, Ed. CRC Press, 1991, pp. 234–250.
131+
132+[4] S. Mathôt, “Tuning the senses: How the pupil shapes vision at the
133+earliest stage.” Annual review of vision science, 2020.
134+
135+[5] N. Zokaei, A. G. Board, S. G. Manohar, and A. C. Nobre, “Modulation
136+of the pupillary response by the content of visual working memory,”
137+Proceedings of the National Academy of Sciences of the United States of
138+America, p. 201909959, 2019.
139+
140+[6] Y. Suzuki, T. Minami, B. Laeng, and S. Nakauchi, “Colorful glares:
141+Effects of colors on brightness illusions measured with pupillometry.”
142+Acta Psychologica, vol. 198, p. 102882, 2019.
143+
144+```
145+