I'm try to make a simple glossary in my thesis.
That's a compilable sample
\documentclass[a4paper]{report}
\usepackage[italian]{babel}
\usepackage{lipsum}
\usepackage{hyperref}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{Tree}{
name={Tree},
description={Acyclic graph}
}
\newglossaryentry{Kn}{
name={Complete graph},
description={Graph that has all possible edges}
}
\begin{document}
This is a \gls{Tree}
\newpage
This is a \gls{Kn}
\glsaddall
\printglossary[title=Definitions]
\end{document}
In this sample, Complete graph appears in page 2, but in glossary everything is signed at page 1).
Am I referring to glossary's terms in a wrong way? The term is linked correctly to its glossary's entry.