Commit 749a487e authored by Bjar Ne's avatar Bjar Ne
Browse files

add symbols glossary to WZL Package

parent be6e8ac9
...@@ -175,4 +175,30 @@ ...@@ -175,4 +175,30 @@
{\thesubsection}{1.5cm}{} {\thesubsection}{1.5cm}{}
\titlespacing*{\subsection}{0pt}{16pt}{6pt} \titlespacing*{\subsection}{0pt}{16pt}{6pt}
% Glossary - Symbols
\RequirePackage[xindy,numberedsection]{glossaries}
\setlength{\glsdescwidth}{2cm}% Unit column
\setlength{\glspagelistwidth}{10cm}% Description column
\newglossary[slg]{symbolslist}{syi}{syg}{Formelzeichen und Abk\"urzungen}% no special chars in title!
\glsaddkey{unit}{\glsentrytext{\glslabel}}{\glsentryunit}{\GLsentryunit}{\glsunit}{\Glsunit}{\GLSunit}
\glssetnoexpandfield{unit}
\newglossarystyle{symbunitlong}{%
\setglossarystyle{long3col}% base this style on the list style
\renewcommand*{\glsgroupskip}{}% no space between groups
\renewcommand*{\glossaryheader}{% Change the table header
\bfseries Formelzeichen & \bfseries Einheit & \bfseries Beschreibung \\
\hline
\endhead}
\renewcommand*{\glossentry}[2]{% Change the displayed items
\glstarget{##1}{\glossentryname{##1}} %
& \glsunit{##1} %
& \glossentrydesc{##1} \tabularnewline %
}
}
\newcommand{\printWZLGlossary}{%
\glsaddall[types=symbolslist]%
\printglossary[type=symbolslist,style=symbunitlong]
}
\endinput \endinput
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment