From 7f6b377f0cad3a29b747ac89e5bfe5efdbaaa9e2 Mon Sep 17 00:00:00 2001 From: larstvei Date: Tue, 7 Jan 2014 15:26:58 +0100 Subject: [PATCH] Added tex-mode hack to compile with --shell-escape. --- init.el | 2 ++ init.org | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index bf7fa0e..36847b9 100644 --- a/init.el +++ b/init.el @@ -418,6 +418,8 @@ LANGUAGES (cyclic) list." (substring str (string-match "-" str)))) org-latex-pdf-process)) +(setcar (cdr (cddaar tex-compile-commands)) " -shell-escape ") + (setq jedi:server-command (cons "python3" (cdr jedi:server-command)) python-shell-interpreter "python3") diff --git a/init.org b/init.org index 38e9458..984122a 100644 --- a/init.org +++ b/init.org @@ -816,7 +816,10 @@ #+END_SRC Because [[https://code.google.com/p/minted/][Minted]] uses [[http://pygments.org][Pygments]] (an external process), we must add the - =-shell-escape= option to the =org-latex-pdf-process= commands. + =-shell-escape= option to the =org-latex-pdf-process= commands. The + =tex-compile-commands= variable controls the default compile command for + Tex- and LaTeX-mode, we can add the flag with a rather dirty statement + (if anyone finds a nicer way to do this, please let me know). #+BEGIN_SRC emacs-lisp :tangle yes (setq org-latex-pdf-process @@ -825,6 +828,8 @@ (concat "pdflatex -shell-escape " (substring str (string-match "-" str)))) org-latex-pdf-process)) + + (setcar (cdr (cddaar tex-compile-commands)) " -shell-escape ") #+END_SRC ** Python