我编译了以下代码:
\documentclass{scrreprt}
\usepackage{blindtext}
\usepackage[
bookmarks=true,
bookmarksopen=true,
colorlinks=true,
anchorcolor=blue,
filecolor=blue,
citecolor=black,
urlcolor=black,
linkcolor=black,
menucolor=blue,
breaklinks=true
]{hyperref}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{symb:band_energy}{
name=\ensuremath{\epsilon_k},
description={Band energy in momentum space}
}
\title{Title goes here}
\author{Me of course}
\begin{document}
\maketitle
\pagenumbering{Roman}
\blindtext
\clearpage
\pagenumbering{arabic}
\blindtext
We will refer to the band structure as \gls{symb:band_energy}.
\printglossary[style=index]
\end{document}
问题是,当在 pdf 中单击词汇表中给出的页码(这是正确的页码)时,最终会转到标题页!这是错误还是我错过了什么?我一直在阅读有关和的问题,hyperref
但glossaries
没有任何地方提到这一点。
答案1
标题页也已编号(第 1 页)。但您看不到。因此,我建议您将罗马页码设置为最开始,这样就可以了。然后,您将看到第二页的编号为“II”,我认为这恰到好处。
% arara: lualatex
% arara: makeglossaries
\documentclass{scrreprt}
\usepackage{blindtext}
\usepackage{hyperref}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{symb:band_energy}{%
name=\ensuremath{\epsilon_k},
description={Band energy in momentum space}
}
\title{Title goes here}
\author{Me of course}
\begin{document}
\pagenumbering{Roman}
\maketitle
\blindtext
\clearpage
\pagenumbering{arabic}
\blindtext
We will refer to the band structure as \gls{symb:band_energy}.
\printglossary[style=index]
\end{document}