I'm using the jdf-template.pandoc file to compile my markdown files into a PDF that follows the JDF format. However, I experience a CSLReferences undefined error when compiling using pandoc here:
└─▪ pandoc M1_Journal.md -o m1pdf.pdf --from markdown --template jdf-template.pandoc --bibliography=references.bib --csl=apa.csl --citeproc
Error producing PDF.
! LaTeX Error: Environment CSLReferences undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.70 \begin{CSLReferences}
For reference, here are my pandoc and pdflatex versions:
pandoc --version
pandoc 2.19
Compiled with pandoc-types 1.22.2, texmath 0.12.5.2, skylighting 0.13,
citeproc 0.8.0.1, ipynb 0.2, hslua 2.2.1
Scripting engine: Lua 5.4
User data directory: /Users/nhi/.local/share/pandoc
Copyright (C) 2006-2022 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
pdflatex --version
pdfTeX 3.141592653-2.6-1.40.24 (TeX Live 2022)
kpathsea version 6.3.4
Copyright 2022 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.03
Problem
I'm using the
jdf-template.pandoc
file to compile my markdown files into a PDF that follows the JDF format. However, I experience a CSLReferences undefined error when compiling using pandoc here:For reference, here are my pandoc and pdflatex versions:
TeX was installed using MacTeX: https://tug.org/mactex/mactex-download.html .