yatex
diff yatexprc.el @ 410:9ab38ecfd3d1
Default previewer for PDF is taken from %#PDFVIEW instead of %#PREVIEW.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 13 Feb 2015 08:20:12 +0900 |
parents | 2857cac50a67 |
children | 8923ea11c085 |
line diff
1.1 --- a/yatexprc.el Mon Jan 19 09:00:07 2015 +0900 1.2 +++ b/yatexprc.el Fri Feb 13 08:20:12 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 Mon Jan 19 08:35:39 2015 on firestorm 1.8 +;;; Last modified Fri Feb 13 08:07:20 2015 on firestorm 1.9 ;;; $Id$ 1.10 1.11 ;;; Code: 1.12 @@ -959,14 +959,15 @@ 1.13 (defun YaTeX-preview-default-previewer () 1.14 "Return default previewer for this document" 1.15 (YaTeX-replace-format 1.16 - (or (YaTeX-get-builtin "PREVIEW") 1.17 - (if (eq (get 'dvi2-command 'format) 'pdf) 1.18 - tex-pdfview-command 1.19 - dvi2-command)) 1.20 - "p" (format (cond 1.21 - (YaTeX-dos "-y:%s") 1.22 - (t "-paper %s")) 1.23 - (YaTeX-get-paper-type)))) 1.24 + (if (eq (get 'dvi2-command 'format) 'pdf) 1.25 + (or (YaTeX-get-builtin "PDFVIEW") 1.26 + tex-pdfview-command) 1.27 + (or (YaTeX-get-builtin "PREVIEW") 1.28 + dvi2-command)) 1.29 + "p" (format (cond 1.30 + (YaTeX-dos "-y:%s") 1.31 + (t "-paper %s")) 1.32 + (YaTeX-get-paper-type)))) 1.33 (defun YaTeX-preview-default-main (command) 1.34 "Return default preview target file" 1.35 (if (get 'dvi2-command 'region)