aboutsummaryrefslogtreecommitdiff
path: root/tests/natbib-citations.latex
blob: fdb4e14fc978953a008b9cfd5fac2954284c5c2c (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
\documentclass{article}
\usepackage{amssymb,amsmath}
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{natbib}
\bibliographystyle{plainnat}
\usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]{hyperref}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setcounter{secnumdepth}{0}


\begin{document}

\section{Pandoc with citeproc-hs}

\begin{itemize}
\item
  {[}@nonexistent{]}
\item
  @nonexistent
\item
  \citet{item1} says blah.
\item
  \citet[p.~30]{item1} says blah.
\item
  \citet[p.~30, with suffix]{item1} says blah.
\item
  \citeauthor{item1} \citetext{\citeyear{item1}; \citeyear[p.~30]{item2}; \citealp[see also][]{item3}} says blah.
\item
  In a note.\footnote{A citation without locators \citep{item3}.}
\item
  A citation group \citetext{\citealp[see][p.~34--35]{item1}; \citealp[also][chap. 3]{item3}}.
\item
  Another one \citep[see][p.~34--35]{item1}.
\item
  And another one in a note.\footnote{Some citations \citetext{\citealp[see][chap. 3]{item2}; \citealp{item3}; \citealp{item1}}.}
\item
  Citation with a suffix and locator \citep[pp.~33, 35--37, and nowhere else]{item1}.
\item
  Citation with suffix only \citep[and nowhere else]{item1}.
\item
  Now some modifiers.\footnote{Like a citation without author: \citeyearpar{item1}, and now Doe with a locator \citeyearpar[p.~44]{item2}.}
\item
  With some markup \citep[\emph{see}][p. \textbf{32}]{item1}.
\end{itemize}
\renewcommand\refname{References}
\bibliography{biblio}

\end{document}