Presentations and Posters

Step-by-Step Reveals in Beamer with \pause and \only

Reveal Beamer content line by line with the pause command, incremental lists, and overlay specifications, and compare only with uncover for hidden text.

On this page
  1. Quick answer
  2. How overlays work
  3. Reveal text with \pause
  4. Reveal list items one by one
  5. Hide or reserve space: \only, \uncover and \alert
  6. Keep the layout stable with overprint
  7. Common mistakes

Quick answer

To make content appear one step at a time in Beamer, put \pause between the parts you want to reveal. To reveal list items one at a time, add [<+->] to the list. Use \only or \uncover when content should show on one specific step.

How overlays work

Beamer creates one PDF page for each overlay step. A frame with three steps becomes three pages, and a PDF viewer moves through them one at a time. Each page shows everything that is visible on that step. Compile with pdflatex as usual.

Reveal text with \pause

\pause starts a new step. Everything before it stays on screen, and everything after it appears on the next step:

\begin{frame}{Method}
  First, we define the terms.
  \pause
  Then we state the theorem.
  \pause
  Finally, we give an example.
\end{frame}

This frame becomes three pages. \pause also works between items in a list.

Reveal list items one by one

For a list in which each item should appear on its own step, add [<+->] to the list environment:

\begin{frame}{Key points}
  \begin{itemize}[<+->]
    \item Overlay specifications control visibility
    \item Each item appears on its own step
    \item Earlier items stay on screen
  \end{itemize}
\end{frame}

The + in <+-> moves the step number forward by one for each item. Once an item appears, it stays visible, so the audience keeps the full list in view.

Set the step for each item

To choose the step for each item yourself, add an overlay specification to the item. <2-> shows an item from step 2 onward. <2-3> shows it on steps 2 and 3 only. <1,3> shows it on steps 1 and 3:

\begin{frame}{Custom steps}
  \begin{itemize}
    \item<1-> Shown from the first step
    \item<2-3> Shown on steps two and three
    \item<4-> Shown from the fourth step
  \end{itemize}
\end{frame}

Hide or reserve space: \only, \uncover and \alert

These commands take an overlay specification in angle brackets. The first two differ in what happens to the space the hidden text would take:

Command What it does Space when hidden
\only<2>{...} Shows the text on the given steps Not reserved, so text below moves up
\uncover<2>{...} Shows the text on the given steps Reserved, so text below stays in place
\alert<2>{...} Keeps the text visible and highlights it on the given steps Not applicable, because the text is always there

Here is a frame that uses all three:

\begin{frame}{Hiding versus reserving space}
  Text above the line.
  \only<2>{This line appears only on step 2.}
  Text below moves up when the line above is hidden.
  \uncover<3>{This line appears on step 3, and the space stays reserved.}
  \alert<4>{This sentence is highlighted on step 4.}
\end{frame}

Use \only when the position of the following text does not matter. Use \uncover when the layout should stay put.

Keep the layout stable with overprint

When the text changes between steps, the frame can change height as content of different sizes appears. Beamer’s overprint environment prevents this by reserving room for the tallest step. Put one \onslide for each step inside it:

\begin{frame}{Overprint example}
  \begin{overprint}
    \onslide<1>
      A short line for the first step.
    \onslide<2>
      A much longer text for the second step, which wraps across several lines in the frame and takes more room than the first.
  \end{overprint}
\end{frame}

Overprint is most useful when a figure or a column should not move between steps. If the layout becomes hard to control, splitting the content into separate frames is often simpler.

Common mistakes

  • Forgetting that each step is a page. A long overlay sequence makes a long PDF, so keep frames short.
  • Code in frames. A frame with verbatim text needs the fragile option, as explained in the Beamer guide.
  • Expecting animations in PowerPoint. Overlays do not carry over as animations if you convert the deck. See the PowerPoint conversion guide.
  • Using \only where space matters. If the text below jumps when a line appears, switch to \uncover.

The complete guide to presentations and posters

How to Make a Presentation in LaTeX with Beamer
Read the guide

Keep exploring

Guides from other topics

All topics →