papaja icon indicating copy to clipboard operation
papaja copied to clipboard

Use pandoc-citeproc hanging indent implementation

Open crsh opened this issue 6 years ago • 1 comments

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.

crsh avatar Sep 28 '19 07:09 crsh

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

bamcintyre avatar Sep 27 '20 05:09 bamcintyre