ich möchte gern folgendes Beispiel nutzen um unter anderem mein Symbolverzeichnis in Tabellenform darzustellen. Anfangs hat das Kompilieren bei mir leider nicht funktioniert, da das Packet arydshln zu weit oben im Code eingebunden wurde:
hier folgt jetzt das funktionierende Beispiel:
\documentclass[ fontsize=12pt, bibliography=totocnumbered,% s BCOR=15mm, % Bindungskorrektur headings=normal, footsepline, plainfootsepline % %DIV=calc ]{scrbook} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english,main=ngerman]{babel} \usepackage{longtable} \usepackage[acronym=true, toc]{glossaries} \usepackage[babel,german=quotes]{csquotes} \usepackage{setspace} \usepackage{geometry} \usepackage{scrlayer-scrpage} %%%%%%% Eingindung von \usepackage{arydshln} hier kritisch \usepackage{booktabs} \usepackage[ %usenames, %svgnames, dvipsnames, % table, % hyperref, fixinclude, ]{xcolor} \usepackage[absolute]{textpos} \PassOptionsToPackage{hyphens}{url}\usepackage{hyperref} \usepackage{nomencl} \onehalfspacing \setlength{\topskip}{\ht\strutbox} % \pagestyle{scrheadings} \clearscrheadfoot \ihead{} \chead{} \ohead{} \ifoot{} \cfoot[\pagemark]{\pagemark} \ofoot{} \usepackage{arydshln} \newglossary{symbole}{sym}{slo}{Symbolverzeichnis} \glsaddkey{unit}{\glsentrytext{\glslabel}}{\glsentryunit}{\GLsentryunit}{\glsunit}{\Glsunit}{\GLSunit} \makeglossaries \newglossaryentry{symbi:S}{ name=\ensuremath{pi}, symbol={-}, description={Kreiszahl Pi}, type=symbole, unit={} } % sort=symbolpi, \newglossarystyle{MyStyle}{% \renewcommand*{\glsgroupskip}{\relax} \setglossarystyle{long3colheader}% base this style on the list style \renewenvironment{theglossary}{% Change the table type --> 3 columns \begin{longtable}{l l p{\glsdescwidth}}}% {\end{longtable}}% % \renewcommand*{\glossaryheader}{% Change the table header \bfseries Zeichen & \bfseries Einheit & \bfseries Beschreibung \\ % \hline \vspace{0.05cm} \endhead} \renewcommand*{\glossentry}[2]{% Change the displayed items \glstarget{##1}{\glossentryname{##1}} % & \glsunit{##1} & \glossentrydesc{##1} \tabularnewline } } \glsaddall \newacronym{MS}{MS}{Microsoft} \newacronym{GPIO}{GPIO}{General Purpose Input Output} \newacronym{CD}{CD}{Compact Disc} \pagenumbering{Roman} \begin{document} \tableofcontents \addcontentsline{toc}{chapter}{\listfigurename} \listoffigures \addcontentsline{toc}{chapter}{\listtablename} \listoftables \pagenumbering{arabic} \printglossary[type=\acronymtype, title=Abkürzungsverzeichnis] %und \printglossary[type=symbole, style = MyStyle] \chapter{start} Der Hersteller \gls{MS} hat auch schon mal eine \gls{CD} verschickt. Auf dieser war eine . \end{document}
! Missing { inserted.
<to be read again>
\setbox
l.2 \begin{theglossary}\glossaryheader
Kann mir das bitte jemand erklären?
Und sorry, dass das Mimimalbeispiel nicht wirklich minimal ist.