tags:

views:

1655

answers:

1

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?
+3  A: 

Well, there is a glossaries class on CTAN. Read the documentation (also in pdf).

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.

dmckee
The `glossary` package is *deprecated*! Use `glossaries` instead.
Konrad Rudolph
*"The glossary package is deprecated!"* Which would be why my latex distribution doesn't have it. I do wish the README or the documentation would say as much. Updating the answer...
dmckee
@dmckee: in fact I only know that it’s deprecated because when I opened the docs using `texdoc glossary` on my LaTeX installation, that’s what it said (I have TeX Live 2009 installed).
Konrad Rudolph
already found the documentation.. read it undestand nothing.is there no simple step by step example for using glossaries?
Sven Klouem