Latex Beamer - make each item appear on new slide automatically
Asked Answered
D

2

7

I am looking for a way to produce a new slide for each \item in \itemize without having to use \pause or specifications in each \item for what slides to appear on. I think I came across some command once that I could place in the preamble to do exactly this but I don't remember. Does anyone have an idea?

Dibromide answered 20/1, 2021 at 17:59 Comment(0)
S
13
\documentclass{beamer}

\beamerdefaultoverlayspecification{<+->}

\begin{document}

\begin{frame}
  \begin{itemize}
    \item test
    \item test
  \end{itemize}
\end{frame}
    
\end{document}
Salsify answered 20/1, 2021 at 18:16 Comment(2)
Thank you, that's exactly what I was looking for! Is there also a way how I can turn this off and back on inside the document?Dibromide
@Dibromide You can switch back to the default behaviour using \beamerdefaultoverlayspecification{<*>}Salsify
C
12

A minor addition to the accepted answer, you can toggle this behavior for each itemize environment.

\documentclass{beamer}

\begin{document}

\begin{frame}
  \begin{itemize}[<+->]
    \item test
    \item test
  \end{itemize}
\end{frame}
    
\end{document}
Caroylncarp answered 17/1, 2022 at 1:50 Comment(3)
Is it possible to do such that the slide number does not increase?Phenolphthalein
@Phenolphthalein i am not sure what you mean. are you using the insertframenumber as slide number?Caroylncarp
I found the problem in my Latex code, but thanks for answering :)Phenolphthalein

© 2022 - 2024 — McMap. All rights reserved.