Possible Duplicate:
How to color math symbols?
I have an equation: y = 2x + 3. How would I make the 2x red in equation mode in beamer?
Possible Duplicate:
How to color math symbols?
I have an equation: y = 2x + 3. How would I make the 2x red in equation mode in beamer?
\documentclass{beamer}
\usepackage{graphicx}
\author{Kaare Mikkelsen}
\begin{document}
\frame{
\frametitle{Colors}
\begin{equation}
\textcolor{red}{e}=\textcolor{blue}{m}\textcolor{green}{c}^2
\end{equation}
}
\end{document}
if you look into the documentation of the graphicx package (http://ctan.org/pkg/graphicx), you can also define your own colors.
beamer, perhaps coloured math in beamer is a better duplicate. – Peter Grill Feb 09 '12 at 22:36