2013/2/24 Rudra Banerjee <rudra.baner...@aol.co.uk>: > 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 vim-latex, I have a problem > to solve. So, please forgive me cross-posting both in vim-use and > vim-latex
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/why-does-everydisplay-conflict-with-gather-and-multline [4] http://tex.stackexchange.com/questions/37319/how-do-i-get-different-colors-for-math-and-for-text [5] http://tex.stackexchange.com/questions/48191/is-there-a-way-to-color-only-real-math-in-pdflatex ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel