6

I would like to change the normal text color in a beamer frame with different colors for different frames. In the following example, the frame title color seems to change correctly, but not the normal text color.

\documentclass{beamer}

\title{Example}

\setbeamercolor{normal text}{fg=green}
\setbeamercolor{frametitle}{fg=green}

\begin{document}

\setbeamercolor{normal text}{fg=red}
\setbeamercolor{frametitle}{fg=red}
\begin{frame}
  \frametitle{Red Title}
  Some text in red
\end{frame}

\setbeamercolor{normal text}{fg=blue}
\setbeamercolor{frametitle}{fg=blue}
\begin{frame}
  \frametitle{Blue Title}
  Some text in blue
\end{frame}

\end{document}

page 1 page 2

  • 2
    Try \usebeamercolor[fg]{normal text} after \setbeamercolor{...} etc – user31729 Apr 15 '15 at 16:46
  • 1
    That seems to work. Why doesn't this get applied automatically? – oneself Apr 15 '15 at 17:42
7

Formalizing based on Christian's comment as an answer.

I added \usebeamercolor[fg]{normal text} as following:

\setbeamercolor{normal text}{fg=red}
\setbeamercolor{frametitle}{fg=red}
\usebeamercolor[fg]{normal text}
\begin{frame}
  \frametitle{Red Title}
  Some text in red
\end{frame}
| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.