git.iko.soy/typeable/pandoc
on master help sign in
Improved citation tests.
83bb1deJohn MacFarlane
tests/markdown-citations.chicago-author-date.txt+4−4
@@ -15,7 +15,7 @@ Pandoc with citeproc-hs
15
15
16- In a note.[^1]
16- In a note.[^1]
17
17
18−- A citation group (see Doe 2005, 34–35; also Doe and Roe 2007, chap. 3).
18+- A citation group (see Doe 2005, chap. 3; also Doe and Roe 2007, 34–35).
19
19
20- Another one (see Doe 2005, 34–35).
20- Another one (see Doe 2005, 34–35).
21
21
@@ -34,12 +34,12 @@ References
34
34
35Doe, John. 2005. *First Book*. Cambridge: Cambridge University Press.
35Doe, John. 2005. *First Book*. Cambridge: Cambridge University Press.
36
36
37−---. 2006. Article. *Journal of Generic Studies* 6: 33–34.
37+———. 2006. “Article.” *Journal of Generic Studies* 6: 33–34.
38
38
39−Doe, John, and Jenny Roe. 2007. Why Water Is Wet. In *Third Book*, ed. Sam Smith. Oxford: Oxford University Press.
39+Doe, John, and Jenny Roe. 2007. “Why Water Is Wet.” In *Third Book*, ed. Sam Smith. Oxford: Oxford University Press.
40
40
41[^1]: A citation without locators (Doe and Roe 2007).
41[^1]: A citation without locators (Doe and Roe 2007).
42
42
43−[^2]: Some citations (see Doe 2006, chap. 3; Doe and Roe 2007; Doe 2005).
43+[^2]: Some citations (see Doe 2005, chap. 3; Doe and Roe 2007; Doe 2006).
44
44
45[^3]: Like a citation without author: (2005), and now Doe with a locator (2006, 44).
45[^3]: Like a citation without author: (2005), and now Doe with a locator (2006, 44).
tests/markdown-citations.ieee.txt+9−9
@@ -5,17 +5,17 @@ Pandoc with citeproc-hs
5
5
6- @nonexistent
6- @nonexistent
7
7
8−- Reference [1] says blah.
8+- Reference 1 says blah.
9
9
10−- Reference [1] says blah.
10+- Reference 1 says blah.
11
11
12−- Reference [1] says blah.
12+- Reference 1 says blah.
13
13
14−- Reference [1] says blah.
14+- Reference 1 says blah.
15
15
16- In a note.[^1]
16- In a note.[^1]
17
17
18−- A citation group [1],[3].
18+- A citation group [1], [3].
19
19
20- Another one [1].
20- Another one [1].
21
21
@@ -32,14 +32,14 @@ Pandoc with citeproc-hs
32References
32References
33==========
33==========
34
34
35−[1] J. Doe, *First Book*, Cambridge: Cambridge University Press, 2005.
35+[1] J. Doe, *First Book*. Cambridge: Cambridge University Press, 2005.
36
36
37−[2] J. Doe, “Article,” *Journal of Generic Studies*, vol. 6, 2006, pp. 33-34.
37+[2] J. Doe, “Article,” *Journal of Generic Studies*, vol. 6, pp. 33-34, 2006.
38
38
39−[3] J. Doe and J. Roe, “Why Water Is Wet,” *Third Book*, Smith, S., Ed., Oxford: Oxford University Press, 2007.
39+[3] J. Doe and J. Roe, “Why Water Is Wet,” in *Third Book*, S. Smith, Ed. Oxford: Oxford University Press, 2007.
40
40
41[^1]: A citation without locators [3].
41[^1]: A citation without locators [3].
42
42
43−[^2]: Some citations [1]–[3].
43+[^2]: Some citations [1–3].
44
44
45[^3]: Like a citation without author: [1], and now Doe with a locator [2].
45[^3]: Like a citation without author: [1], and now Doe with a locator [2].
tests/markdown-citations.mhra.txt+12−12
@@ -32,32 +32,32 @@ Pandoc with citeproc-hs
32References
32References
33==========
33==========
34
34
35−Doe, John, ‘Article’, *Journal of Generic Studies*, 6 (2006), 33-34.
35+Doe, John, ‘Article’, *Journal of Generic Studies*, 6 (2006), 33–34.
36
36
37---, *First Book* (Cambridge: Cambridge University Press, 2005).
37---, *First Book* (Cambridge: Cambridge University Press, 2005).
38
38
39−Doe, John, and Jenny Roe, ‘Why Water Is Wet’, in *Third Book*, ed by Sam Smith (Oxford: Oxford University Press, 2007).
39+Doe, John, and Jenny Roe, ‘Why Water Is Wet’, in *Third Book*, ed. by Sam Smith (Oxford: Oxford University Press, 2007).
40
40
41[^1]: *First Book* (Cambridge: Cambridge University Press, 2005).
41[^1]: *First Book* (Cambridge: Cambridge University Press, 2005).
42
42
43−[^2]: First Book, p. 30.
43+[^2]: *First Book*, p. 30.
44
44
45−[^3]: First Book, p. 30, with suffix.
45+[^3]: *First Book*, p. 30, with suffix.
46
46
47−[^4]: First Book; ‘Article’, *Journal of Generic Studies*, 6 (2006), 33-34 (p. 30); see also John Doe and Jenny Roe, ‘Why Water Is Wet’, in *Third Book*, ed by Sam Smith (Oxford: Oxford University Press, 2007).
47+[^4]: *First Book*; ‘Article’, *Journal of Generic Studies*, 6 (2006), 33–34 (p. 30); see also John Doe and Jenny Roe, ‘Why Water Is Wet’, in *Third Book*, ed. by Sam Smith (Oxford: Oxford University Press, 2007).
48
48
49[^5]: A citation without locators Doe and Roe.
49[^5]: A citation without locators Doe and Roe.
50
50
51−[^6]: See Doe, First Book, pp. 34-35; also Doe and Roe, chap. 3.
51+[^6]: See Doe, *First Book*, chap. 3; also Doe and Roe, pp. 34–35.
52
52
53−[^7]: See Doe, First Book, pp. 34-35.
53+[^7]: See Doe, *First Book*, pp. 34–35.
54
54
55−[^8]: Some citations see Doe, Article, 33-34 (chap. 3); Doe and Roe; Doe, First Book.
55+[^8]: Some citations see Doe, *First Book*, chap. 3; Doe and Roe; Doe, ‘Article’, 33–34.
56
56
57−[^9]: Doe, First Book, pp. 33, 35-37, and nowhere else.
57+[^9]: Doe, *First Book*, pp. 33, 35–37, and nowhere else.
58
58
59−[^10]: Doe, First Book and nowhere else.
59+[^10]: Doe, *First Book* and nowhere else.
60
60
61−[^11]: Like a citation without author: First Book, and now Doe with a locator Article, 33-34 (p. 44).
61+[^11]: Like a citation without author: *First Book*, and now Doe with a locator ‘Article’, 33–34 (p. 44).
62
62
63−[^12]: *See* Doe, First Book, p. 32.
63+[^12]: *See* Doe, *First Book*, p. 32.
tests/markdown-citations.txt+2−2
@@ -15,7 +15,7 @@ Pandoc with citeproc-hs
15
15
16- In a note.[^1]
16- In a note.[^1]
17
17
18−- A citation group [see @item1 p. 34-35; also @пункт3 chap. 3].
18+- A citation group [see @item1 chap. 3; also @пункт3 p. 34-35].
19
19
20- Another one [see @item1 p. 34-35].
20- Another one [see @item1 p. 34-35].
21
21
@@ -34,6 +34,6 @@ References
34
34
35[^1]: A citation without locators [@пункт3].
35[^1]: A citation without locators [@пункт3].
36
36
37−[^2]: Some citations [see @item2 chap. 3; @пункт3; @item1].
37+[^2]: Some citations [see @item1 chap. 3; @пункт3; @item2].
38
38
39[^3]: Like a citation without author: [-@item1], and now Doe with a locator [-@item2 p. 44].
39[^3]: Like a citation without author: [-@item1], and now Doe with a locator [-@item2 p. 44].