ulyngs / oxforddown

Template for writing an Oxford University thesis in R Markdown; uses the OxThesis LaTeX template and was inspired by thesisdown.
https://ulyngs.github.io/oxforddown/
MIT License
220 stars 81 forks source link

Default latex engine doesn't work at times #47

Closed pratik-bhandari closed 2 years ago

pratik-bhandari commented 2 years ago

Specify latex engine

ulyngs commented 2 years ago

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?

pratik-bhandari commented 2 years ago

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.

ulyngs commented 2 years ago

Default latex engine is now xelatex: b0a525afa58ae8c7f9d57b3f664491b487c4e851