GeneralDivided List of Abbreviations

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
oZee
Posts: 2
Joined: Wed Aug 31, 2011 9:27 am

Divided List of Abbreviations

Post by oZee »

Hi Fellows,

i am about to write my diploma thesis. I like LaTeX very much for now, but regarding my list of abbreviations i face some problem - eevn dont knowing if my wish is possible to come true =). I also used google and the boards search function w/o getting help =(-

I want to create a list of abbreviations, divided in more or less subchapters. The abbreviations should be loaded from a file, which looks more or less like

\nomenclature[subchapter in the list]{abbreviation}{abbreviation meaning}

it should then index and sort the abbreviations.
eg:

\nomenclature[Sausages]{Sa}{Salami}
\nomenclature[vegetables]{Sal}{Salad}
\nomenclature[Sausages]{H}{Ham}

should produce

List of abbreviations:

Sausages:

H--------------------------Ham
Sa-------------------------Salami

Vegetables:

Sal------------------------Salad

and not im not in teh food industry =) just e.g. for clearance.

Sorry for my english and thanks for upcoming help.

Regards oZee

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Divided List of Abbreviations

Post by nlct »

You can use the glossaries package:

Code: Select all

\documentclass{article}

\usepackage[style=sublistdotted]{glossaries}

\renewcommand*{\glossaryname}{List of Abbreviations}

\makeglossaries

\newglossaryentry{sausages}{name=Sausages,description={\nopostdesc}}
\newglossaryentry{vegetables}{name=Vegetables,description={\nopostdesc}}

\newacronym[parent=sausages]{salami}{Sa}{Salami}
\newacronym[parent=sausages]{ham}{H}{Ham}
\newacronym[parent=vegetables]{salad}{Sal}{Salad}

\begin{document}

First use: \gls{salami}, subsequent use: \gls{salami}.
Abbreviation: \acrshort{salami}, Full: \acrlong{salami}.

No text but add to list of abbreviations: \glsadd{ham}.

Add all entries to the list of abbreviations regardless of whether
they've been used in the text: \glsaddall.

\printglossaries

\end{document}
You can put all the \newglossaryentry and \newacronym commands in another file and load them using \glsloadentries.

The glossaries package comes with a guide for beginners as well as the main user manual. There's also an article in the Know How section.

Regards
Nicola Talbot
oZee
Posts: 2
Joined: Wed Aug 31, 2011 9:27 am

Re: Divided List of Abbreviations

Post by oZee »

Hi there,

looks awesome, i will try this!

Thanks a lot for fast replying

Regards
Post Reply