atom-latextools icon indicating copy to clipboard operation
atom-latextools copied to clipboard

-shell-escape is not properly passed

Open bazzilic opened this issue 7 years ago • 5 comments

I am trying to use minted on Windows (Atom, MiKTeX, Python 2, pygments—all properly installed and updated to latest versions), which requires -shell-escape. The .tex document has % !TEX option = -shell-escape in the first line, and when I look in the LaTeXTools Console output I can see that it is passed to texify:

Platform: win32; texpath:
Processing file Assignment.tex (Assignment) in directory C:\Users\bazzilic\Dropbox\My Projects\TestAssignment\AssignmentDocument
texify builder
texify -p --tex-option="-interaction=nonstopmode" --engine=pdftex --tex-option="--synctex=1 -shell-escape" "Assignment.tex"

However, right after that the log says:

Parsing C:\Users\bazzilic\Dropbox\My Projects\TestAssignment\AssignmentDocument\Assignment.log
ERRORS:
C:/Users/bazzilic/Dropbox/My Projects/TestAssignment/AssignmentDocument/Assignment.tex:11: Package minted Error: You must invoke LaTeX with the -shell-escape flag. [\usepackage]

Am I doing something wrong? Is this a bug? This same document used to compile fine about half a year ago btw.

bazzilic avatar Aug 10 '17 05:08 bazzilic

You may try % !TEX option = --shell-escape

r-stein avatar Aug 10 '17 07:08 r-stein

I tried --shell-escape, I tried options (plural), I tried %! instead of % !. No effect.

bazzilic avatar Aug 10 '17 08:08 bazzilic

I think this is a straightforward error in how we are passing options to texify.

ig0774 avatar Aug 10 '17 10:08 ig0774

I see that latest commit to the repo is in 2016. Is this project still active?

bazzilic avatar Aug 11 '17 02:08 bazzilic

I assume, this will not be fixed?

bazzilic avatar Dec 07 '17 10:12 bazzilic