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'.
This commit is contained in:
TEC 2022-12-24 19:36:20 +08:00 committed by Ihor Radchenko
parent b29f772416
commit d0c87c762a
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 1 deletions

View File

@ -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'