I am trying to define math text is some predefined color as in my preamble:
\setbeamercolor{math text}{pmsGreen}
\everymath{\color{pmsGreen}}
\everydisplay{\relax \ifx \\\@eqncr \else \color{pmsGreen}\fi }
NB: I have not understood the last line, just found it somewhere.
But the problem is while mathmode is in pmsGreen, text inside eqnarray is still in default color.
How can I manage this?
EDIT: A minimal example:
\documentclass[10pt,a4paper,xcolor=dvipsnames,xcolor=table]{beamer}
\definecolor{pmsGreen}{RGB}{0,156,121}
\mode<presentation>
{
\usetheme{Darmstadt}
\usetheme{Warsaw}
\setbeamercovered{transparent}
}
\setbeamercolor{math text}{pmsGreen}
\everymath{\color{pmsGreen}}
\everydisplay{\relax \ifx \\\@eqncr \else \color{pmsGreen}\fi }
\DeclareMathOperator{\Tr}{Tr}
\DeclareMathOperator{\im}{Im}
\begin{document}
$1=2$
\begin{eqnarray}
1=2\\
2=3
\end{eqnarray}
\end{document}
NB: I have seen examples where the sample code shows the output as well, dont know how to do that.
Best Answer
Quoting the manual:
So, you have to exploit:
to have also equations in
align
colored (avoid using eqnarray, see eqnarray vs align).An example:
The result: