0

I am using the Atom editor with the latextools package (a port of the similar one for Sublime) and I can write for example

% !TEX option = -shell-escape

in the begining of my document to make it escape the shell (and use the Minted package).

My question is, where does this command come from? Is it from the latextools package or is it some standard syntax? Is it portable to other IDE?

When building I see this:

latexmk -cd -e -f -pdf -interaction=nonstopmode -synctex=1 -latexoption="-shell-escape" "main.tex"
3
  • 2
    Which part are you asking about? The !TEX ... syntax is quite common to lots of editors: see When and why should I use % !TEX TS-program and % !TEX encoding?. The -shell-escape is typical shell syntax.
    – Alan Munn
    Commented Apr 10, 2017 at 18:37
  • 2
    Just to point out: the !TEX syntax is pretty broadly useable. The option part is unique to LaTeXTools AFAIK.
    – ig0774
    Commented Apr 11, 2017 at 8:36
  • Thank you very much and sorry for the duplicate. This pattern was a bit tricky for me to search for, mainly because of the leading "!".
    – MakisH
    Commented Apr 11, 2017 at 12:38

0

Browse other questions tagged .