rjournal / rjtools

Tools for AUTHORS to use for checking and submitting articles to the R Journal
https://rjournal.github.io/rjtools/
Other
31 stars 14 forks source link

Error when making PDF #113

Closed pfh closed 1 year ago

pfh commented 1 year ago

I'm having trouble knitting the PDF version of my article.

Steps to reproduce:

Create an example article with

library(rjtools)
create_article(name = "quokka-bilby")

and then press knit on the Rmd. The HTML document is produced correctly, but the PDF fails. The relevant error seems to be from latex:

! Undefined control sequence.
<argument> \cslentryspacing

I tried this with rjtools version 1.0.12, R 4.3.1 on MacOS, and also rjtools from github.

pfh commented 1 year ago

Ah. It seems rmarkdown was using my homebrew installed version of pandoc (version 3.1.8).

When I uninstalled this, rmarkdown switched to using the version that came with quarto, pandoc version 3.1.1, and is now working.