document-glossaries.ltx (824B)
1 \documentclass[a4paper,12pt]{article} 2 \usepackage[toc,nonumberlist,numberedsection=autolabel]{glossaries} 3 4 \title{A Test Document Using Glossaries For Waf Construction} 5 \author{Joe Steeve} 6 7 \makeglossaries 8 \begin{document} 9 10 \maketitle 11 \tableofcontents 12 13 \glossarystyle{altlist} 14 15 %% The glossary entries 16 \newglossaryentry{african} 17 { 18 name={african}, 19 description={The West African Swallow, Hirundo domicella} 20 } 21 22 \newglossaryentry{european} 23 { 24 name={european}, 25 description={The Barn or European Swallow, Hirundo rustica} 26 } 27 28 \section{The story} 29 30 \begin{description} 31 \item[Bridgekeeper:] What... is the air-speed velocity of an unladen 32 swallow? 33 \item[King Arthur:] What do you mean? An \gls{african} or \gls{european} swallow? 34 \end{description} 35 36 %% This is the Glossary section 37 \glsaddall 38 \printglossaries 39 40 \end{document}