Parcourir la source

org-latex-compile: Add commentary on fallback compiler command

* lisp/ox-latex.el (org-latex-compile): Clarify when "pdflatex"
constant is used as a fallback.
Ihor Radchenko il y a 2 ans
Parent
commit
2cb4f46fec
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      lisp/ox-latex.el

+ 3 - 0
lisp/ox-latex.el

@@ -4178,6 +4178,9 @@ produced."
 					    t)
 					    t)
 		     (progn (beginning-of-line) (looking-at-p "%"))
 		     (progn (beginning-of-line) (looking-at-p "%"))
 		     (match-string 0)))
 		     (match-string 0)))
+              ;; Cannot find the compiler inserted by
+              ;; `org-latex-template' -> `org-latex--insert-compiler'.
+              ;; Use a fallback.
 	      "pdflatex"))
 	      "pdflatex"))
 	 (process (if (functionp org-latex-pdf-process) org-latex-pdf-process
 	 (process (if (functionp org-latex-pdf-process) org-latex-pdf-process
 		    ;; Replace "%latex" with "%L" and "%bib" and
 		    ;; Replace "%latex" with "%L" and "%bib" and