0

Consider the following presentation.

enter image description here

This presentation was generated with the following code.

\documentclass{beamer}

\usepackage{tikz}

\begin{document}

\begin{frame}{Frame \thepage}

  Page text.
  \[
    \begin{tikzpicture}

      \draw<2->[ultra thick] circle (2cm);

    \end{tikzpicture}
  \]

\end{frame}

\end{document}

This presentation is not quite what I want. I'd like the "Page text." to remain in the same place on every slide. This can be accomplished by changing \draw<2->[ultra thick] circle (2cm); to \onslide<2->{\draw[ultra thick] circle (2cm);}.

I'd like to find an alternate solution by keeping the \draw<> syntax. Is this possible?

For clarity, I want my presentation to look like this.

enter image description here

2
  • You can use the visible on key from the overlay-beamer-styles TikZ library to avoid jumps.
    – user228539
    Commented Nov 19, 2020 at 18:13
  • @abcdefg Excellent! Thanks. Commented Nov 19, 2020 at 18:16

1 Answer 1

2

You can use [t] to top-align the contents of the frame and/or use the visible on key from the overlay-beamer-styles TikZ library to avoid jumps.

\documentclass{beamer}

\usepackage{tikz}
\usetikzlibrary{overlay-beamer-styles}
\begin{document}

\begin{frame}[t]
\frametitle{Frame \thepage}

  Page text.
  \[
    \begin{tikzpicture}

      \draw<2->[->, ultra thick] circle[radius=2cm];

    \end{tikzpicture}
  \]

\end{frame}


\begin{frame}
\frametitle{Frame \thepage}

  Page text.
  \[
    \begin{tikzpicture}

      \draw[->,visible on=<2->,ultra thick] circle[radius=2cm];

    \end{tikzpicture}
  \]

\end{frame}
\end{document}

enter image description here

2
  • Is there documentation for overlay-beamer-styles? I have several headaches that I suspect can be solved with this library but can't easily find documentation. Commented Nov 19, 2020 at 18:23
  • 1
    @BrianFitzpatrick Yes. texdoc aobs. Why aobs? Because it works. ;-)
    – user228539
    Commented Nov 19, 2020 at 18:25

You must log in to answer this question.

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