branch: externals/auctex
commit 2ed9d9308fe35daaf3157aeb0500bdb20c0be68c
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>

    Add %(PDF) when undumped format is used in preview-latex
    
    * preview.el.in (TeX-inline-preview-internal): Make pdflatex to be
    called when default output is PDF and dumped format is used.  Although
    it seems that if the dumped format is created by pdflatex, the format
    produces PDF output even when the command name is (non-pdf) latex, it
    would be better that pdflatex is used in that case, too.
---
 preview.el.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preview.el.in b/preview.el.in
index 1aa7e1a..8bde248 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -3548,7 +3548,7 @@ internal parameters, STR may be a log to insert into the 
current log."
                      ;; (TeX-engine-alist) are dropped, give them
                      ;; back.
                      (list (list "\\`\\([^ ]+\\)"
-                           (TeX-command-expand "%(latex)" nil)))))
+                           (TeX-command-expand "%(PDF)%(latex)" nil)))))
           command) file)))
     (condition-case err
        (progn

Reply via email to