Open kangy10 opened 5 days ago
Hi @kangy10, There is a proble with the current version of pandoc. The workaround is to use these lines in the yaml
:
output:
rjtools::rjournal_pdf_article:
toc: no
rjtools::rjournal_web_article:
self_contained: yes
toc: no
The sample article has been updated with this. Then to render teh article, you need to work from the R console, and run:
pandoc::pandoc_activate(version = '3.1.6')
rmarkdown::render("quokka-bilby.Rmd", output_format = "all")
Then both the html and the pdf will be rendered correctly.
Following the journal instruction, I did the following
library(rjtools) create_article(name = "quokka-bilby")
Then I knit the quokka-bilby.Rmd in RStudio. This is what I get.
Standard error: processing file: quokka-bilby.Rmd output file: quokka-bilby.knit.md
! Undefined control sequence. l.72 \pandocbounded {\includegraphics[keepaspectratio]{quokka-bilby_files/fig...
Backtrace:
callr:::throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
Subprocess backtrace: