0

I am using

\documentclass[handout]{beamer}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

and get a string of errors of the form

pdfTeX warning (dest): Page X has been referenced but does not exist!

\documentclass[handout]{beamer}

\hypersetup{pdfpagemode=UseOutlines,
  pdfstartview=FitH,
  bookmarksopen=true}

\usepackage{etoolbox}
\usepackage{bookmark}

\makeatletter
\apptocmd{\beamer@@frametitle}{\only<1>{\bookmark[page=\the\c@page,level=3]    {#1}}}%
{\message{** patching of \string\beamer@@frametitle succeeded **}}%
{\errmessage{** patching of \string\beamer@@frametitle failed **}}%
\makeatother

\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]

\title{Test}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Test}
\begin{itemize}
\item Test
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Test}
\begin{itemize}
\item Test
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Test}
\begin{itemize}
\item Test
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Test}
\begin{itemize}
\item Test
\end{itemize}
\end{frame}
\end{document}

Any suggestions?

Thanks!

  • Please add a small complete (=compilable) document that shows the problem. – gernot Jan 26 '17 at 13:31
1

Assuming the framtitle patch might not be necessary in handout mode:

\documentclass[handout]{beamer}

\hypersetup{pdfpagemode=UseOutlines,
 pdfstartview=FitH,
 bookmarksopen=true}

\usepackage{etoolbox}
\usepackage{bookmark}


\makeatletter
\apptocmd{\beamer@@frametitle}{\only<1|handout:0>{\bookmark[page=\the\c@page,level=3]{#1}}}%
{\message{** patching of \string\beamer@@frametitle succeeded **}}%
{\errmessage{** patching of \string\beamer@@frametitle failed **}}%
\makeatother


\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]


\title{Test}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Test}
\begin{itemize}
\item Test
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Test}
\begin{itemize}
\item Test
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Test}
\begin{itemize}
\item Test
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Test}
\begin{itemize}
\item Test
\end{itemize}
\end{frame}

\end{document}
  • Thanks! Well, I actually use bookmarks in handout mode. I find that TeX runs faster in handout mode, and that it is easier to edit in handout mode. Then I turn off handout mode when I'm ready to present. However, I don't need bookmarks when I use pgfpages. So I think I can use your idea to get what I want. Thanks! – Helmer.Aslaksen Jan 30 '17 at 8:54

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.