3

I'd like to produce colored lecture slides for an actual presentation, and a black-and-white version as a handout.

I have specified different color themes for presentation and handout mode, respectively. I suppose this should work in principle; for instance, the beamer documentation gives an example of a mode-specific theme on page 207:

\mode<'presentation>{\usetheme{Berlin}}

Then again, the documentation also states, in section "21.3 Details on Modes",

The ⟨text⟩ should not do anything fancy that involves mode switches or including other files

(p. 210), so I'm not sure that I'm handling the use of color schemes the right way.

Here's a MWE of what I do:

\documentclass[handout]{beamer}

\usetheme{Boadilla}

\mode<presentation>{\usecolortheme{spruce}}
\mode<handout>{\usecolortheme{seagull}}

\begin{document}
\begin{frame}
\frametitle{It Ain't Easy Being Green}
Green, or not too green, that is the question.
\end{frame}
\end{document}

When I leave out the handout option in the documentclass statement, the output is as desired:

enter image description here

However, when I compile with the handout option included, there's still a green frame title bar:

enter image description here

When I comment out the line \mode<presentation>{\usecolortheme{spruce}}, the output is as desired in handout mode:

enter image description here

Am I asking too much from the mode feature, or is this a bug?

4

The presentation mode includes the modes beamer, trans and handout. So if you don't want the colour theme in handout, use the beamer mode.

\documentclass[handout]{beamer}

\usetheme{Boadilla}

\mode<beamer>{\usecolortheme{spruce}}
\mode<handout>{\usecolortheme{seagull}}

\begin{document}
\begin{frame}
\frametitle{It Ain't Easy Being Green}
Green, or not too green, that is the question.
\end{frame}
\end{document}
  • Thanks a lot! I guess I should've kept on reading page 210... – Turtle Apr 25 '18 at 11:53
  • @Turtle It is also on page 88 :) – user36296 Apr 25 '18 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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