mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 08:02:52 +00:00
Automatically use pdflatex -shell-escape for minted export
Patch by Bastien * lisp/org-latex.el: Add -shell-escape to pdflatex commands
This commit is contained in:
parent
c4737ae48b
commit
3ed5915f01
|
@ -986,7 +986,13 @@ when PUB-DIR is set, use this as the publishing directory."
|
||||||
(file (buffer-file-name lbuf))
|
(file (buffer-file-name lbuf))
|
||||||
(base (file-name-sans-extension (buffer-file-name lbuf)))
|
(base (file-name-sans-extension (buffer-file-name lbuf)))
|
||||||
(pdffile (concat base ".pdf"))
|
(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*"))
|
(outbuf (get-buffer-create "*Org PDF LaTeX Output*"))
|
||||||
(bibtex-p (with-current-buffer lbuf
|
(bibtex-p (with-current-buffer lbuf
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
|
Loading…
Reference in a new issue