I have been reading the source code for the template: https://www.overleaf.com/latex/templates/beamer-arrows/wmqkckggvjsd which clearly shows that path supports overlays, so you can have edges on certain slides only.

However I needed the same with \draw and doing something like \draw<2-> doesn't work (compile error). Do overlays not work with draw? Where do I find an exhaustive list of overlays friendly tikz commands?


2 Answers 2


I'm not sure I understand the question. But there is a special library for doing TikZ overlays in beamer: aobs. In addition, you can always work with \only.

\frametitle{An example}
\node[background fill=red!50,%
fill on=<2>,%
rounded corners,%
] (koala) {koala bear};
\node[right=3cm of koala,
background fill=blue!50,%
fill on=<3>,%
rounded corners,%
] (marmot) {marmot};
\draw[-latex] (koala) -- (marmot) node[midway,above]{envy};
\draw[latex-] (koala) -- (marmot) node[midway,above]{like};

enter image description here


Till Tantau being the creator of BEAMER and Tikz-PGF the overlay work with tikz. Just add the overlay specification after the command name.

For example, here to make the transparency visible on the second and all subsequent images: draw<2->(0,0)--(2,0);

If you had a compilation error it is not from the overlay placed on the \draw command. I place overlays on almost all my slideshows with tikz and I haven't had a compilation error yet.

Give a minimal example so that this error can be reproduced and corrected.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .