Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
5  
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

1 Answer 1

up vote 5 down vote accepted

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

sample output nomencl

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

sample output glossaries

share|improve this answer
    
Thank you! And if I wanted to leave out the page number, what should I do? –  Mus Liselot Mar 1 '13 at 14:18
2  
@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
    
Thank you for the help –  Mus Liselot Mar 1 '13 at 16:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.