Dear LaTeX / beamer enthusiasts
For our courses, we have a large repository of LaTeX slides using the great beamer package. Some slides are only included in the handout, others are available in handout and in the beamer slide set. Handouts and overlays are generated from the same file by passing the options to the beamer class from a build script.
I am looking for a solution to mark slides in the handout that are actually only visible in the handout (and are not part of the overlays). Because we have a huge repository of slides that are used (imported) in various courses, I would like to automate this task without having to maintain some sort of "handout_required" switch.
I know how to find out about the current mode (handout/trans/beamer/...). If I could find out about which modes are currently required (because in an \only<handout>
environment, for instance), I would know how to solve the problem.
[edited: in my original question I assumed that I could solve the problem if I could temporarily switch to a different mode, which turned out to be untrue]
I have consulted a lot of pages here and elsewhere and cannot find an answer to my problem.
Any help would be much appreciated.
Here is a usage scenario
\documentclass[handout]{beamer}
\begin{document}
% this command only finds out that we are in handout mode
% (but I want to find out about the currently required mode)
\newcommand\onlyhandoutmarker{\only<handout>{(handout)}}
% this supports using the marker in the frametitle
\setbeamertemplate{frametitle}{
\begin{beamercolorbox}[wd=\textwidth, ht=0.85cm, dp=0.4cm]{frametitle}
\strut\insertframetitle\ \onlyhandoutmarker\strut
\end{beamercolorbox}
}
\begin{frame}{General Slide}
This slide appears on overlay slides and in the handout.
It should not be marked as handout in the handout slides.
\end{frame}
\begin{frame}<handout>{Handout Slide}
This slide only appears in a handout.
This is the slide that I would like marked as handout in the handout slides.
\end{frame}
\end{document}
<handout>
part in the first place, but since I am already in that part when checking for the mode, this does not work to detect the current requirements. Again I would need access to the currently required set of modes. Sorry for the confusion.