%%
%% The LaTeX Graphics Companion, 2ed (first printing May 2007)
%%
%% Example 11-4-15 on page 769.
%%
%% Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%%
%% See
http://www.latex-project.org/lppl.txt for details.
%%
% Show page(s) 3,6
\documentclass{ttctbeamer}
% graphic converted to gray in book
\StartShownPreambleCommands
\documentclass{beamer}
\usetheme{Malmoe} \usecolortheme{dove}
\useoutertheme{sidebar}
\StopShownPreambleCommands
\begin{document}
\begin{frame}
\frametitle{Overlay Environments}
\begin{theorem}<1->[Pythagoras]
\[ 5^2 = 4^2 + 3^2 \]
\end{theorem}
\begin{proof}<2>
\[ 25 = 16 + 9 = 25 \]
\end{proof}
\begin{example}<3>[Derivation]
\begin{align}
f(x) &= \tan x\\
f^\prime &= 1+\tan^2 x
\end{align}
\end{example}
\end{frame}
\begin{frame}
\frametitle{Overlay Environments}
\begin{theorem}<1->[Pythagoras]
\[ 5^2 = 4^2 + 3^2 \]
\end{theorem}
\begin{onlyenv}<2>
\begin{proof}
\[ 25 = 16 + 9 = 25 \]
\end{proof}
\end{onlyenv}
\empty
\begin{example}<3>[Derivation]
\begin{align}
f(x) &= \tan x\\
f^\prime &= 1+\tan^2 x
\end{align}
\end{example}
\end{frame}
\end{document}