Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- a/yatexenv.el Mon Mar 06 17:54:31 2017 +0859 +++ b/yatexenv.el Thu May 04 10:32:22 2017 +0859 @@ -1,6 +1,6 @@ ;;; yatexenv.el --- YaTeX environment-specific functions ;;; (c) 1994-2017 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Thu Jan 5 17:45:53 2017 on firestorm +;;; Last modified Thu May 4 10:19:20 2017 on firestorm ;;; $Id$ ;;; Code: @@ -391,6 +391,11 @@ (fset 'YaTeX-enclose-eqnarray 'YaTeX-enclose-equation) (fset 'YaTeX-enclose-eqnarray* 'YaTeX-enclose-equation) +(mapcar (function ;; Add all AMS LaTeX envs + (lambda (sym) + (fset (intern (concat "YaTeX-enclose-" (car sym))) + 'YaTeX-enclose-equation))) + YaTeX-ams-math-begin-alist) (defun YaTeX-enclose-verbatim (beg end)) ;do nothing when enclose verbatim (fset 'YaTeX-enclose-verbatim* 'YaTeX-enclose-verbatim)