yatex

diff yatexprc.el @ 130:8703f090c628

`[prefix] t e' for YaTeX-typeset-environment. It automatically mark current inner environment or portion of math mode, then call typeset-region on that region saving it in texput.tex.
author yuuji@gentei.org
date Thu, 27 May 2010 16:37:44 +0900
parents 40b29f7ba3e2
children e117bfc8ce66
line diff
     1.1 --- a/yatexprc.el	Thu May 27 10:27:21 2010 +0900
     1.2 +++ b/yatexprc.el	Thu May 27 16:37:44 2010 +0900
     1.3 @@ -2,7 +2,7 @@
     1.4  ;;; YaTeX process handler.
     1.5  ;;; yatexprc.el
     1.6  ;;; (c)1993-2010 by HIROSE Yuuji.[yuuji@yatex.org]
     1.7 -;;; Last modified Thu May 27 10:26:59 2010 on firestorm
     1.8 +;;; Last modified Thu May 27 14:55:49 2010 on firestorm
     1.9  ;;; $Id$
    1.10  
    1.11  ;(require 'yatex)
    1.12 @@ -279,6 +279,13 @@
    1.13        (put 'dvi2-command 'file buffer)
    1.14        (put 'dvi2-command 'offset lineinfo))))
    1.15  
    1.16 +(defun YaTeX-typeset-environment ()
    1.17 +  "Typeset current math environment"
    1.18 +  (interactive)
    1.19 +  (save-excursion
    1.20 +    (YaTeX-mark-environment)
    1.21 +    (YaTeX-typeset-region)))
    1.22 +
    1.23  (defun YaTeX-typeset-buffer (&optional pp)
    1.24    "Typeset whole buffer.
    1.25  If %#! usage says other buffer is main text,