aggiedown icon indicating copy to clipboard operation
aggiedown copied to clipboard

! LaTeX Error: Environment CSLReferences undefined.

Open liza-wood opened this issue 2 years ago • 3 comments

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 avatar Sep 14 '23 17:09 liza-wood

@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?

ryanpeek avatar Sep 16 '23 02:09 ryanpeek

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.

liza-wood avatar Sep 18 '23 15:09 liza-wood

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$ 

ryanpeek avatar Dec 06 '23 20:12 ryanpeek