I just recently noticed that when I have glossaries and acronyms on the same page the referencing isn't working correctly, meaning: when clicking on a reference, it jumps to the wrong place.
\documentclass[a4paper]{scrartcl}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[pdftex,bookmarks=true,bookmarksnumbered,colorlinks=true]{hyperref} % http://ctan.org/pkg/hyperref
\usepackage{nameref}
\usepackage[nonumberlist,acronym,toc,section]{glossaries} % must be the last package to include
% Glossary
\makeglossaries
\newglossaryentry{test}{name=Test,
description={This is a test entry},
plural={Tests}\protect\glsadd{test}}
% Acronyms
\newacronym{TIAT}{TIAT}{this is a test}
\newacronym{TIAST}{TIAST}{this is a second test}
\begin{document}
\tableofcontents
\section{Section 1}
This is a \gls{test}.
\section{Section 2}
\gls{TIAT}.
\gls{TIAST}.
\glsaddall
\printglossary[style=altlist,title=Glossary]
\printglossary[type=\acronymtype,style=long]
\end{document}
The problem can be fixed, when inserting a \pagebreak between the two printglossary[params].
However, I was wondering, why it does that? Will that happen to sections as well, if they didn't implicit a pagebreak?
The code above has to be compiled as follows (IIRC):
pdflatex file.tex
makeglossaries file
pdflatex file.tex
pdflatex file.tex
\phantomsectionbefore the first\printglossary. – egreg Jun 15 '12 at 23:27