[Tex/LaTex] Acronym glossary doesn’t appear

acronymsglossariessharelatex

I'm trying to get an acronym glossary to appear on my ShareLaTeX project, but even the demo they have doesn't work:

https://www.sharelatex.com/project/554bfc42d1eab411203a5f23

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[acronym]{glossaries}

\makeglossaries

\newacronym{gcd}{GCD}{Greatest Common Divisor}

\newacronym{lcm}{LCM}{Least Common Multiple}

\begin{document}
Given a set of numbers, there are elementary methods to compute 
its \acrlong{gcd}, which is abbreviated \acrshort{gcd}. This process 
is similar to that used for the \acrfull{lcm}.

\clearpage

\printglossary[type=\acronymtype]

\end{document}

Gives me the paragraph of text on one page, then a blank second page. What am I doing wrong?

Best Answer

It works for me when I use the alternative noidx commands for making and printing the glossary.

Replace

\makeglossaries 

with

\makenoidxglossaries

and

\printglossary 

with

\printnoidxglossary

This is refered to as Option 1 for printing the glossary, in the manual. Someone with more experience of the package can probably point out why your first approach does not work.

Related Question