git.iko.soy/typeable/pandoc
on master help sign in
Fixed biblatex/natbib citation writer tests.
9210b7eJohn MacFarlane
tests/biblatex-citations.latex+2−18
@@ -17,48 +17,32 @@
17\begin{itemize}
17\begin{itemize}
18\item
18\item
19 {[}@nonexistent{]}
19 {[}@nonexistent{]}
20−
21\item
20\item
22 @nonexistent
21 @nonexistent
23−
24\item
22\item
25 \textcite{item1} says blah.
23 \textcite{item1} says blah.
26−
27\item
24\item
28 \textcite[p.~30]{item1} says blah.
25 \textcite[p.~30]{item1} says blah.
29−
30\item
26\item
31 \textcite[p.~30, with suffix]{item1} says blah.
27 \textcite[p.~30, with suffix]{item1} says blah.
32−
33\item
28\item
34 \textcites{item1}[p.~30]{item2}[see also][]{item3} says blah.
29 \textcites{item1}[p.~30]{item2}[see also][]{item3} says blah.
35−
36\item
30\item
37 In a note.\footnote{A citation without locators \autocite{item3}.}
31 In a note.\footnote{A citation without locators \autocite{item3}.}
38−
39\item
32\item
40− A citation group
41− \autocites[see][p.~34--35]{item1}[also][chap. 3]{item3}.
33+ A citation group \autocites[see][p.~34--35]{item1}[also][chap. 3]{item3}.
42−
43\item
34\item
44 Another one \autocite[see][p.~34--35]{item1}.
35 Another one \autocite[see][p.~34--35]{item1}.
45−
46\item
36\item
47 And another one in a note.\footnote{Some citations \autocites[see][chap. 3]{item2}{item3}{item1}.}
37 And another one in a note.\footnote{Some citations \autocites[see][chap. 3]{item2}{item3}{item1}.}
48−
49\item
38\item
50− Citation with a suffix and locator
51− \autocite[pp.~33, 35--37, and nowhere else]{item1}.
39+ Citation with a suffix and locator \autocite[pp.~33, 35--37, and nowhere else]{item1}.
52−
53\item
40\item
54 Citation with suffix only \autocite[and nowhere else]{item1}.
41 Citation with suffix only \autocite[and nowhere else]{item1}.
55−
56\item
42\item
57 Now some modifiers.\footnote{Like a citation without author: \autocite*{item1}, and now Doe with a locator \autocite*[p.~44]{item2}.}
43 Now some modifiers.\footnote{Like a citation without author: \autocite*{item1}, and now Doe with a locator \autocite*[p.~44]{item2}.}
58−
59\item
44\item
60 With some markup \autocite[\emph{see}][p. \textbf{32}]{item1}.
45 With some markup \autocite[\emph{see}][p. \textbf{32}]{item1}.
61−
62\end{itemize}
46\end{itemize}
63\printbibliography[title=References]
47\printbibliography[title=References]
64
48
tests/natbib-citations.latex−14
@@ -17,46 +17,32 @@
17\begin{itemize}
17\begin{itemize}
18\item
18\item
19 {[}@nonexistent{]}
19 {[}@nonexistent{]}
20−
21\item
20\item
22 @nonexistent
21 @nonexistent
23−
24\item
22\item
25 \citet{item1} says blah.
23 \citet{item1} says blah.
26−
27\item
24\item
28 \citet[p.~30]{item1} says blah.
25 \citet[p.~30]{item1} says blah.
29−
30\item
26\item
31 \citet[p.~30, with suffix]{item1} says blah.
27 \citet[p.~30, with suffix]{item1} says blah.
32−
33\item
28\item
34 \citeauthor{item1} \citetext{\citeyear{item1}; \citeyear[p.~30]{item2}; \citealp[see also][]{item3}} says blah.
29 \citeauthor{item1} \citetext{\citeyear{item1}; \citeyear[p.~30]{item2}; \citealp[see also][]{item3}} says blah.
35−
36\item
30\item
37 In a note.\footnote{A citation without locators \citep{item3}.}
31 In a note.\footnote{A citation without locators \citep{item3}.}
38−
39\item
32\item
40 A citation group \citetext{\citealp[see][p.~34--35]{item1}; \citealp[also][chap. 3]{item3}}.
33 A citation group \citetext{\citealp[see][p.~34--35]{item1}; \citealp[also][chap. 3]{item3}}.
41−
42\item
34\item
43 Another one \citep[see][p.~34--35]{item1}.
35 Another one \citep[see][p.~34--35]{item1}.
44−
45\item
36\item
46 And another one in a note.\footnote{Some citations \citetext{\citealp[see][chap. 3]{item2}; \citealp{item3}; \citealp{item1}}.}
37 And another one in a note.\footnote{Some citations \citetext{\citealp[see][chap. 3]{item2}; \citealp{item3}; \citealp{item1}}.}
47−
48\item
38\item
49 Citation with a suffix and locator \citep[pp.~33, 35--37, and nowhere else]{item1}.
39 Citation with a suffix and locator \citep[pp.~33, 35--37, and nowhere else]{item1}.
50−
51\item
40\item
52 Citation with suffix only \citep[and nowhere else]{item1}.
41 Citation with suffix only \citep[and nowhere else]{item1}.
53−
54\item
42\item
55 Now some modifiers.\footnote{Like a citation without author: \citeyearpar{item1}, and now Doe with a locator \citeyearpar[p.~44]{item2}.}
43 Now some modifiers.\footnote{Like a citation without author: \citeyearpar{item1}, and now Doe with a locator \citeyearpar[p.~44]{item2}.}
56−
57\item
44\item
58 With some markup \citep[\emph{see}][p. \textbf{32}]{item1}.
45 With some markup \citep[\emph{see}][p. \textbf{32}]{item1}.
59−
60\end{itemize}
46\end{itemize}
61\renewcommand\refname{References}
47\renewcommand\refname{References}
62\bibliography{biblio}
48\bibliography{biblio}