I am writing a beamer presentation and I'm trying to create two sets of presentations, one of which omits entirely some of the slides of the other. That is, for certain frames I would like to define a new environment that, by changing the \newenvironment command at the top, the frame will either be included or not. I figured I could achieve this by defining a new environment to be equivalent to the "comment" environment. This is what I've tried and it's giving me an error:
Code: Select all
\documentclass{beamer}
\usepackage{verbatim}
\newenvironment{omitframe}{\begin{comment}}{\end{comment}}
\begin{document}
\begin{omitframe}
Stuff.
\end{omitframe}
\end{document}
Code: Select all
\newenvironment{omitframe}{\begin{frame}}{\end{frame}}
Thanks very much.