\documentclass[12pt]{article}
% standard incantations
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[english]{babel}
% clickable links in the PDF
\usepackage[colorlinks]{hyperref}
% glossary
\usepackage[xindy]{glossaries}
\input{glossary}
\makeglossaries
\title{Automatic Glossaries in LaTeX}
\author{writeLaTeX}
\date{\today}
\begin{document}
\maketitle
\section{Example}
The \texttt{glossaries} package automatically generates a list of glossary entries. It's great for keeping track of your \gls{domain-knowledge} and \glspl{tla}. In this example we've put the glossary definitions in a separate \texttt{glossary.tex} file, which you can edit via the project menu.
\printglossaries
\end{document}