Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.09k stars 959 forks source link

CSLReferences undefined #250

Open novasenco opened 3 years ago

novasenco commented 3 years ago
$ pandoc -s --bibliography=outline.bib --citeproc --template=eisvogel.latex outline.md -o outline.pdf
Error producing PDF.
! LaTeX Error: Environment CSLReferences undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.484 \begin{CSLReferences}
LastChain commented 2 years ago

Hi!

I had the same problem. A quick hack solved the issue for now.

(eisvogel.tex:) Replacing the lines 437 to 461 with:

$if(csl-refs)$ \newlength{\cslhangindent} \setlength{\cslhangindent}{1.5em} \newenvironment{cslreferences}% {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% {\par} $endif$

Additional info: "pandoc now requires a cslreferences environment to be defined in the latex template (see jgm/pandoc@0fe635d)." - (https://forum.zettlr.com/discussion/77/problem-pdf-export-with-citations-or-images) by eooloh Jan20

Best regards