2013/2/24 Rudra Banerjee <rudra.banerjee@...>:
> In my preamble, I have
> \everymath{\color{pmsGreen}}
> \setbeamercolor{normal text}{fg=pms286}
>
> Now, if I write something in inline mathmode ($$), its following
> \everymath; but if it is inside equation environment, its just in normal
> text.
>
> eg,
> \begin{equation}
> A=B
> \end{equation}
> $A=J$
> in this block, A=B is in pms286 color, A=J is in pmsGreen.
>
> What should I do?
>
> NB:Though it is not really associated with vimlatex, I have a problem
> to solve. So, please forgive me crossposting both in vimuse and
> vimlatex
Actually, this isn't vim related at all. You would be better off
looking in some LaTeX related forum, like the one on StackExchange
[1]. Still, here are a few pointers, though it doesn't seem to be a
trivial task to achieve what you want (at least if you use any amsmath
display environments).
 It seems that the '\everymath' command works only for inline math
mode [2], while '\everydisplay' works, well, for display math mode.
 It looks like the '\everydisplay' command doesn't play well with (at
least) some amsmath display environments [3] [4].
 Moreover, something not directly math related seems to be using math
mode, too, so '\everymath' could colour more things than you expect
it to [5].
These are just my two cents, based on a quick search. Hope it helps.
Alessandro
[1] http://tex.stackexchange.com/
[2] https://en.wikibooks.org/wiki/TeX/everymath
[3] http://tex.stackexchange.com/questions/13592/whydoeseverydisplayconflictwithgatherandmultline
[4] http://tex.stackexchange.com/questions/37319/howdoigetdifferentcolorsformathandfortext
[5] http://tex.stackexchange.com/questions/48191/isthereawaytocoloronlyrealmathinpdflatex
