TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm currently writing a large document, and I have two glossaries, one for acronyms, and one for a normal glossary. I have hyperref setup so that the glossary entries in the main text have links to the glossary items. At least that's the plan. Unfortunately, this does not work, and all the links point to the first page of the document.

Here is my MWE:

\newacronym{XML}{XML}{Extensible Markup Language}

For building with latexmk, I'm using this .latexmkrc:

add_cus_dep('glo', 'gls', 0, 'makeglossaries');
sub makeglossaries {
    system("makeglossaries '$_[0]'");

pdflatex outputs these warnings:

pdfTeX warning (dest): name{glo:UML} has been referenced but does not exist, replaced by a fixed one
pdfTeX warning (dest): name{glo:XML} has been referenced but does not exist, replaced by a fixed one

I'm not sure where this glo: prefix in the warning comes from, maybe that's the problem?

And no, this is not a duplicate of How to get correct glossary links with frontmatter pages?. The back links, from glossary items to the occurrence in the text, work for me.

share|improve this question
up vote 5 down vote accepted

Contrary to most other packages, glossaries must be loaded after hyperref. This fact is highlighted at p. 2 of the glossaries beginners guide. See Which packages should be loaded after hyperref instead of before? for a list of the most important "hyperref exceptions".

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.