summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-06-13 14:06:09 -0700
committerEric Schulte <schulte.eric@gmail.com>2011-06-13 14:06:09 -0700
commitf089a9e914ec4576822420fcadf382ecca35e9d3 (patch)
tree97cdaee2612634d7a49765a646cdc8c9d5e9ceec
parent5d7e0b79c9896d903357f821d200901a4ceaf923 (diff)
parent3ed5915f01ac5647db5f2204dc695519653b1190 (diff)
downloadorg-mode-f089a9e914ec4576822420fcadf382ecca35e9d3.tar.gz
Merge branch 'master' of orgmode.org:org-mode
-rw-r--r--lisp/org-latex.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index e2c74ae..ef8b2b1 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -986,7 +986,13 @@ when PUB-DIR is set, use this as the publishing directory."
(file (buffer-file-name lbuf))
(base (file-name-sans-extension (buffer-file-name lbuf)))
(pdffile (concat base ".pdf"))
- (cmds org-latex-to-pdf-process)
+ (cmds (if (eq org-export-latex-listings 'minted)
+ ;; automatically add -shell-escape when needed
+ (mapcar (lambda (cmd)
+ (replace-regexp-in-string
+ "pdflatex " "pdflatex -shell-escape " cmd))
+ org-latex-to-pdf-process)
+ org-latex-to-pdf-process))
(outbuf (get-buffer-create "*Org PDF LaTeX Output*"))
(bibtex-p (with-current-buffer lbuf
(save-excursion