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.
- how to write it in the text?
- how to print it?
- what to execute on which position?
Well, there is a
glossariespackage 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\makeglossariesin the preamble, and some number of\newglossaryentryand\newacronymcalls (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\printglossarycalls in the text. Use\gslto connect glossary entries on the argument with the pages they occur on.Processing the file will have to include a call to
makeglossariesfollowed 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.