yatex
diff yatexprc.el @ 605:38a414d755c1
PDFnative typesetter
| author | HIROSE Yuuji <yuuji@gentei.org> |
|---|---|
| date | Fri, 02 Dec 2022 08:42:22 +0859 |
| parents | 638284a7a9d0 |
| children | 6a0fea36298f |
line diff
1.1 --- a/yatexprc.el Thu Sep 29 10:00:57 2022 +0900 1.2 +++ b/yatexprc.el Fri Dec 02 08:42:22 2022 +0859 1.3 @@ -1,7 +1,7 @@ 1.4 ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*- 1.5 ;;; 1.6 ;;; (c)1993-2022 by HIROSE Yuuji.[yuuji@yatex.org] 1.7 -;;; Last modified Thu Sep 29 09:56:02 2022 on firestorm 1.8 +;;; Last modified Thu Dec 1 19:13:20 2022 on firestorm 1.9 ;;; $Id$ 1.10 1.11 ;;; Code: 1.12 @@ -184,7 +184,8 @@ 1.13 (ppprop (get 'YaTeX-typeset-process 'ppcmd)) 1.14 (ppcmd (cdr (assq proc ppprop))) 1.15 (bcprop (get 'YaTeX-typeset-process 'bibcmd)) 1.16 - (bibcmd (cdr (assq proc bcprop)))) 1.17 + (bibcmd (cdr (assq proc bcprop))) 1.18 + (useluatex (string-match "lua.*tex" thiscmd))) 1.19 (put 'YaTeX-typeset-process 'ppcmd ;erase ppcmd 1.20 (delq (assq proc ppprop) ppprop)) 1.21 (put 'YaTeX-typeset-process 'bibcmd ;erase bibcmd 1.22 @@ -286,8 +287,14 @@ 1.23 ;; If ppcmd is set and it is a function symbol, 1.24 ;; call it whenever command succeeded or not 1.25 (funcall ppcmd)) 1.26 - ((and ppcmd (string-match "finish" mes)) 1.27 - (insert (format "=======> Success! Calling %s\n" ppcmd)) 1.28 + ((and ppcmd (string-match "finish" mes) 1.29 + ;; It is bad way to detect the necessity of 1.30 + ;; pdf-conversion by seeing typesetter name because 1.31 + ;; new typesetter other than lua(la)tex might come. 1.32 + ;; More reasonable way is to determine by the 1.33 + ;; existence of PDF file. 1.34 + (not useluatex)) 1.35 + (insert (format "=======> Success! Calling %s\n" ppcmd)) 1.36 (setq mode-name ; set process name 1.37 (concat 1.38 mode-name "+"
