
私はこれまで、数式モードですべてのテキストを青色にしていました\setbeamercolor{math text}{fg=blue}
。しかし、タイトル (およびサブタイトル) にも数式が含まれているため、数式の色を青ではなくタイトルと同じ色にしたいのです。
答え1
beamer
には、数式の色付けを削除するコマンドがあります\donotcoloroutermaths
。以下の例のように、これをタイトルのテンプレートに挿入できます。red
デモではわかりやすくするために、これを数式の色として使用しています。
\documentclass{beamer}
\setbeamercolor{math text}{fg=red}
\addtobeamertemplate{frametitle}{\donotcoloroutermaths}
\begin{document}
\begin{frame}
\frametitle{A title with $x=y$ maths}
Text and maths \( y=z \).
\end{frame}
\end{document}