Beamer+pgfpages = "pdfTeX 警告(目标):第 31 页已被引用但不存在!"

Beamer+pgfpages = "pdfTeX 警告(目标):第 31 页已被引用但不存在!"

我在用

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

并得到以下形式的错误字符串

pdfTeX 警告(目标):页面 X 已被引用,但不存在!

\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}

有什么建议么?

谢谢!

答案1

handout假设 framtitle 补丁在模式下可能不需要:

\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}

相关内容