Possible Duplicate:
\pause won't generate extra slides in a containsverbatim frame
I use lstlisting environments in my beamer frames, but I would also like to have blocks with showing/hidden options like <2>, <1-3>, etc. With the following code, only the first version of the frame is displayed (with only the first block). Is there a way to make the hidden/shown block options work when the [containsverbatim] option is active?
\begin{frame}[containsverbatim]
\begin{block}{}
\begin{lstlisting}
blah blah blah
\end{lstlisting}
\end{block}
\begin{block}<2>{}
\begin{lstlisting}
blah blah blah
\end{lstlisting}
\end{block}
\end{frame}
containsverbatim: it is a historical overhang and is not in the documentation for a reason. The correct option isfragile. – Joseph Wright♦ Aug 28 '12 at 19:09