Default latex engine doesn't work at times
pratik-bhandari opened this issue · comments
Specify latex engine
- The default pdflatex engine throws a UTF-8 encoding error
- Perhaps, add a line to let users select a latex_engine in the index.Rmd file that works?
R Markdown by default uses pdflatex
, but this can easily be changed: https://bookdown.org/yihui/rmarkdown/pdf-document.html
As you point out, pdflatex can have some issues with various more complicated unicode characters, which then requires people to set the latex engine to e.g. xelatex
Do you know if there would be any unexpected consequences if I were to simply change oxforddown
's default to xelatex
?
I work with this additional YAML line in the index.Rmd file: latex_engine: xelatex
(in line 165) without any problem. But for other projects, sometimes RStudio throws a rendering error related to tinytex
when the engine is xelatex
. Not sure why, and don't have the error message right now.
Again, as far as oxforddown
is concerned, there is no problem with xelatex
.
Default latex engine is now xelatex
: b0a525a