Is there a way to make the command \only
work on a block in beamer
?
Or is there another way to make a block appear and then disappear?
Here is a part of my code:
\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage[french]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{moreverb}
\usepackage{listings}
\begin{document}
\begin{frame}[fragile]{Creation des outils principaux}
% - Le titre doit résumer le transparent dans un langage compréhensible
% par tous ceux qui ne suivront rien de ce qu'il y a sur ce transparent.
\begin{itemize}
\item Recuperation des donnees entrées dans le terminal
\only<2>{
\begin{exampleblock}{Opt Parse}
\begin{lstlisting}[firstnumber=0]
import optparse
def parser():
parser = optparse.OptionParser( description = "Dessinateur de fonctions")
parser.add_option('-o', type=str, action = "store",
default="out.ppm", dest="filename",
help='filename. Default : out.ppm')
return parser.parse_args()
if __name__ == '__main__':
(opts, args) = parser()
\end{lstlisting}
\end{exampleblock}
}
\end{itemize}
\end{frame}
\end{document}
block
s afterwards need not start with\only
but with\begin{block}{title}<5->
– Sebastian Apr 14 '13 at 20:39