summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/glossar.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-tipps-und-tricks/glossar.sty')
-rw-r--r--Master/texmf-dist/doc/latex/latex-tipps-und-tricks/glossar.sty24
1 files changed, 24 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/glossar.sty b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/glossar.sty
new file mode 100644
index 00000000000..f331e4adb47
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/glossar.sty
@@ -0,0 +1,24 @@
+% GLOSSAR.STY
+% Erzeugt ein Glossar oder Abk"urzungsverzeichnis
+\makeglossary
+
+% Unterdrückt Ausgabe der Seitenzahl. Um in jeder
+% Erklärung auf eine Seite zu verweisen, kann
+% definiert werden:
+% \newcommand{\glspage}[1]{ (Seite~#1)}
+\newcommand{\glspage}[1]{}
+
+% \glentry{Stichwort}{Erklärungstext}
+\newcommand{\glentry}[2]
+ {\glossary{#1@[#1] #2|glspage}}
+
+% Schließt den Buchstaben vor neuer Gruppe ein
+\newcommand{\glsgroup}[1]
+ {{\item[] \textbf{\Large #1}}}
+
+% Bindet das Verzeichnis ein
+\newcommand{\glshead}{\section{Glossar}}
+\newcommand{\printglossary}
+ {\InputIfFileExists{\jobname.gls}
+ {\glshead}
+ {}}