papaja
papaja copied to clipboard
Use pandoc-citeproc hanging indent implementation
Hanging indents for reference sections will be supported in the next release of pandoc and pandoc-citeproc. This should make the use of the LaTeX group at the end of the template unnecessary.
I've found that the hanging indent created by pandoc-citeproc is wrong for PDF output. \setlength \parskip and \leftskip in the template was not working.
My super dodgy work-around:
\begingroup
\setlength{\cslhangindent}{0.5in}
\renewenvironment{cslreferences}%
{\setlength{\parindent}{0pt}%
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces}%
{\par}
<div id="refs" custom-style="Bibliography"></div>
\endgroup