From da8c9479c25d8239fb83ea274df01e1cb759f06d Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Tue, 25 Apr 2017 12:07:19 +0300 Subject: [PATCH] Add -shell-escape option to pdflatex --- pytex/pytex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytex/pytex.py b/pytex/pytex.py index 0ae173a..f20e204 100644 --- a/pytex/pytex.py +++ b/pytex/pytex.py @@ -79,6 +79,7 @@ def pdflatex(latex_file, output_dir=""): # f"-output-directory={output_dir}", # "-halt-on-error", "-interaction=nonstopmode", + "-shell-escape", str(Path(latex_file).name), ], stdout=subprocess.PIPE,