Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment CSLReferences undefined error when compiling with pandoc #22

Open
ba0hai opened this issue Aug 29, 2022 · 1 comment
Open

Comments

@ba0hai
Copy link

ba0hai commented Aug 29, 2022

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:

└─▪ 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

TeX was installed using MacTeX: https://tug.org/mactex/mactex-download.html .

@ba0hai
Copy link
Author

ba0hai commented Aug 29, 2022

I was able to find the solution on my own and have submitted a PR here: #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant