Document Classes ⇒ Beamer: How to color parts of equation?
-
- Posts: 1
- Joined: Thu Feb 26, 2009 12:23 pm
Beamer: How to color parts of equation?
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Beamer: How to color parts of equation?
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
\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}