Skip to content

Instantly share code, notes, and snippets.

@dlimpid
Created December 5, 2014 13:30
Show Gist options
  • Save dlimpid/008ef7588db3253e40fd to your computer and use it in GitHub Desktop.
Save dlimpid/008ef7588db3253e40fd to your computer and use it in GitHub Desktop.
Fix or workaround of LaTeXTools package of Sublime Text 3 for using -shell-escape option in windows. (The reason simplliy setting LaTeXTools options is not working is maybe python Popen's "whitespace in argument problem in Windows.")
  • traditionalBuilder.py

     DEFAULT_COMMAND_LATEXMK = ["latexmk", "-cd",
    -    "-e", "$pdflatex = '%E -interaction=nonstopmode -synctex=1 %S %O'",
    +    "-e", "$pdflatex='%E -interaction=nonstopmode -shell-escape -synctex=1 %S %O'",
         "-f", "-pdf"]
  • latexmk-with-shell-escape.bat

    latexmk -cd -pdflatex="pdflatex -interaction=nonstopmode -shell-escape -synctex=1 %%O %%S" -f -pdf filename.tex
    pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment