# How do I skip slides in Beamer?

I have a beamer presentation for a long presentation, but I'd like to make a smaller presentation which skips some of the slides. Does beamer have a way to do that, or should I just comment out the source code for the slides I want to skip?

• If you cut the code and paste in new files, you can use \include{} to compile only what you wish. – Sigur Jan 29 '16 at 19:56

You could define your own if condition and just wrap every additional slide inside of \ifadditional ... \fi.

\documentclass{beamer}

%\additionalfalse % UNCOMMENT TO CREATE SMALLER VERSION

\begin{document}

\frame{Frame 1}

\fi

\frame{Frame 3}

\end{document}


Found an alternative solution at: Remove frame from presentation

It does not require to add new definitions, but you can't encapsulate many frames at once.

It simply consists on adding <0> after \begin{frame}.

\documentclass{beamer}

\begin{document}
\begin{frame}<0>
1
\end{frame}
\begin{frame}
2
\end{frame}
skipping frame numbering
\end{frame}
\begin{frame}
3
\end{frame}
\begin{frame}
4
\end{frame}
\end{document}


With the beameraudience package you can create different versions of the presentation based on keywords of your choice:

\documentclass{beamer}

\usepackage[
audience=long
]{beameraudience}

\begin{document}

\frame{Frame 1}

\justfor{long}{%

• @FooBar You can use constructs like \def\foo{bar}\input{documentname} and then pass \foo as package option. Or use different jobnames, see e.g. tex.stackexchange.com/a/327352/36296 and tex.stackexchange.com/questions/1492/… – user36296 Jan 15 at 15:18