Dear Latex-Crowd,
I try to color parts of an equation differently. Say: D=A+B+C and would like A be in red, B in blue and so on.
Your help would be appreciated.
Steffen
Document Classes ⇒ Beamer: How to color parts of equation?
NEW: TikZ book now 40% off at Amazon.com for a short time.

Beamer: How to color parts of equation?
Hi,
It doesn't seem to be (at least for me) an aesthetically pleasant option, but you can use the \textcolor and \color commands, as the following example suggests:
Refer to the xcolor package documentation for further information.
It doesn't seem to be (at least for me) an aesthetically pleasant option, but you can use the \textcolor and \color commands, as the following example suggests:
Code: Select all
Code, edit and compile here:
\documentclass{beamer}\begin{document}\begin{frame}\begin{equation}\textcolor{blue}{A}\color{green}=\textcolor{red}{B}\color{purple}+\textcolor{yellow}{C}\normalcolor.\end{equation}\end{frame}\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...