15

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 changes 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
  • 2
    Try \usebeamercolor[fg]{normal text} after \setbeamercolor{...} etc
    – user31729
    Commented Apr 15, 2015 at 16:46
  • 2
    That seems to work. Why doesn't this get applied automatically?
    – oneself
    Commented Apr 15, 2015 at 17:42

1 Answer 1

15

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}
1
  • Just a heads up, this answer is more complete than the accepted answer. Also, it looks like the duplicate (tex.stackexchange.com/questions/61497/…) mark might be in error. That question was never really answered; This question/answer, however, actually tells you the Beamer styling syntax to configure slide text color. If anything, I wonder if that other question should be re-labelled as a duplicate of this one (if we're going to optimal quality)
    – MRule
    Commented Aug 1, 2022 at 11:25

Not the answer you're looking for? Browse other questions tagged .