Added tex-mode hack to compile with --shell-escape.

This commit is contained in:
larstvei 2014-01-07 15:26:58 +01:00
parent 0c3f4c2807
commit 7f6b377f0c
2 changed files with 8 additions and 1 deletions

View File

@ -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")

View File

@ -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