1

I'd like to show a slide only on the projector but not have it in the handout. The most natural thing to implement this seems to be mode specifications as in the example below. This works fine... apart from the nuisance of messing up the value inserted by \inserttotalframenumber. Note that when built as is (i.e., as a handout) the second frame is hidden as intended but the total number of frames on the bottom right is wrong (2).

\documentclass[handout]{beamer}

\setbeamertemplate{footline}{\hfill\insertframenumber/\inserttotalframenumber\hspace*{0.3em}\vspace{0.3em}}

\begin{document}

\begin{frame}{title 1}
\end{frame}

\begin{frame}<beamer|second>{title 2}
\end{frame}

\end{document}

Why does this happen and how to fix it? Is this a bug in beamer?

1

One workaround/alternative solution is to use the \mode command explicitly. NB: This requires to turn it off explicitly as well (and the newline after the second \mode is mandatory).

\documentclass[handout]{beamer}

\setbeamertemplate{footline}{\hfill\insertframenumber/\inserttotalframenumber\hspace*{0.3em}\vspace{0.3em}}

\begin{document}

\begin{frame}{title 1}
\end{frame}

\mode<beamer|second>
\begin{frame}{title 2}
\end{frame}
\mode
<all>

\begin{frame}{title 3}
\end{frame}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.