1

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?

  • 1
    You have to run Make Glossary. Did you? – user11232 May 8 '15 at 0:14
  • @HarishKumar can I explicitly run it in ShareLaTeX? I get normal glossaries, but no acronyms. – Nick T May 13 '15 at 6:18
3

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.

  • Thank you, just one additional note. Replacing \printglossary with \printnoidxglossary[type=\acronymtype,numberedsection=autolabel] worked for me, solution from the ShareLaTeX Git discussion page. – Hamman Samuel Feb 1 '18 at 9:23
1

The answer is in the official documentation (unfortunately not very good highlighted):

The acronyms list needs a temporary file generated by \printglossary to work, thereby you must add said command right before the line \printglossary[type=\acronymtype] and compile your document, once you've compiled your document for the first time you can remove the line \printglossary.

So if you put \printglossary, then compile, then comment out \printglossary and then compile again, it works. Probably it works also before removing \printglossary, but I had to do this because if not, the lhead appeared also in the previous page of the list of acronyms.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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