SCM

Forum: support

Monitor Forum | Start New Thread Start New Thread
RE: shell escape [ Reply ]
By: Achim Zeileis on 2025-12-01 20:46
[forum:50133]
Setting exams_tex = NULL should have the same effect provided that the "tinytex" package is installed. See: https://www.R-exams.org/tutorials/latex/

Also setting exams2pdf(..., texengine = "lualatex") or "xelatex" should also work.

All of these have the effect that tinytex::latexmk() rather than tools::texi2dvi() is used for processing the LaTeX code. And this supports setting the shell-escape option.

RE: shell escape [ Reply ]
By: Guillaume Sellier on 2025-12-01 18:13
[forum:50132]
Indeed, it worked !
I was missing exams_tex = "tinytex".
Thanks a lot.

RE: shell escape [ Reply ]
By: Achim Zeileis on 2025-12-01 16:35
[forum:50131]
I think this should work via tinytex options. Can you try this?

options(tinytex.engine_args = "-shell-escape", exams_tex = "tinytex")

I didn't have the time to try this myself, yet, but it is my reading of ?latexmk.

shell escape [ Reply ]
By: Guillaume Sellier on 2025-12-01 15:07
[forum:50130]
Hi,

I'm trying to use the markdown LaTeX package inside my LaTeX templates, is there a way to enable -shell-escape with either system LaTeX or TinyTex ?

Regards,
Guillaume

Thanks to:
Vienna University of Economics and Business Powered By FusionForge