Glossary in LaTeX

As I was Finishing my MSc thesis today I wanted to create a glossary with LaTex, but it was very difficult to find a tutorial or even basic steps to create one, without having to change something, so I decided to create a small “tutorial” on how to create a glossary with LaTeX.

The first step is to include the package :

As you may see, I also added the option [nonumberlist]. When this option is not enabled the glossary contains a list of page numbers where the entry was used.
The second step is to use the package :

This package will allow you the use of acronyms. Now that the right packages were included, you can insert the following command in the body :

You may  now create the acronyms and entries that you want in your glossary. These entries have to follow this layout :

Finally you can put the following commands where the glossary should be printed

The first command list all the entries in the glossary, while the second prints the glossary out. In your text you may now use it such as following :

and this should appear :

Compile your LaTeX document a first time and then open a shell an type the following command:

Compile your document with LaTeX a second time, and your glossary should appear right there.

and that’s it !

Below is a basic example of a LaTeX file with glossary :

Have Fun with LaTeX.

{ 2 } Comments

1. Fatal error: Uncaught Error: Call to undefined function ereg() in /home/users4/n/noktec/www/noktec/wp-content/themes/barthelme/functions.php:178 Stack trace: #0 /home/users4/n/noktec/www/noktec/wp-content/themes/barthelme/comments.php(34): barthelme_commenter_link() #1 /home/users4/n/noktec/www/noktec/wp-includes/comment-template.php(1554): require('/home/users4/n/...') #2 /home/users4/n/noktec/www/noktec/wp-content/themes/barthelme/single.php(44): comments_template() #3 /home/users4/n/noktec/www/noktec/wp-includes/template-loader.php(106): include('/home/users4/n/...') #4 /home/users4/n/noktec/www/noktec/wp-blog-header.php(19): require_once('/home/users4/n/...') #5 /home/users4/n/noktec/www/noktec/index.php(17): require('/home/users4/n/...') #6 {main} thrown in /home/users4/n/noktec/www/noktec/wp-content/themes/barthelme/functions.php on line 178