I'm making a presentation in Beamer, and upon adding a certain number of items in an itemize environment, Beamer creates multiple slides. Each successive slide has one more item added to it. For example,
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{Project Objective}
\begin{itemize}
\item This is the first item.
\begin{itemize}
\item Subitem1
\item Subitem2
\end{itemize}
\item This is the second item.
\begin{itemize}[<+->]
\item Subitem3
%\item Subitem4
\end{itemize}
\end{itemize}
\end{frame}
\end{document}
However, uncommenting Subitem 4 produces two slides:
Adding subsequent subitems creates subsequent slides, each with another subitem added. Adding subsequent items does not create more slides; each new item appears on all slides, indented below where the last subitem should have been. What causes this?
Best Answer
You should read up on what is referred to as "overlay specification" within the
beamer
user guide. Here is an excerpt (taken from section 3.10 Using Overlay Specifications):Note the different use of frame and slide. Each frame may have multiple slides associated with it. The overlay specification is designed to identify the number of slides for each frame. There are verbatim overlay specifications, like
\only
,\onslide
and some "optional arguments" to macros like\item
.For
itemize
(lists in general, and other structures likeframe
), you can specify an incremental overlay specification<+->
that inserts the appropriate pause at possibly-sequential items, like lists. Read more about this in section 9.6.4 Incremental Specifications.