4

Considering the following TeX code:

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes}

\begin{document}
\begin{frame}
  \begin{figure}
    \begin{tikzpicture}
      \node (A) [draw=blue] {Text1};
      \node (B) [draw=yellow] {Text2};
    \end{tikzpicture}
  \end{figure}
\end{frame}
\end{document}

How can one put a pause after the appearance of node 'A' and at any key press or mouse click, node 'B' should appear.

Shahzad
  • 1,297
  • 14
  • 19

1 Answers1

2

You can just use \pause normally:

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{shapes}

\begin{document}
\begin{frame}
  \begin{figure}
    \begin{tikzpicture}
      \node (A) [draw=blue] {Text1};
      \pause
      \node (B) [draw=yellow, below of=A] {Text2};
    \end{tikzpicture}
  \end{figure}
\end{frame}
\end{document}

I have placed node B below node A, whereas you had them on top of each other.

enter image description here