我在用
\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}