aboutsummaryrefslogtreecommitdiff
path: root/test/command/pandoc-citeproc-47.md
blob: 478a54bf3756b079c8ddc54d2b16809758de5d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
```
% pandoc --citeproc -t markdown-citations
---
references:
- author:
  - family: Doe
    given: A.
  id: doe
  issued:
    date-parts:
    - - 2000
  title: Title
  type: book
- author:
  - family: Doe
    given: A.
  - family: Poe
    given: A.
  id: doepoe
  issued:
    date-parts:
    - - 2000
  title: Title
  type: book
- editor:
  - family: Doe
    given: A.
  id: 'doe-ed'
  issued:
    date-parts:
    - - 2000
  title: Title
  type: book
- author:
  - family: Doe
    given: A.
  - family: Loe
    given: A.
  - family: Toe
    given: A.
  id: doeloetoe
  issued:
    date-parts:
    - - 2000
  title: Title
  type: book
---

Foo [@doe]. Bar [@doepoe]. Foo [@doe-ed]. Bar [@doeloetoe].

Expected output:

> Doe, A. 2000a. Title.
>
> ---------, ed. 2000b. Title.
>
> Doe, A., A. Loe, and A. Toe. 2000. Title.
>
> Doe, A., and A. Poe. 2000. Title.

(See CMoS, 16e, 15.16, "Single author versus several authors---reference
list order": "Successive entries by two or more authors in which only
the first author's name is the same are alphabetized according to the
coauthors' last names (regardless of how many coauthors there are)." and
15.18, "The 3-em dash with edited, translated, or compiled works": "The
chronological order is maintained, regardless of the added abbreviation.
\[ed., trans., comp., or whatever\]"

References {#references .unnumbered}
==========
^D
Foo (Doe 2000a). Bar (Doe and Poe 2000). Foo (Doe 2000b). Bar (Doe, Loe,
and Toe 2000).

Expected output:

> Doe, A. 2000a. Title.
>
> ---------, ed. 2000b. Title.
>
> Doe, A., A. Loe, and A. Toe. 2000. Title.
>
> Doe, A., and A. Poe. 2000. Title.

(See CMoS, 16e, 15.16, "Single author versus several authors---reference
list order": "Successive entries by two or more authors in which only
the first author's name is the same are alphabetized according to the
coauthors' last names (regardless of how many coauthors there are)." and
15.18, "The 3-em dash with edited, translated, or compiled works": "The
chronological order is maintained, regardless of the added abbreviation.
\[ed., trans., comp., or whatever\]"

References {#references .unnumbered}
==========

::: {#refs .references .csl-bib-body .hanging-indent}
::: {#ref-doe .csl-entry}
Doe, A. 2000a. *Title*.
:::

::: {#ref-doe-ed .csl-entry}
---------, ed. 2000b. *Title*.
:::

::: {#ref-doeloetoe .csl-entry}
Doe, A., A. Loe, and A. Toe. 2000. *Title*.
:::

::: {#ref-doepoe .csl-entry}
Doe, A., and A. Poe. 2000. *Title*.
:::
:::
```