4

I'm using Rstudio to create a nice pdf report using sweave and xelatex. I can process the sweave file in Rstudio, but I'm trying to wrap this into a script, so I need to figure out what parameters are being passed to xelatex - any ideas how to figure that out?

Jimbo
  • 41

1 Answers1

3

If you click on the small question-mark icon next to the pulldown menu specifying the TeX engine in RStudio Sweave preferences, it will take you to the following web page, which outlines the options that RStudio passes automatically:

By default, RStudio passes -file-line-error and synctex=-1 (there appears to be a typo in the page; the option is synctex not synctec).

Additionally, it will pass the -shell-escape option if the "Enable shell escape commands" box is clicked.

RStudio also understands the per-file engine directives.

Alan Munn
  • 218,180