yatex

changeset 605:38a414d755c1 dev

PDFnative typesetter
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 02 Dec 2022 08:42:22 +0859
parents 9ec429ace1c5
children c11261c0960f
files yahtml.el yatexadd.el yatexlib.el yatexpkg.el yatexprc.el
diffstat 5 files changed, 21 insertions(+), 12 deletions(-) [+]
line diff
     1.1 --- a/yahtml.el	Thu Dec 01 18:55:43 2022 +0859
     1.2 +++ b/yahtml.el	Fri Dec 02 08:42:22 2022 +0859
     1.3 @@ -1,5 +1,5 @@
     1.4  ;;; yahtml.el --- Yet Another HTML mode -*- coding: sjis -*-
     1.5 -;;; (c) 1994-2019 by HIROSE Yuuji [yuuji(@)yatex.org]
     1.6 +;;; (c) 1994-2022 by HIROSE Yuuji [yuuji(@)yatex.org]
     1.7  ;;; $Id$
     1.8  
     1.9  (defconst yahtml-revision-number "1.80.1"
     2.1 --- a/yatexadd.el	Thu Dec 01 18:55:43 2022 +0859
     2.2 +++ b/yatexadd.el	Fri Dec 02 08:42:22 2022 +0859
     2.3 @@ -1,6 +1,6 @@
     2.4  ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
     2.5 -;;; (c)1991-2019 by HIROSE Yuuji.[yuuji@yatex.org]
     2.6 -;;; Last modified Thu Dec  1 18:33:08 2022 on firestorm
     2.7 +;;; (c)1991-2022 by HIROSE Yuuji.[yuuji@yatex.org]
     2.8 +;;; Last modified Fri Dec  2 08:40:27 2022 on firestorm
     2.9  ;;; $Id$
    2.10  
    2.11  ;;; Code:
    2.12 @@ -1893,7 +1893,9 @@
    2.13  
    2.14  (defvar YaTeX:documentclasses-default
    2.15    '(("article") ("jarticle") ("report") ("jreport") ("book") ("jbook")
    2.16 -    ("jsarticle") ("jsbook")
    2.17 +    ("ltjsarticle") ("ltjsreport") ("ltjsbook")
    2.18 +    ("ltjarticle") ("ltjreport") ("ltjbook")
    2.19 +    ("jsarticle") ("jsreport") ("jsbook")
    2.20      ("j-article") ("j-report") ("j-book")
    2.21      ("letter") ("slides") ("ltxdoc") ("ltxguide") ("ltnews") ("proc"))
    2.22    "Default documentclass alist")
     3.1 --- a/yatexlib.el	Thu Dec 01 18:55:43 2022 +0859
     3.2 +++ b/yatexlib.el	Fri Dec 02 08:42:22 2022 +0859
     3.3 @@ -1,7 +1,7 @@
     3.4  ;;; yatexlib.el --- YaTeX and yahtml common libraries -*- coding: sjis -*-
     3.5  ;;; 
     3.6 -;;; (c)1994-2019 by HIROSE Yuuji.[yuuji@yatex.org]
     3.7 -;;; Last modified Fri Sep 23 06:43:32 2022 on firestorm
     3.8 +;;; (c)1994-2022 by HIROSE Yuuji.[yuuji@yatex.org]
     3.9 +;;; Last modified Fri Dec  2 08:41:16 2022 on firestorm
    3.10  ;;; $Id$
    3.11  
    3.12  ;;; Code:
     4.1 --- a/yatexpkg.el	Thu Dec 01 18:55:43 2022 +0859
     4.2 +++ b/yatexpkg.el	Fri Dec 02 08:42:22 2022 +0859
     4.3 @@ -1,7 +1,7 @@
     4.4  ;;; yatexpkg.el --- YaTeX package manager -*- coding: sjis -*-
     4.5  ;;; 
     4.6 -;;; (c)2003-2019 by HIROSE, Yuuji [yuuji@yatex.org]
     4.7 -;;; Last modified Thu Dec  1 18:45:19 2022 on firestorm
     4.8 +;;; (c)2003-2022 by HIROSE, Yuuji [yuuji@yatex.org]
     4.9 +;;; Last modified Fri Dec  2 08:22:41 2022 on firestorm
    4.10  ;;; $Id$
    4.11  
    4.12  ;;; Code:
     5.1 --- a/yatexprc.el	Thu Dec 01 18:55:43 2022 +0859
     5.2 +++ b/yatexprc.el	Fri Dec 02 08:42:22 2022 +0859
     5.3 @@ -1,7 +1,7 @@
     5.4  ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*-
     5.5  ;;; 
     5.6  ;;; (c)1993-2022 by HIROSE Yuuji.[yuuji@yatex.org]
     5.7 -;;; Last modified Thu Sep 29 09:56:02 2022 on firestorm
     5.8 +;;; Last modified Thu Dec  1 19:13:20 2022 on firestorm
     5.9  ;;; $Id$
    5.10  
    5.11  ;;; Code:
    5.12 @@ -184,7 +184,8 @@
    5.13  		(ppprop (get 'YaTeX-typeset-process 'ppcmd))
    5.14  		(ppcmd (cdr (assq proc ppprop)))
    5.15  		(bcprop (get 'YaTeX-typeset-process 'bibcmd))
    5.16 -		(bibcmd (cdr (assq proc bcprop))))
    5.17 +		(bibcmd (cdr (assq proc bcprop)))
    5.18 +		(useluatex (string-match "lua.*tex" thiscmd)))
    5.19  	   (put 'YaTeX-typeset-process 'ppcmd ;erase ppcmd
    5.20  		(delq (assq proc ppprop) ppprop))
    5.21  	   (put 'YaTeX-typeset-process 'bibcmd ;erase bibcmd
    5.22 @@ -286,8 +287,14 @@
    5.23  		     ;; If ppcmd is set and it is a function symbol,
    5.24  		     ;; call it whenever command succeeded or not
    5.25  		     (funcall ppcmd))
    5.26 -		    ((and ppcmd (string-match "finish" mes))
    5.27 -		     (insert (format "=======> Success! Calling %s\n" ppcmd))
    5.28 +		    ((and ppcmd (string-match "finish" mes)
    5.29 +			  ;; It is bad way to detect the necessity of
    5.30 +			  ;; pdf-conversion by seeing typesetter name because
    5.31 +			  ;; new typesetter other than lua(la)tex might come.
    5.32 +			  ;; More reasonable way is to determine by the
    5.33 +			  ;; existence of PDF file.
    5.34 +			  (not useluatex))
    5.35 +		     (insert (format "=======>  Success! Calling %s\n" ppcmd))
    5.36  		     (setq mode-name	; set process name
    5.37  			   (concat
    5.38  			    mode-name "+"