当我点击一个参考文献(方程式、图像、章节……)的链接时,它会将我发送到该参考文献所在的页面的开头,而不是其确切位置。我如何获取链接以将我发送到该参考文献的确切位置?
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{lmodern}
\usepackage{kpfonts}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{hyperref}
\begin{document}
When I click on the link of a reference (equation, image, section...) it
sends me to the beginning of the page where the reference is and not to
its exact location. how do I get the link to send me to the exact
location of the reference?
\begin{equation}
B=A+C
\label{eq1}
\end{equation}
\newpage
This is the link to the equation \ref{eq1}
\end{document}
答案1
- 您的代码运行良好。
- 我已经测试了 (1) Overleaf、(2) Adobe Reader 和 (3) PDF-XChange Editor。
- 有可能 Texmaker 的内置 PDF 查看器不能 100% 正常工作,但是如果是这样的话,那是 Texmaker 的问题,而不是代码或 PDF 文件的问题(= 对您有好处)。
\documentclass{article}
\usepackage{hyperref}
\begin{document}
When I click on the link of a reference (equation, image, section...) it
sends me to the beginning of the page where the reference is and not to
its exact location. how do I get the link to send me to the exact
location of the reference?
\begin{equation}
B=A+C
\label{eq1}
\end{equation}
\newpage
This is the link to the equation \ref{eq1}
\end{document}