0

This question already has an answer here:

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"

marked as duplicate by David Carlisle, Werner, Zarko, user36296, gernot Apr 10 '17 at 19:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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 Apr 10 '17 at 18:37
  • 2
    Just to point out: the !TEX syntax is pretty broadly useable. The option part is unique to LaTeXTools AFAIK. – ig0774 Apr 11 '17 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 Apr 11 '17 at 12:38