From d0c87c762aa35f9abec79d8e0fea325a8c0608d0 Mon Sep 17 00:00:00 2001 From: TEC Date: Sat, 24 Dec 2022 19:36:20 +0800 Subject: [PATCH] ox-latex: Do not hardcode fallback compiler * lisp/ox-latex.el (org-latex-compile): Instead of hardcoding "pdflatex" as the fallback compiler, use `org-latex-compiler'. --- lisp/ox-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 110390cf3..330007eba 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -4283,7 +4283,7 @@ produced." ;; Cannot find the compiler inserted by ;; `org-latex-template' -> `org-latex--insert-compiler'. ;; Use a fallback. - "pdflatex")) + org-latex-compiler)) (process (if (functionp org-latex-pdf-process) org-latex-pdf-process ;; Replace "%latex" with "%L" and "%bib" and ;; "%bibtex" with "%B" to adhere to `format-spec'