! LaTeX Error: Environment CSLReferences undefined.
After correcting issue #6 and issue #11 , this knitting error occurs:
! LaTeX Error: Environment CSLReferences undefined. which has been discussed in this LaTeX forum
I managed to overcome it during my tweaking but I don't remember how and now cannot get paste the error. Bummer. @ryanpeek any thoughts?
@liza-wood swamped this week but will try to take a look soon and get back to you. I haven't used this package in a while so need to get back up to speed. Maybe a D-RUG group discussion/topic?
This is a great idea. I could even propose a D-RUG session where everyone tries to run through aggiedown and talk through any issues that arise. I'll ping Wes.
Referencing stack overflow post here: https://stackoverflow.com/questions/59193797/pandocs-environment-cslreferences-undefined-when-knitting-rmarkdown-to-pdf-in-r:
Changing \newenvironment{cslreferences}% to \newenvironment{CSLReferences}% solves the problem.
Specifically if you are also having this problem with thesisdown, you must alter the template.tex file. The section in template.tex should look like this then:
$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$