Commit f04c4c83 authored by Lukas Janek Körfer's avatar Lukas Janek Körfer
Browse files

Improved section on symbols and acronyms

parent 11352cfb
......@@ -175,30 +175,45 @@
{\thesubsection}{1.5cm}{}
\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}
% Glossaries
\RequirePackage{tabu}
\RequirePackage[xindy,symbols,acronym,nomain]{glossaries}
\renewcommand{\glossarysection}[2][]{}
\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 %
\glsaddkey{unit}{\glsentrytext{\glslabel}}{\glsentryunit}{\GLsentryunit}{\glsunit}{\Glsunit}{\GLSunit}
\newglossarystyle{symbols}{
\renewenvironment{theglossary}
{\begin{longtabu} to \textwidth {XXX[3]}}
{\end{longtabu}}
\renewcommand*{\glsgroupskip}{}
\renewcommand*{\glossaryheader}{%
\textbf{Formelzeichen} &%
\textbf{Einheit} &%
\textbf{Beschreibung} \\ \hline \endhead%
}
\renewcommand*{\glossentry}[2]{%
\glstarget{##1}{\glossentryname{##1}} &%
\glsunit{##1} &%
\glossentrydesc{##1} \tabularnewline%
}
}
\newcommand{\printWZLGlossary}{%
\glsaddall[types=symbolslist]%
\printglossary[type=symbolslist,style=symbunitlong]
\newglossarystyle{acronyms}{
\renewenvironment{theglossary}
{\begin{longtabu} to \textwidth {X[2]X[3]}}
{\end{longtabu}}
\renewcommand*{\glsgroupskip}{}
\renewcommand*{\glossaryheader}{%
\textbf{Abkürzung} &%
\textbf{Beschreibung} \\ \hline \endhead%
}
\renewcommand*{\glossentry}[2]{%
\glstarget{##1}{\glossentryname{##1}} &%
\glossentrydesc{##1} \tabularnewline%
}
}
\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