diff yatexprc.el @ 130:8703f090c628 dev

`[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 wrap: on
line diff
--- a/yatexprc.el	Thu May 27 13:49:44 2010 +0900
+++ b/yatexprc.el	Thu May 27 16:37:44 2010 +0900
@@ -2,7 +2,7 @@
 ;;; YaTeX process handler.
 ;;; yatexprc.el
 ;;; (c)1993-2010 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Thu May 27 10:26:59 2010 on firestorm
+;;; Last modified Thu May 27 14:55:49 2010 on firestorm
 ;;; $Id$
 
 ;(require 'yatex)
@@ -279,6 +279,13 @@
       (put 'dvi2-command 'file buffer)
       (put 'dvi2-command 'offset lineinfo))))
 
+(defun YaTeX-typeset-environment ()
+  "Typeset current math environment"
+  (interactive)
+  (save-excursion
+    (YaTeX-mark-environment)
+    (YaTeX-typeset-region)))
+
 (defun YaTeX-typeset-buffer (&optional pp)
   "Typeset whole buffer.
 If %#! usage says other buffer is main text,

yatex.org