From ffbefa088780eeb5fe13f7d40c383894a6dcf179 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 29 Jul 2022 10:54:28 +0200 Subject: [PATCH] Emacs: Improve pdflatex minted elisp --- .config/emacs/config/org-mode.org | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/emacs/config/org-mode.org b/.config/emacs/config/org-mode.org index 6b2a5bc..8fb452b 100644 --- a/.config/emacs/config/org-mode.org +++ b/.config/emacs/config/org-mode.org @@ -130,11 +130,11 @@ 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 " - (car org-latex-pdf-process)))) + ;; 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 ** Org Functions