# List of abbreviations

Is there a way to get an alphabetical list of abbreviations automatically? At the moment I have:

\begin{longtable}{ll}

APC & antigeen-presenterende cel \\

\end{longtable}


I use longtable because my table is very long.

• You should consider the nomencl or glossaries packages. – egreg Feb 28 '13 at 19:08
• Do you mean a table that presents the rows in sorted order, independent of the order of rows in the source file? – Lover of Structure Feb 28 '13 at 19:58
• I mean in sorted order – Mus Liselot Mar 1 '13 at 14:16

As egreg said, look at the nomencl and glossaries packages.

Quick and dirty for nomencl:

\documentclass{article}
\usepackage[refpage]{nomencl}

\makenomenclature

\begin{document}
Here is some text, where we use APC.\nomenclature{APC}{antigeen-presenterende cel}

\printnomenclature
\end{document}


Run

pdflatex; makeindex -s nomencl.ist -t liselot.nlg -o liselot.nls liselot.nlo; pdflatex


on it to obtain

Quick and dirty for glossaries:

\documentclass{article}
\usepackage{glossaries}

\makeglossaries

\newglossaryentry{apc}{%
name={APC},%
description={antigeen-presenterende cel}%
}

\begin{document}
Here is some text, where we use \gls{apc}.

\printglossary[style=long]
\end{document}


Run

pdflatex; makeindex -s liselot2.ist -t liselot2.glg -o liselot2.gls liselot2.glo; pdflatex


on it to obtain

• Thank you! And if I wanted to leave out the page number, what should I do? – Mus Liselot Mar 1 '13 at 14:18
• @MusLiselot For the nomencl version, just delete the refpage option when loading the class. For the glossaries version, use \usepackage[nonumberlist]{glossaries}. – mafp Mar 1 '13 at 16:14
• It compiled successfully but nomenclature is not printed ... what can i do i'm using texMaker and i need to know how to add those flags ... thanks – The Beast Jun 2 '16 at 23:57
• @TheBeast Texmaker can be configured to use this by editing the makeindex command. I found that it looks for liselot.nlo, but it proceeds nicely if you replace it with %.nlo. However, it still does not print anything. – Berta Dénes Dec 5 '17 at 12:48