RMarkdown fails to compile tex output

Recently ran into this error when knitting Rmarkdown to pdf:

I tried updating tinytex but hasn't solved the issue. I am failing to understand what the issue is exactly. I was able to knit to PDF until this issue showed up. Any suggestions or pointers would be greatly appreciated. Below is what I have for the pdf output options in the yaml

   latex_engine: xelatex
   keep_tex: yes
geometry: margin=1in
fontsize: 12pt
spacing: double
  - \usepackage{mathpazo}
  - \usepackage{eulervm}
  - \usepackage{fontspec}
  - \setmainfont{Garamond}

Try adding

- \usepackage{microtype}
1 Like

If it still does not work, please provide a full reproducible example. Thank you

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.