以下文档编译良好,并且链接显示如我所愿。但是当我在生成的 PDF 中单击“此处”时,我被带到第 1 页,而不是引用所在的页面。我希望被带到引用的页面。
\documentclass[english]{beamer}
\usepackage{babel}
\begin{document}
\begin{frame}
\frametitle{the referencing slide}
As you can see \hyperref[refthis]{here}
\end{frame}
\begin{frame}
\frametitle{random stuff}
in between slide
\end{frame}
\begin{frame}
\frametitle{Reference this}
I want to reference this frame. \label{refthis}
\end{frame}
\end{document}
答案1
一种选择是使用提供的\hyperlink
机制:\hypertarget
hyperref
\documentclass[english]{beamer}
\usepackage{babel}
\begin{document}
\begin{frame}
\frametitle{the referencing slide}
As you can see \hyperlink{refthis}{here}
\end{frame}
\begin{frame}
\frametitle{random stuff}
in between slide
\end{frame}
\begin{frame}
\frametitle{Reference this}
\hypertarget{refthis}{}
I want to reference this frame.
\end{frame}
\end{document}
另一种选择是使用\hyperlink
框架的标签机制:
\documentclass[english]{beamer}
\usepackage{babel}
\begin{document}
\begin{frame}
\frametitle{the referencing slide}
As you can see \hyperlink{refthis}{here}
\end{frame}
\begin{frame}
\frametitle{random stuff}
in between slide
\end{frame}
\begin{frame}[label=refthis]
\frametitle{Reference this}
I want to reference this frame.
\end{frame}
\end{document}