ashthespy / Atom-LaTeX

The only LaTeX package you need for typesetting with Atom.
https://atom.io/packages/atom-latex
MIT License
22 stars 9 forks source link

shell escape option? #194

Closed dpo closed 5 years ago

dpo commented 5 years ago

I can't find the appropriate way to tell latexmk to call pdflatex with -shell-escape. Is it necessary to set up a custom toolchain? Thanks!

ashthespy commented 5 years ago

Best practice - yes. Easy option, edit the latexmk execution parameters in the package settings and add the flag.

dpo commented 5 years ago

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

but a build fails immediately and the build command is all that's in the log.

What am I doing wrong?

ashthespy commented 5 years ago

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.

dpo commented 5 years ago

Hm. It does work. Pretty sure I tried it before but who knows. Thanks!