yatex
diff yatexprc.el @ 409:781604df4cbd
New variables: YaTeX-electric-indent-mode, yahtml-electric-indent-mode
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 11 Feb 2015 11:45:37 +0900 |
parents | acfa7d11b5c3 |
children | 9ab38ecfd3d1 |
line diff
1.1 --- a/yatexprc.el Sun Jan 18 23:24:41 2015 +0900 1.2 +++ b/yatexprc.el Wed Feb 11 11:45:37 2015 +0900 1.3 @@ -1,7 +1,7 @@ 1.4 ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*- 1.5 ;;; 1.6 ;;; (c)1993-2015 by HIROSE Yuuji.[yuuji@yatex.org] 1.7 -;;; Last modified Sun Jan 18 23:17:57 2015 on firestorm 1.8 +;;; Last modified Mon Jan 19 08:35:39 2015 on firestorm 1.9 ;;; $Id$ 1.10 1.11 ;;; Code: 1.12 @@ -299,7 +299,16 @@ 1.13 'YaTeX-typeset-sentinel)) 1.14 (t 1.15 (if (equal 0 (process-exit-status proc)) 1.16 - nil ;do nothing at successful exit 1.17 + ;; Successful typesetting done 1.18 + (if (save-excursion 1.19 + (re-search-backward 1.20 + (concat 1.21 + "^Output written on .*\\.pdf (.*page," 1.22 + "\\|\\.dvi -> .*\\.pdf$") 1.23 + nil t)) 1.24 + ;; If PDF output log found in buffer, 1.25 + ;; set next default previewer to 'pdf viewer 1.26 + (put 'dvi2-command 'format 'pdf)) 1.27 ;;Confirm process buffer to be shown when error 1.28 (YaTeX-showup-buffer 1.29 pbuf 'YaTeX-showup-buffer-bottom-most)