I have a presentation with the color for math changed to blue:
\setbeamercolor{math text}{fg=black!15!blue}
Everything looks nice, until I want to recolor part of an equation:
\begin{align*}
x\ y\ z &: A \color{red}\longleftarrow \text{Assumptions}\\
\hline
x &\in \color{red}\underbrace{[x,y,z]}_{\text{Goal}}
\end{align*}
Then it just goes bananas: half of the left arrow is printed in blue, and the brace is totally printed in blue.
Any help will be appreciated.
The entire code:
\documentclass{beamer}
\setbeamercolor{math text}{fg=black!15!blue}
\begin{document}
\begin{frame}
\begin{align*}
x\ y\ z &: A \color{red}\longleftarrow \text{Assumptions}\\
\hline
x &\in \color{red}\underbrace{[x,y,z]}_{\text{Goal}}
\end{align*}
\end{frame}
\end{document}
\mathrel{\text{\color{red}$\longleftarrow$}}
and\text{\color{red}$\underbrace{[x,y,z]}_{\text{Goal}}$}