In beamer, when I try to reference a node outside the current picture but inside an overprint-environment, like this,
\documentclass[12pt]{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\begin{overprint}
\begin{tikzpicture}[remember picture]
\node<1->[draw] (xxx) at (0,0) {Spam};
\node<2->[draw] (yyy) at (1, 1) {Eggs};
\end{tikzpicture}
Some text, tra la la.
\tikz<2>[remember picture] \draw[overlay,->] (xxx.north) -- (yyy.south);
\end{overprint}
\end{frame}
\end{document}
and compiling with pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011), using beamer 2011/09/12 development version 3.12, tikz 2010/10/13 v2.10 (rcs-revision 1.76), I receive the following error message:
! Package pgf Error: No shape named yyy is known.
My questions:
- Is it possible to refer to a node inside an
overprint-environment? - If yes, how?
- If no, is this a fundamental limitation, or a limitation to the current implementation?
- Why is this?
Related but different questions:
overprintenvironment and replace it with:\begin{tikzpicture}[remember picture] \node<1->[draw] (xxx) at (0,0) {Spam}; \node<2->[draw] (yyy) at (1, 1) {Eggs}; \draw<2>[overlay,->] (xxx.north) -- (yyy.south); \end{tikzpicture} Some text, tra la la.– percusse Nov 30 '11 at 18:11