Open bastistician opened 10 months ago
Thanks! We need to update csl to better match the referencing between pdf and html versions. So this is extra motivation to work on that.
Should anyone else spend hours upon hours finding a solution, mine was to run
pandoc::with_pandoc_version(
version = '3.1.6.2',
rmarkdown::render('article.Rmd')
)
Thanks for the lead @bastistician.
This seems related to: https://github.com/Wandmalfarbe/pandoc-latex-template/issues/361 They fixed the problem here: https://github.com/Wandmalfarbe/pandoc-latex-template/pull/364/files
rmarkdown::render()
ing the article template fails when using recent versions of Pandoc (>= 3.1.7), presumably due to changes in its LaTeX writer with respect to the CSLReferences environment.With Pandoc 3.1.7, the error is (as previously reported in #113)
With Pandoc 3.1.8 to 3.1.11.1 (current) the error is
In Pandoc 3.1.6.2, the LaTeX writer had produced, e.g.,
to open a new bib item, whereas it now (Pandoc >= 3.1.7) produces
This is incompatible with the outdated definition of CSLReferences in
RJwrapper.tex
. See the changes in Pandoc's default LaTeX template between 3.1.6.2 and 3.1.11.1.