47

Question: how do I remove a frame from my presentation?

I am using the beamer package and I just want to remove 1 frame quickly from my presentation because it is not relevant. Is there a quick way to do this? Like

\begin{frame}[exclude]
\end{frame}
2
  • The answer of @dcmst is correct. After my post I also came across this topic, tex.stackexchange.com/questions/17816/…. In my case it was also sufficient to use the \iffalse ... \fi statements
    – WG-
    Commented Sep 8, 2014 at 13:07
  • 5
    I think in the specific case of a beamer presentation the answer here is probably preferable to the general 'commenting out' one. Also, the question is distinct: nice one!
    – Joseph Wright
    Commented Sep 8, 2014 at 13:09

1 Answer 1

53

use <presentation:0>

\documentclass{beamer}

\begin{document}
\begin{frame}<presentation:0>
1
\end{frame}
\begin{frame}
2
\end{frame}
\begin{frame}
3
\end{frame}
\begin{frame}
4
\end{frame}
\begin{frame}
5
\end{frame}
\end{document}

Obligatory gif: enter image description here

The slide number is still incremented by slides hidden in this way. If you don't wish to number hidden slides, add the argument

\begin{frame}<presentation:0>[noframenumbering]
6
  • 18
    You can omit the presentation: if you want to just hide the slide from any kind of mode (e.g. handout), like \begin{frame}<0>[noframenumbering]
    – Mitja
    Commented Sep 14, 2017 at 13:28
  • Any idea how to get noframenumbering to work with fragile?
    – Jo Mo
    Commented Mar 9, 2021 at 14:45
  • @JoMo, that sounds like a question that needs its own SO post.
    – Paul Wintz
    Commented Mar 28, 2022 at 20:44
  • First comment, from @Mitja, indicates that just putting <0> will work. Right now, it does not in my Latex installation. But the code <presentation:0> works as indicated.
    – alfeliz
    Commented Sep 21, 2023 at 11:33
  • 1
    The Beamer User Guide suggests in 8.4 that <0> works and also that they automatically get the [noframenumbering] today. You could try <all:0> and see if that does something and maybe look into if the beamer package you have installed is up to date.
    – Mitja
    Commented Sep 22, 2023 at 14:52

You must log in to answer this question.

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