Closed dpo closed 5 years ago
Best practice - yes.
Easy option, edit the latexmk
execution parameters in the package settings and add the flag.
Sorry for the basic question but I'm not having success with the custom toolchain. -shell-escape
is an option of pdflatex
, not of latexmk
.
I set
%TEX %ARG %DOC
latexmk
-synctex=1 -interaction=nonstopmode -file-line-error -e '$latex=q/pdflatex %O -shell-escape %S/'
but a build fails immediately and the build command is all that's in the log.
What am I doing wrong?
You don't have to fiddle around with the custom toolchain commands, that is used only when not using latexmk
. Shouldn't it work just with:
-synctex=1 -interaction=nonstopmode -file-line-error -shell-escape -pdf
Not near my machine to test..
PS: like I said before - leaving this on by default isn't the greatest idea.
Hm. It does work. Pretty sure I tried it before but who knows. Thanks!
I can't find the appropriate way to tell
latexmk
to callpdflatex
with-shell-escape
. Is it necessary to set up a custom toolchain? Thanks!