Example for a simple LaTeX glossary

glossarylatex

I'm trying to include a simple glossary to my LaTeX document,

I already searched for something like that on google, but never got it running.

I would like to use glossary or glossaries.

  1. how to write it in the text?
  2. how to print it?
  3. what to execute on which position?

Best Answer

Well, there is a glossaries package on CTAN. Read the pdf documentation.

Check if you already have it in your installation, if not install it, and put \usepackage{glossaries} in the preamble of you document and it will be available to you.


It looks like you need \usepackage{glossaries} and \makeglossaries in the preamble, and some number of \newglossaryentry and \newacronym calls (it is not immediately clear to me if these only go in the premble or can go in the document text). Finally, you will need one or more \printglossary calls in the text. Use \gsl to connect glossary entries on the argument with the pages they occur on.

Processing the file will have to include a call to makeglossaries followed by at least one more invokation of latex.

In addition to the samples mentioned in the documentation there is a Stack Overflow question which includes a minimal file making use of glossaries. You may be particularly interested in the acronym glossary.