diff --git a/docs/yatexe.tex b/docs/yatexe.tex index b2736e3..0fa9197 100644 --- a/docs/yatexe.tex +++ b/docs/yatexe.tex @@ -8,7 +8,7 @@ @iftex @c @syncodeindex fn cp -@c Last modified Wed Feb 11 11:44:13 2015 on firestorm +@c Last modified Fri Feb 13 08:15:26 2015 on firestorm @syncodeindex vr cp @end iftex @@ -422,12 +422,20 @@ La@TeX{} related process. @table @code - @item %#BIBTEX - @dots{} Command line for makeindex ([prefix] t i) + @item %#PREVIEW + @dots{} Command line for DVI viewing ([prefix] t p) @item %#MAKEINDEX + @dots{} Command line for makeindex ([prefix] t i) + @item %#BIBTEX @dots{} Command line for bibtex ([prefix] t b) @item %#DVIPDF @dots{} Command line for dvipdf(mx) ([prefix] t b) + @item %#LPR + @dots{} Command line for printing out([prefix] t l) + @item %#PDFVIEW + @dots{} Command line for PDF viewing + @item %#IMAGEDPI + @dots{} DPI value for converting to on-the-fly prewview image @end table If you want to invoke ``makeidx hogehoge'' to update index, diff --git a/docs/yatexj.tex b/docs/yatexj.tex index 72fd94f..26eb794 100644 --- a/docs/yatexj.tex +++ b/docs/yatexj.tex @@ -13,7 +13,7 @@ @c �m�[�h���������� C-l C-u C-n �S���̃m�[�h�X�V C-l C-u C-e @c ���j���[���₵���� C-l C-u C-m �S���̃��j���[�X�V C-l C-u C-a @c �t�H�[�}�b�g����Ƃ��� C-l C-e C-b -@c Last modified Wed Feb 11 11:42:41 2015 on firestorm +@c Last modified Fri Feb 13 08:17:31 2015 on firestorm @syncodeindex vr cp @end iftex @@ -534,12 +534,20 @@ La@TeX{} �����Ɋ֘A����R�}���h�͈ȉ��� %# �L�@�Ŏw�肷�邱�Ƃ��ł��܂��B @table @code + @item %#PREVIEW + @dots{} Command line for DVI viewing ([prefix] t p) @item %#BIBTEX @dots{} makeindex���s�Ȃ��R�}���h���C��([prefix] t b) @item %#MAKEINDEX @dots{} bibtex���s�Ȃ��R�}���h���C��([prefix] t i) @item %#DVIPDF @dots{} DVI����PDF�ϊ����s�Ȃ��R�}���h���C��([prefix] t d) + @item %#LPR + @dots{} ����p�̃R�}���h���C��([prefix] t l) + @item %#PDFVIEW + @dots{} PDF�t�@�C�������邽�߂̃R�}���h���C�� + @item %#IMAGEDPI + @dots{} �����v�������[(on-the-fly preview)�p�̉摜��DPI @end table �s���������̃L�[���[�h�Ŏn�܂�s��La@TeX{}�����̐擪�t�߂ɏ����Ă����΁A diff --git a/yatex.el b/yatex.el index f174f9b..d133fe4 100644 --- a/yatex.el +++ b/yatex.el @@ -1,6 +1,6 @@ ;;; yatex.el --- Yet Another tex-mode for emacs //�쒹// -*- coding: sjis -*- ;;; (c)1991-2015 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Wed Feb 11 11:40:20 2015 on firestorm +;;; Last modified Fri Feb 13 08:11:15 2015 on firestorm ;;; $Id$ ;;; The latest version of this software is always available at; ;;; http://www.yatex.org/ @@ -1676,17 +1676,18 @@ "Operate %# notation." ;;Do not use interactive"r" for the functions which require no mark (interactive) - (message "!)Edit-%%#! D)VIPDF B)EGIN-END-region P)review L)PR M)akeidx b)ibtex dp(I)") + (message "!)Edit-%%#! D)VIPDF B)EGIN-END P)review pdf(V)iew L)PR M)akeidx b)ibtex dp(I)") (let ((c (or char (read-char))) (string "") key (b (make-marker)) (e (make-marker))) (save-excursion (cond - ((rindex "!plmibd" c) ;Edit %#xxx + ((rindex "!plmibdv" c) ;Edit %#xxx (setq key (cdr (assq c '((?! . "!") (?p . "PREVIEW") (?l . "LPR") (?m . "MAKEINDEX") (?d . "DVIPDF") + (?v . "PDFVIEW") (?i . "IMAGEDPI") (?b . "BIBTEX"))))) (YaTeX-getset-builtin key t)) diff --git a/yatexprc.el b/yatexprc.el index 89c5d34..2d926ce 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 Mon Jan 19 08:35:39 2015 on firestorm +;;; Last modified Fri Feb 13 08:07:20 2015 on firestorm ;;; $Id$ ;;; Code: @@ -959,14 +959,15 @@ (defun YaTeX-preview-default-previewer () "Return default previewer for this document" (YaTeX-replace-format - (or (YaTeX-get-builtin "PREVIEW") - (if (eq (get 'dvi2-command 'format) 'pdf) - tex-pdfview-command - dvi2-command)) - "p" (format (cond - (YaTeX-dos "-y:%s") - (t "-paper %s")) - (YaTeX-get-paper-type)))) + (if (eq (get 'dvi2-command 'format) 'pdf) + (or (YaTeX-get-builtin "PDFVIEW") + tex-pdfview-command) + (or (YaTeX-get-builtin "PREVIEW") + dvi2-command)) + "p" (format (cond + (YaTeX-dos "-y:%s") + (t "-paper %s")) + (YaTeX-get-paper-type)))) (defun YaTeX-preview-default-main (command) "Return default preview target file" (if (get 'dvi2-command 'region)