I'm trying to use the solution given by the accepted answer in

How to have \psframe working with LuaLatex?

but I don't know how to enable the option --shell-escape there.

Overleaf explains that it has a configuration file called latexmk, but I don't understand a single line of it:


I'm sorry if this is considered a technical support question. If I don't find a fast answer here, I'm going to contact Overleaf, but maybe this question helps somebody else here someday.

  • 1
    The --shell-escape option allows the end user to possibly execute external applications that could be harmful. I doubt server-applications like Overleaf would allow for this. The latexmk approach merely compiles your file until all references/links are fully resolved. One way to check whether they support --shell-escape would be to create a small minted example.
    – Werner
    Feb 5, 2016 at 18:07
  • 2
    I'd be amazed if any public server hosted latex system allows --shell-escape. Feb 5, 2016 at 18:31
  • I just compiled the "Hello World" example there: overleaf.com/read/hcywbbsfmnmc . Does that mean that --shell-escape is enabled? Feb 5, 2016 at 18:51
  • @DavidCarlisle If they allow LuaTeX, aren't they essentially doing so anyway?
    – cfr
    Feb 6, 2016 at 0:02
  • 3
    As the blog post in @Benjamin's answer says, latexmkrc and --shell-escape are allowed on Overleaf. Each Overleaf project is a Docker container (digital-science.com/blog/tech/…), so each project's settings and tricks stays within its own container.
    – imnothere
    Feb 6, 2016 at 7:48

1 Answer 1


According to this blog post, it should be possible to upload a latexmkrc file to your project and surprisingly even shell-escape seems to be allowed. I haven't tested it, but something like this should work:

$pdflatex = 'lualatex %O %S --shell-escape';
$pdf_mode = 1;
$postscript_mode = $dvi_mode = 0;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.