Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question

2 Answers 2

up vote 7 down vote accepted

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

share|improve this answer
    
Are these animations automated? Or they work when pressed by a key? –  subham soni Mar 2 at 16:02
    
@subhamsoni They work when you press a key in full screen mode. –  Harish Kumar Mar 2 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. –  Gonzalo Medina Mar 2 at 17:06
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{enumerate}[<+->]
\item Hi
\item Hello
\end{enumerate}
\end{frame}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.