16

How do I animate an Itemize or Enumerate List. That is on pressing the enter key, The next Item should appear. How do I do that?

\documentclass{article}
\begin{document}
\begin{enumerate}
\item Hi
\item Hello
\end{enumerate}
\end{enumerate}

2 Answers 2

25

Whie Herbert has given you one option, here are few more.

\uncover

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{enumerate}
\uncover<1->{\item Hi}
\uncover<2->{\item Hello}
\uncover<3->{\item Hi again}
\uncover<4->{\item Hello again}
\end{enumerate}
\end{frame}
\end{document}

enter image description here

\only

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{enumerate}
\only<1->{\item Hi}
\only<2->{\item Hello}
\only<3>{\item Hi again}   %% note absence of - after 3
\only<4->{\item Hello again}
\end{enumerate}
\end{frame}
\end{document}

enter image description here

To avoid jumping, you may use overlayarea:

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{overlayarea}{\textwidth}{.5\textheight}
\begin{enumerate}
\only<1->{\item Hi}
\only<2->{\item Hello}
\only<3>{\item Hi again}   %% note absence of - after 3
\only<4->{\item Hello again}
\end{enumerate}
\end{overlayarea}
\end{frame}
\end{document}

enter image description here

\pause

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{enumerate}
\item Hi \pause
\item Hello \pause
\item Hi again \pause
\item Hello again 
\end{enumerate}
\end{frame}
\end{document}

enter image description here

If you want only one item per slide

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{enumerate}
\item<1> Hi 
\item<2> Hello 
\item<3> Hi again 
\item<4> Hello again
\end{enumerate}
\end{frame}
\end{document}

enter image description here

3
  • Are these animations automated? Or they work when pressed by a key? Commented Mar 2, 2014 at 16:02
  • @subhamsoni They work when you press a key in full screen mode.
    – user11232
    Commented Mar 2, 2014 at 16:11
  • @subhamsoni Yes, they can be done automatically (but this works only in some viewers, typically Acrobat Reader). Please read section 14.3 Slide Transitions of the beamer documentation. Commented Mar 2, 2014 at 17:06
23

Can be done automatically:

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{enumerate}[<+->]
\item Hi
\item Hello
\end{enumerate}
\end{frame}
\end{document}

For all lists write into the preamble:

 \beamerdefaultoverlayspecification{<+->}
1
  • 1
    +1 for the second snippet, really comes in handy sometimes Commented Jul 8, 2019 at 7:53

You must log in to answer this question.

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