pandoc/tests/biblatex-citations.latex
John MacFarlane 9a739e30bf Fixed problem with strikout in LaTeX headers with hyperref.
Added a command to the latex template to disable \sout inside
pdf strings.  Thanks to Joost Kremers for the fix.
2011-01-19 11:43:30 -08:00

51 lines
1.5 KiB
Text

\documentclass{article}
\usepackage{amssymb,amsmath}
\usepackage[mathletters]{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{biblatex}
\bibliography{biblio}
\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
\textcite{item1} says blah.
\item
\textcite[p.~30]{item1} says blah.
\item
\textcite[p.~30, with suffix]{item1} says blah.
\item
\textcites{item1}[p.~30]{item2}[see also][]{item3} says blah.
\item
In a note.\footnote{A citation without locators \autocite{item3}.}
\item
A citation group \autocites[see][p.~34--35]{item1}[also][chap. 3]{item3}.
\item
Another one \autocite[see][p.~34--35]{item1}.
\item
And another one in a note.\footnote{Some citations \autocites[see][chap. 3]{item2}{item3}{item1}.}
\item
Citation with a suffix and locator \autocite[pp.~33, 35--37, and nowhere else]{item1}.
\item
Citation with suffix only \autocite[and nowhere else]{item1}.
\item
Now some modifiers.\footnote{Like a citation without author: \autocite*{item1}, and now Doe with a locator \autocite*[p.~44]{item2}.}
\item
With some markup \autocite[\emph{see}][p. \textbf{32}]{item1}.
\end{itemize}
\printbibliography[title=References]
\end{document}