yatex
changeset 410:9ab38ecfd3d1 dev
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 | 781604df4cbd |
children | a4a2635c5158 |
files | docs/yatexe.tex docs/yatexj.tex yatex.el yatexprc.el |
diffstat | 4 files changed, 34 insertions(+), 16 deletions(-) [+] |
line diff
1.1 --- a/docs/yatexe.tex Wed Feb 11 11:45:37 2015 +0900 1.2 +++ b/docs/yatexe.tex Fri Feb 13 08:20:12 2015 +0900 1.3 @@ -8,7 +8,7 @@ 1.4 1.5 @iftex 1.6 @c @syncodeindex fn cp 1.7 -@c Last modified Wed Feb 11 11:44:13 2015 on firestorm 1.8 +@c Last modified Fri Feb 13 08:15:26 2015 on firestorm 1.9 @syncodeindex vr cp 1.10 @end iftex 1.11 1.12 @@ -422,12 +422,20 @@ 1.13 La@TeX{} related process. 1.14 1.15 @table @code 1.16 + @item %#PREVIEW 1.17 + @dots{} Command line for DVI viewing ([prefix] t p) 1.18 + @item %#MAKEINDEX 1.19 + @dots{} Command line for makeindex ([prefix] t i) 1.20 @item %#BIBTEX 1.21 - @dots{} Command line for makeindex ([prefix] t i) 1.22 - @item %#MAKEINDEX 1.23 @dots{} Command line for bibtex ([prefix] t b) 1.24 @item %#DVIPDF 1.25 @dots{} Command line for dvipdf(mx) ([prefix] t b) 1.26 + @item %#LPR 1.27 + @dots{} Command line for printing out([prefix] t l) 1.28 + @item %#PDFVIEW 1.29 + @dots{} Command line for PDF viewing 1.30 + @item %#IMAGEDPI 1.31 + @dots{} DPI value for converting to on-the-fly prewview image 1.32 @end table 1.33 1.34 If you want to invoke ``makeidx hogehoge'' to update index,
2.1 --- a/docs/yatexj.tex Wed Feb 11 11:45:37 2015 +0900 2.2 +++ b/docs/yatexj.tex Fri Feb 13 08:20:12 2015 +0900 2.3 @@ -13,7 +13,7 @@ 2.4 @c ノードいじったら C-l C-u C-n 全部のノード更新 C-l C-u C-e 2.5 @c メニュー増やしたら C-l C-u C-m 全部のメニュー更新 C-l C-u C-a 2.6 @c フォーマットするときは C-l C-e C-b 2.7 -@c Last modified Wed Feb 11 11:42:41 2015 on firestorm 2.8 +@c Last modified Fri Feb 13 08:17:31 2015 on firestorm 2.9 @syncodeindex vr cp 2.10 @end iftex 2.11 2.12 @@ -534,12 +534,20 @@ 2.13 La@TeX{} 文書に関連するコマンドは以下の %# 記法で指定することができます。 2.14 2.15 @table @code 2.16 + @item %#PREVIEW 2.17 + @dots{} Command line for DVI viewing ([prefix] t p) 2.18 @item %#BIBTEX 2.19 @dots{} makeindexを行なうコマンドライン([prefix] t b) 2.20 @item %#MAKEINDEX 2.21 @dots{} bibtexを行なうコマンドライン([prefix] t i) 2.22 @item %#DVIPDF 2.23 @dots{} DVIからPDF変換を行なうコマンドライン([prefix] t d) 2.24 + @item %#LPR 2.25 + @dots{} 印刷用のコマンドライン([prefix] t l) 2.26 + @item %#PDFVIEW 2.27 + @dots{} PDFファイルを見るためのコマンドライン 2.28 + @item %#IMAGEDPI 2.29 + @dots{} 即時プレヴュー(on-the-fly preview)用の画像のDPI 2.30 @end table 2.31 2.32 行頭がこれらのキーワードで始まる行をLa@TeX{}文書の先頭付近に書いておけば、
3.1 --- a/yatex.el Wed Feb 11 11:45:37 2015 +0900 3.2 +++ b/yatex.el Fri Feb 13 08:20:12 2015 +0900 3.3 @@ -1,6 +1,6 @@ 3.4 ;;; yatex.el --- Yet Another tex-mode for emacs //野鳥// -*- coding: sjis -*- 3.5 ;;; (c)1991-2015 by HIROSE Yuuji.[yuuji@yatex.org] 3.6 -;;; Last modified Wed Feb 11 11:40:20 2015 on firestorm 3.7 +;;; Last modified Fri Feb 13 08:11:15 2015 on firestorm 3.8 ;;; $Id$ 3.9 ;;; The latest version of this software is always available at; 3.10 ;;; http://www.yatex.org/ 3.11 @@ -1676,17 +1676,18 @@ 3.12 "Operate %# notation." 3.13 ;;Do not use interactive"r" for the functions which require no mark 3.14 (interactive) 3.15 - (message "!)Edit-%%#! D)VIPDF B)EGIN-END-region P)review L)PR M)akeidx b)ibtex dp(I)") 3.16 + (message "!)Edit-%%#! D)VIPDF B)EGIN-END P)review pdf(V)iew L)PR M)akeidx b)ibtex dp(I)") 3.17 (let ((c (or char (read-char))) (string "") key 3.18 (b (make-marker)) (e (make-marker))) 3.19 (save-excursion 3.20 (cond 3.21 - ((rindex "!plmibd" c) ;Edit %#xxx 3.22 + ((rindex "!plmibdv" c) ;Edit %#xxx 3.23 (setq key (cdr (assq c '((?! . "!") 3.24 (?p . "PREVIEW") 3.25 (?l . "LPR") 3.26 (?m . "MAKEINDEX") 3.27 (?d . "DVIPDF") 3.28 + (?v . "PDFVIEW") 3.29 (?i . "IMAGEDPI") 3.30 (?b . "BIBTEX"))))) 3.31 (YaTeX-getset-builtin key t))
4.1 --- a/yatexprc.el Wed Feb 11 11:45:37 2015 +0900 4.2 +++ b/yatexprc.el Fri Feb 13 08:20:12 2015 +0900 4.3 @@ -1,7 +1,7 @@ 4.4 ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*- 4.5 ;;; 4.6 ;;; (c)1993-2015 by HIROSE Yuuji.[yuuji@yatex.org] 4.7 -;;; Last modified Mon Jan 19 08:35:39 2015 on firestorm 4.8 +;;; Last modified Fri Feb 13 08:07:20 2015 on firestorm 4.9 ;;; $Id$ 4.10 4.11 ;;; Code: 4.12 @@ -959,14 +959,15 @@ 4.13 (defun YaTeX-preview-default-previewer () 4.14 "Return default previewer for this document" 4.15 (YaTeX-replace-format 4.16 - (or (YaTeX-get-builtin "PREVIEW") 4.17 - (if (eq (get 'dvi2-command 'format) 'pdf) 4.18 - tex-pdfview-command 4.19 - dvi2-command)) 4.20 - "p" (format (cond 4.21 - (YaTeX-dos "-y:%s") 4.22 - (t "-paper %s")) 4.23 - (YaTeX-get-paper-type)))) 4.24 + (if (eq (get 'dvi2-command 'format) 'pdf) 4.25 + (or (YaTeX-get-builtin "PDFVIEW") 4.26 + tex-pdfview-command) 4.27 + (or (YaTeX-get-builtin "PREVIEW") 4.28 + dvi2-command)) 4.29 + "p" (format (cond 4.30 + (YaTeX-dos "-y:%s") 4.31 + (t "-paper %s")) 4.32 + (YaTeX-get-paper-type)))) 4.33 (defun YaTeX-preview-default-main (command) 4.34 "Return default preview target file" 4.35 (if (get 'dvi2-command 'region)