git.iko.soy/typeable/pandoc
on master help sign in
Improved citation tests.
commit83bb1de3f592b21ba2af01c321a4ec74d1264530 authorJohn MacFarlane <fiddlosopher@gmail.com> dateFri 13 Jan 2012, 00:02 (15 years ago) parenta3988d8
4 files changed+27−27
tests/markdown-citations.chicago-author-date.txt+4−4 tests/markdown-citations.ieee.txt+9−9 tests/markdown-citations.mhra.txt+12−12 tests/markdown-citations.txt+2−2
tests/markdown-citations.chicago-author-date.txt+4−4
@@ -15,7 +15,7 @@ Pandoc with citeproc-hs
1515
1616- In a note.[^1]
1717
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).
1919
2020- Another one (see Doe 2005, 34–35).
2121
@@ -34,12 +34,12 @@ References
3434
3535Doe, John. 2005. *First Book*. Cambridge: Cambridge University Press.
3636
37−---. 2006. Article. *Journal of Generic Studies* 6: 33–34.
37+———. 2006. “Article.” *Journal of Generic Studies* 6: 33–34.
3838
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.
4040
4141[^1]: A citation without locators (Doe and Roe 2007).
4242
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).
4444
4545[^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
55
66- @nonexistent
77
8−- Reference [1] says blah.
8+- Reference 1 says blah.
99
10−- Reference [1] says blah.
10+- Reference 1 says blah.
1111
12−- Reference [1] says blah.
12+- Reference 1 says blah.
1313
14−- Reference [1] says blah.
14+- Reference 1 says blah.
1515
1616- In a note.[^1]
1717
18−- A citation group [1],[3].
18+- A citation group [1], [3].
1919
2020- Another one [1].
2121
@@ -32,14 +32,14 @@ Pandoc with citeproc-hs
3232References
3333==========
3434
35−[1] J. Doe, *First Book*, Cambridge: Cambridge University Press, 2005.
35+[1] J. Doe, *First Book*. Cambridge: Cambridge University Press, 2005.
3636
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.
3838
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.
4040
4141[^1]: A citation without locators [3].
4242
43−[^2]: Some citations [1]–[3].
43+[^2]: Some citations [1–3].
4444
4545[^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
3232References
3333==========
3434
35−Doe, John, ‘Article’, *Journal of Generic Studies*, 6 (2006), 33-34.
35+Doe, John, ‘Article’, *Journal of Generic Studies*, 6 (2006), 33–34.
3636
3737---, *First Book* (Cambridge: Cambridge University Press, 2005).
3838
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).
4040
4141[^1]: *First Book* (Cambridge: Cambridge University Press, 2005).
4242
43−[^2]: First Book, p. 30.
43+[^2]: *First Book*, p. 30.
4444
45−[^3]: First Book, p. 30, with suffix.
45+[^3]: *First Book*, p. 30, with suffix.
4646
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).
4848
4949[^5]: A citation without locators Doe and Roe.
5050
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.
5252
53−[^7]: See Doe, First Book, pp. 34-35.
53+[^7]: See Doe, *First Book*, pp. 34–35.
5454
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.
5656
57−[^9]: Doe, First Book, pp. 33, 35-37, and nowhere else.
57+[^9]: Doe, *First Book*, pp. 33, 35–37, and nowhere else.
5858
59−[^10]: Doe, First Book and nowhere else.
59+[^10]: Doe, *First Book* and nowhere else.
6060
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).
6262
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
1515
1616- In a note.[^1]
1717
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].
1919
2020- Another one [see @item1 p. 34-35].
2121
@@ -34,6 +34,6 @@ References
3434
3535[^1]: A citation without locators [@пункт3].
3636
37−[^2]: Some citations [see @item2 chap. 3; @пункт3; @item1].
37+[^2]: Some citations [see @item1 chap. 3; @пункт3; @item2].
3838
3939[^3]: Like a citation without author: [-@item1], and now Doe with a locator [-@item2 p. 44].