I'm using beamer for creating presentations. Inside a TikZ node I'd like to make a part of the content appears afterwards. I'm using the \visible command for doing so (I don't want the content to move when the hidden part is made visible).
Here's a small example:
\documentclass{beamer}
\usepackage{tikz}\begin{document}
\begin{frame}
\visible<+->{You know\dots}
\begin{tikzpicture}
\node{I'm \visible<+->{very} happy. };
\end{tikzpicture}
\end{frame}
\end{document}
The compilation fails on a classic TikZ error Giving up on this path. Did you forget a semicolon?. However if I replace \visible by \only or \alt the output is produced flawlessly. But that's not what I want :)
There's a possible workaround which consists in defining a new visible command, based on \alt:
\newcommand<>\myvisible[1]{\alt#2{#1}{\phantom{#1}}}
But \phantom may have some undesirable side effects (with line breaks for example).
Do you have any better solution? Thanks!
\node[align=center]{{a\\b}};doesn't compile. Should I ask another question on that issue? – mikael-s Jul 20 '12 at 19:47\node[align=center] {I'm {\visible<+->{very}}\\happy.};. Just don't have\visiblespanning two lines. – nickpapior Jul 22 '12 at 15:31