I try to put some code inside a
\framebox
and also use overlay specification in beamer but fail to get them to work together. Any suggestion is appreciated.
Code: Select all
\documentclass[compress]{beamer}
\setbeamertemplate{navigation symbols}{}
\begin{document}
\begin{frame}[fragile]
Some code here
\begin{semiverbatim}
\only<2>{\framebox[0.5\textwidth]{\textcolor{blue}{[begin]}
Hello World!
\textcolor{blue}{[end]}}}
\end{semiverbatim}
\end{frame}
\end{document}