I am preparing lecture slides for a class.
I would like to hide some of the slides from the students.
As an example, I would like to be able to compile
students.pdf which has only student slides 1 and 2
(i.e., "teacher slide" is hidden);
but teacher.pdf which has all three slides.
\documentclass{beamer}
\begin{document}
\begin{frame}{Student slide 1}
blah blah blah
\end{frame}
\begin{frame}{Teacher slide}
secret stuff not to be shared with students
\end{frame}
\begin{frame}{Student slide 2}
blah blah blah
\end{frame}
\end{document}
How would I do this in beamer?
In a regular document, e.g., article,
I would use the comment environment.
I feel that the approach in Conditionally hidden slides in beamer is overkill for my needs.




\mode<beamer>{\begin{frame}{teacher slide} ... \end{frame}}and compile with and without thehandoutoption – Oct 18 '15 at 11:26\onslide<3| handout:0>{Stuff for teacher slide.}if you want just some slides within a frame included in the handout. – cfr Oct 18 '15 at 14:48