I'm preparing a beamer
presentation to show some basic TikZ
stuff. I would like to have a two columns slide, where on the left I have the TikZ figure, and on the right the generating code. BUT, I also want the code to be uncovered set by step, that is, whenever a feature of the figure is uncovered, I want the corresponding piece of code to be uncovered.
Something like:
\begin{frame}[fragile]
\begin{minipage}{0.10\linewidth}
\begin{center}
\begin{tikzpicture}
\draw<1-> (-1.5,0) -- (1.5,0);
\draw<2-> (0,-1.5) -- (0,1.5);
\end{tikzpicture}
\end{center}
\end{minipage}
\begin{minipage}{0.85\linewidth}
\begin{verbatim}
\begin{tikzpicture}
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\end{tikzpicture}
\end{verbatim}
\end{minipage}
\end{frame}
The problem is that I couldn't neither manage to use the uncover
inside the verbatim
nor use the verbatim
inside an uncover
...
What is the right practice?