auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Support for "equationarray" and "equationarray*" environment


From: Stefan Pofahl
Subject: [AUCTeX] Support for "equationarray" and "equationarray*" environment
Date: Thu, 21 Oct 2010 14:39:45 +0200

Hello,

I prefer the "equationarray"-environment to typeset my math equations.
I have allready added some support for this enviroment by defining
the "reftex-label-alist" and added the environments to the "LaTeX-mode-hook"
in my "init.el" for xemacs.
Now I want to add the nice feature of correct insertion of fonts,
e.g. C-c C-f C-i should result in "\mathit" rather then "\textit",
this works fine in standard and AMS-math environments, but how can
I add this feature for the "equationarray"-environment?

Regards,

Stefan

---

P.S.:
Here my entries for the "equationarray"-environment that I have already added
to my "init.el"

(setq reftex-label-alist
  '(
     ("equationarray"   ?e "eq:"  "~\\ref{%s}" nil ("equation"
"eqa\\." "eq\\.") )
     ("equationarray*"   ?e "eq:"  "~\\ref{%s}" nil ("equation"
"eqa\\." "eq\\.") )
     ("center"   ?t "tab:"  "~\\ref{%s}" nil ("table"   "tab\\.") )
   )
)
(add-hook 'LaTeX-mode-hook
        (lambda ()
          (LaTeX-add-environments
            '("equationarray" LaTeX-env-array)
            '("equationarray*" LaTeX-env-array)
            '("center" LaTeX-env-array)
           )
         )
)




-- 
Tel.: 0731-3805149
Ochsensteige 48
89075 Ulm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]