yatex

changeset 457:428584533eab dev

Enclosing with amsmath envs strips $...$
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 04 May 2017 10:32:22 +0859
parents 7bf780961390
children 1a891f775194
files yatexenv.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/yatexenv.el	Mon Mar 06 17:54:31 2017 +0859
     1.2 +++ b/yatexenv.el	Thu May 04 10:32:22 2017 +0859
     1.3 @@ -1,6 +1,6 @@
     1.4  ;;; yatexenv.el --- YaTeX environment-specific functions
     1.5  ;;; (c) 1994-2017 by HIROSE Yuuji.[yuuji@yatex.org]
     1.6 -;;; Last modified Thu Jan  5 17:45:53 2017 on firestorm
     1.7 +;;; Last modified Thu May  4 10:19:20 2017 on firestorm
     1.8  ;;; $Id$
     1.9  
    1.10  ;;; Code:
    1.11 @@ -391,6 +391,11 @@
    1.12  
    1.13  (fset 'YaTeX-enclose-eqnarray 'YaTeX-enclose-equation)
    1.14  (fset 'YaTeX-enclose-eqnarray* 'YaTeX-enclose-equation)
    1.15 +(mapcar (function	;; Add all AMS LaTeX envs
    1.16 +	 (lambda (sym)
    1.17 +	   (fset (intern (concat "YaTeX-enclose-" (car sym)))
    1.18 +		 'YaTeX-enclose-equation)))
    1.19 +	YaTeX-ams-math-begin-alist)
    1.20  
    1.21  (defun YaTeX-enclose-verbatim (beg end)) ;do nothing when enclose verbatim
    1.22  (fset 'YaTeX-enclose-verbatim* 'YaTeX-enclose-verbatim)