我有一个LaTeX文档,其中包含一个图形和对它的引用:
\begin{figure}
...
\caption{...}
\label{fig:1}
\end{figure}
\ref{fig:1}我使用hyperref包来获得结果PDF中的超链接。然而,指向插图的链接导航到标题,将插图本身留在视图之外。我如何才能让它导航到图的开头,而不是将标题移到顶部?
发布于 2010-10-26 21:16:05
在你的前言中加入这一点
\usepackage{hyperref}
\usepackage[all]{hypcap} %for going to the top of an image when a figure reference is clicked确保在导入hyperref包之后写入\usepackageall{hypcap}。
发布于 2014-01-21 15:34:05
对上一条评论:
\usepackage{hyperref}
\usepackage{caption}比\usepackage[all]{hypcap}稍好一些,因为当你使用没有字幕的figure时,不会有编译问题。默认情况下的标题包设置选项
hypcap=true将超链接锚定到环境的开头。
发布于 2013-10-24 23:25:37
\usepackage{hyperref}
\usepackage{caption}使用此选项比使用\usepackageall{hypcap}更好。
https://stackoverflow.com/questions/4023925
复制相似问题