Browse Source

Emacs: Improve pdflatex minted elisp

master
Riyyi 2 years ago
parent
commit
ffbefa0887
  1. 8
      .config/emacs/config/org-mode.org

8
.config/emacs/config/org-mode.org

@ -130,10 +130,10 @@ Org latex exporter.
(setq org-latex-toc-command "\\newpage \\tableofcontents \\newpage")
;; Add minted package to every LaTeX header
(add-to-list 'org-latex-packages-alist '("" "minted"))
;; Append -shell-escape so pdflatex exports minted correctly
(add-to-list 'org-latex-pdf-process (replace-regexp-in-string
"%latex "
"%latex -shell-escape "
;; Add -shell-escape so pdflatex exports minted correctly
(setcar org-latex-pdf-process (replace-regexp-in-string
"-%latex -interaction"
"-%latex -shell-escape -interaction"
(car org-latex-pdf-process))))
#+END_SRC

Loading…
Cancel
Save