[Tex/LaTex] List of glossaries not displaying

glossaries

I am using the following code for the list of glossaries, but the list of glossaries do not generate (the code compiles well). Can anybody suggest what may be the problem?

\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[acronym]{glossaries}
\makeglossaries
\begin{document}
\newglossaryentry{utc}{Coordinated Universal Time}
\newglossaryentry{adt}{Atlantic Daylight Time}
\newglossaryentry{est}{Eastern Standard Time}

The code is for testing the glossaries list.

\printglossaries
\end{document}

Best Answer

There are some keys missing in the definition of the glossary entries, amongst other issues.

\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[acronym]{glossaries}

\newglossaryentry{utc}{name=utc,description={Coordinated Universal Time}}
\newglossaryentry{adt}{name=adt,description={Atlantic Daylight Time}}
\newglossaryentry{est}{name=est,description={Eastern Standard Time}}

\makeglossaries
\begin{document}

The code is for testing the glossaries list.

%Adding the acronyms to the glossary without displaying them here:
\glsadd{utc}\glsadd{adt}\glsadd{est}

\printglossaries
\end{document}

Compile, for example, with this 'pipeline'

pdflatex foo

makeindex -s foo.ist -o foo.gls foo.glo

pdflatex foo

Edit See the comment by user cmhughes for other ways to generate the document with the glossary.

Edit Usage of the makeglossaries script is of course much easier in order to generate the glossaries.

enter image description here

For further usage, I refer to the documentation of the package, see for example http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossariesbegin.pdf

Related Question