# change math color except in titles in beamer

I have used \setbeamercolor{math text}{fg=blue} to turn all my text in mathmode in blue. However I have also math in titles (and subtitles) and I would prefer the formulas to have the same color as the titles instead of blue.

• Welcome to TeX.SX!. Do you need both inline math and display math in blue color? – karlkoeller Mar 26 '14 at 15:19
• Yes, I need inline and display math in blue color. But not in the titles... Thanks for the welcom. – sylviel Mar 26 '14 at 19:51

beamer has a command \donotcoloroutermaths to remove math coloring. You can insert this into the template for titles as in the example below. I use red as the maths color for better clarity in the demonstration.

\documentclass{beamer}

\setbeamercolor{math text}{fg=red}

\frametitle{A title with $x=y$ maths}
Text and maths $$y=z$$.