I'm preparing a beamer slideshow, and I will have to print slides.
I would rather use landscape mode slides, but it is possible that I need to use portrait mode ones. Sadly, I won't know until a few minutes before the talk, so I have to prepare two copies of the presentation.
I've tried to use conditional compilation, but it doesn't seem to work pretty well. Basically, I would like to have something like this:
\newif\ifwide
\widetrue
And then I would write something like this:
\begin{frame}{A frame}
Some text (...)
\ifwide
\end{frame}
\begin{frame}{A second frame}
\fi
Some text (continued)
\end{frame}
This particular example doesn't work (pdflatex reports Extra }, or forgotten \endgroup. \end{frame} (followed by: )). What should I do to have the frame contents split on two frames in landsape mode, but not in portrait mode?
frameenvironment ofbeameris a pseudo-environment, i.e. actually a macro which reads everything until\end{frame}as argument. This is the reason why if-switches don't work here. – Martin Scharrer Mar 03 '11 at 16:04\ifs processed before the pseudo-environment expands? – Clément Mar 03 '11 at 17:27