diff --git a/yatex.new b/yatex.new index 778224c..0c9141d 100644 --- a/yatex.new +++ b/yatex.new @@ -9,6 +9,7 @@ �������� On-the-fly preview �̖������͉����Ȃ��ꏊ�� [prefix] k�B YaTeX-help-file �̃f�t�H���g�ʒu�� site-lisp/yatex/help/ �ɕύX�B �̈抈�����ɌĂяo���⊮�͗̈抇��ɂȂ�悤�ɂ����B + �^�C�v�Z�b�g��PDF�o�͂����肻���ȂƂ��͎���preview��PDF�����[�A�ɁB === yahtml === �̈抈�����ɌĂяo���⊮�͗̈抇��ɂȂ�悤�ɂ����B ... diff --git a/yatexprc.el b/yatexprc.el index b5649ea..89c5d34 100644 --- a/yatexprc.el +++ b/yatexprc.el @@ -1,7 +1,7 @@ ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*- ;;; ;;; (c)1993-2015 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Sun Jan 18 23:17:57 2015 on firestorm +;;; Last modified Mon Jan 19 08:35:39 2015 on firestorm ;;; $Id$ ;;; Code: @@ -299,7 +299,16 @@ 'YaTeX-typeset-sentinel)) (t (if (equal 0 (process-exit-status proc)) - nil ;do nothing at successful exit + ;; Successful typesetting done + (if (save-excursion + (re-search-backward + (concat + "^Output written on .*\\.pdf (.*page," + "\\|\\.dvi -> .*\\.pdf$") + nil t)) + ;; If PDF output log found in buffer, + ;; set next default previewer to 'pdf viewer + (put 'dvi2-command 'format 'pdf)) ;;Confirm process buffer to be shown when error (YaTeX-showup-buffer pbuf 'YaTeX-showup-buffer-bottom-most)