Glossary backlink points to wrong page
The problem stems from the way you number your pages: while you suppress the page numbers on your title pages with \thispagestyle{empty}
, those pages are still numbered internally with arabic numbers. So move the \pagenumbering{roman}
right after \begin{document}
. This will shift the roman numbers, e.g., the ToC will now be on page ix, as it should be.
The problem isn't related to glossaries
but is because you have multiple PDF anchors with the same identifiers. I suspect you have a message in your log file along the lines of:
pdfTeX warning (ext4): destination with the same identifier
(name{page.3}) has been already used, duplicate ignored
Each page in the PDF file is given an anchor in the form "page.n" where n is the page number, so page 3 has the anchor page.3
and page iii has the anchor page.iii
, but you have two pages numbered 3
(in arabic): one is in the titling area, the other is in the main matter. You can't see the page number in the first instance because you've suppressed its appearance with the empty
page style, but even though you can't see it, there is still a number associated with that page.
Here's an example:
\documentclass{scrbook}
\usepackage{hyperref}
\begin{document}
\begin{titlepage}
Insert title page text here.
\end{titlepage}
\cleardoublepage
\begin{titlepage}
Insert institute blurb here.
This is page 3. It has an anchor called ``page.3''.
\end{titlepage}
\cleardoublepage
\begin{titlepage}
Insert statement blurb here.
\end{titlepage}
\frontmatter
page i
\clearpage
page ii
\clearpage
page iii
\clearpage
\mainmatter
page 1
\clearpage
page 2
\clearpage
page 3.
This is also page 3. It has been given a duplicate anchor called ``page.3''.
\clearpage
\hyperlink{page.3}{Page 3}
\end{document}
Since duplicate anchors are ignored, the hyperlink goes to the first defined anchor. One way to get around this is to use a different page numbering for the title pages. Since the page style is empty, you can choose any style you like, as long as it isn't used anywhere else in the document. For example:
\documentclass{scrbook}
\usepackage{hyperref}
\begin{document}
\pagenumbering{alph}
\begin{titlepage}
Insert title page text here.
\end{titlepage}
\cleardoublepage
\begin{titlepage}
Insert institute blurb here. This page has the anchor ``page.c'', but you
can't see the number as the page style is empty.
\end{titlepage}
\cleardoublepage
\begin{titlepage}
Insert statement blurb here.
\end{titlepage}
\frontmatter
page i
\clearpage
page ii
\clearpage
page iii
\clearpage
\mainmatter
page 1
\clearpage
page 2
\clearpage
page 3
\clearpage
\hyperlink{page.3}{Page 3}
\end{document}
The hyperlink now links to the correct page.