# Beamer example (typeset second screen) does not compile

I'm trying to use the [typeset second] option in a beamer frame as specified by the Beamer User Guide. When I compile with that option, I receive the error Undefined control sequence \end{frame}

I tried compiling the sample from the guide and received the same error. This issue has been reported occasionally but I haven't found a solution. Full code listing (copied directly from the guide):

\documentclass{beamer}
\usepackage{pgfpages}
\setbeameroption{second mode text on second screen}
\begin{document}
\begin{frame}[typeset second]
This text is shown on the left and on the right.
\only<second>{This text is only shown on the right.}
\only<second:0>{This text is only shown on the left.}
\end{frame}
\begin{frame}
This text is shown on the left. The right shows the same as for the
previous frame.
\end{frame}
\begin{frame}[typeset second]
\alt<second>{The \string\alt command is useful for second
{Here comes some normal text for the first slide.}
\end{frame}
\end{document}

-
Your example code compiles OK in my system. Perhaps you are using some outdated package(s)? –  Gonzalo Medina Jun 6 '11 at 0:28
I was also able to compile the document without a problem –  Vivi Jun 6 '11 at 0:40
@Gonzalo Yes, I was using TeXLive 2007, but have now upgraded to the 2010 version. It compiles correctly. I'd put this as the answer now but I can't self-answer for another 4 hours. Thanks! –  Andre Boos Jun 6 '11 at 3:11