我有一份 4 页的文档,其中包含全局区域和局部区域。第 1 页和第 3 页是正文,第 4 页是参考部分(第 1 页、第 2 页和第 3 页是全局区域)。第 2 页是草稿中的局部区域(包含局部参考部分)。此局部区域的所有内容都很好。局部引用工作正常(hyperref 正确地将引用指向其参考,这要感谢 refsection)。问题出在主草稿上。问题是当我单击主文档中的参考资料(无论是第 1 页还是第 3 页)时,它会跳转到文档的第一页(而不是跳转到第 4 页)。我制作了这个 4 页的示例文档来讨论这个问题,并希望找到解决方案。我相信它与 hyperref 和 biblatex 包有关。我阅读了多篇相关帖子,也阅读了 biblatex 文档,但没有成功。
ps 我在全球参考文献部分使用了 refsection,因为我想有单独的参考文献部分(即期刊、会议等)
\documentclass{article}
\usepackage{hyperref}
\usepackage[style=alphabetic, backend=biber]{biblatex}
\addbibresource{biblio.bib}
\begin{document}
% page #1
\begin{center}
\textbf{\LARGE Main area}
\end{center}
This is the main area of the draft. This is the first reference \cite{authorA}
% page #2
\pagebreak
\begin{refsection}
\begin{center}
\textbf{\LARGE Local area}
\end{center}
This is the local area of the draft. The local reference \cite{authorB}.
\nocite{authorB}
\printbibliography
\end{refsection}
% page #3
\pagebreak
Continuation of the main draft... This is the second reference \cite{authorC}
% page #4
\pagebreak
\section*{Publications}
\subsection*{journals}
\printbibliography[heading=none, keyword={jour}]
\subsection*{conferences}
\printbibliography[heading=none, keyword={conf}]
\end{document}
以下是 .bib 文件的条目。
@Article{authorA,
author = {author A},
title = {Tiltle A},
pages = {1--2},
volume = {1},
journal = {Journal Name},
keywords = {jour},
publisher = {Publisher},
year = {2000},
}
@Article{authorB,
author = {author B},
title = {Tiltle B},
pages = {1--2},
volume = {1},
journal = {Journal Name},
publisher = {Publisher},
year = {2000},
}
@Article{authorC,
author = {author C},
title = {Tiltle C},
pages = {1--2},
volume = {1},
journal = {Journal Name},
keywords = {conf},
publisher = {Publisher},
year = {2000},
}