von PatrickW » Mi 17. Feb 2021, 20:08
Hallo!
Ich hoffe ich habe mein Anliegen dem richtigen Forum zugeordnet. Ich möchte das Einrücken meines Glossaries Style verhindern und verstehe nicht, wieso es bei dem longtable "Indizes" mit den selben Deklarierungen funktioniert und beim Glossaries Style nicht. Habe ein Screenshot hinzugefügt.
\documentclass[a4paper, 12pt]{scrreprt}
\usepackage[automark]{scrlayer-scrpage}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[%%%%
section= section,
]{glossaries}
% Latin/Greek as type
\newglossary*{latin}{Lateinische Formelzeichen}
% Define new glossary style with symbol, description, unit (name)
\newglossarystyle{symbole}{
% put the glossary in a longtable environment:
\renewenvironment{theglossary}%
{\begin{longtable}[l]{@{}lp{\glsdescwidth}lp{\glspagelistwidth}}}
{\end{longtable}}
\renewcommand*{\glossaryheader}{\bfseries{Symbol} & \bfseries{Beschreibung}& \bfseries{Einheit}
%\\[0.2cm]
\endhead}
\renewcommand*{\glossentry}[2]{
\glstarget{##1}{\glossentryname{##1}}
& \glossentrydesc{##1}
& \glossentrysymbol{##1}
\tabularnewline
}
\renewcommand*{\glsgroupskip}{}
}
\makenoidxglossaries
\newglossaryentry{sym:n_planet}{
name={\ensuremath{N}},
symbol={-},
description={Anzahl der Planeten},
sort= N,
type=latin,
}
\newglossaryentry{sym:t_run}{
name={\ensuremath{t_{\mathrm{run}}}},
symbol={s},
description={Hochlaufzeit},
sort= t_run,
type=latin,
}
\newglossaryentry{sym:time}{
name={\ensuremath{t}},
symbol={s},
description={Zeit},
sort= t ,
type=latin,
}
\begin{document}
\addchap{Symbolverzeichnis}
\glsaddall
\printnoidxglossary[type=latin, style=symbole]
\section*{Indizes}
\begin{longtable}[l]{@{}p{2cm}l}
\textbf{Symbol} & \textbf{Beschreibung} \\
\endhead
i & Planet \\
pc & Planetenträger \\
pl & Planet \\
R & Hohlrad \\
S & Sonnenrad \\
\end{longtable}
% Ende Kolumnentitel "Symbolverzeichnis"
\end{document}
[\code]
- Dateianhänge
-
Hallo!
Ich hoffe ich habe mein Anliegen dem richtigen Forum zugeordnet. Ich möchte das Einrücken meines Glossaries Style verhindern und verstehe nicht, wieso es bei dem longtable "Indizes" mit den selben Deklarierungen funktioniert und beim Glossaries Style nicht. Habe ein Screenshot hinzugefügt.
[code]
\documentclass[a4paper, 12pt]{scrreprt}
\usepackage[automark]{scrlayer-scrpage}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[%%%%
section= section,
]{glossaries}
% Latin/Greek as type
\newglossary*{latin}{Lateinische Formelzeichen}
% Define new glossary style with symbol, description, unit (name)
\newglossarystyle{symbole}{
% put the glossary in a longtable environment:
\renewenvironment{theglossary}%
{\begin{longtable}[l]{@{}lp{\glsdescwidth}lp{\glspagelistwidth}}}
{\end{longtable}}
\renewcommand*{\glossaryheader}{\bfseries{Symbol} & \bfseries{Beschreibung}& \bfseries{Einheit}
%\\[0.2cm]
\endhead}
\renewcommand*{\glossentry}[2]{
\glstarget{##1}{\glossentryname{##1}}
& \glossentrydesc{##1}
& \glossentrysymbol{##1}
\tabularnewline
}
\renewcommand*{\glsgroupskip}{}
}
\makenoidxglossaries
\newglossaryentry{sym:n_planet}{
name={\ensuremath{N}},
symbol={-},
description={Anzahl der Planeten},
sort= N,
type=latin,
}
\newglossaryentry{sym:t_run}{
name={\ensuremath{t_{\mathrm{run}}}},
symbol={s},
description={Hochlaufzeit},
sort= t_run,
type=latin,
}
\newglossaryentry{sym:time}{
name={\ensuremath{t}},
symbol={s},
description={Zeit},
sort= t ,
type=latin,
}
\begin{document}
\addchap{Symbolverzeichnis}
\glsaddall
\printnoidxglossary[type=latin, style=symbole]
\section*{Indizes}
\begin{longtable}[l]{@{}p{2cm}l}
\textbf{Symbol} & \textbf{Beschreibung} \\
\endhead
i & Planet \\
pc & Planetenträger \\
pl & Planet \\
R & Hohlrad \\
S & Sonnenrad \\
\end{longtable}
% Ende Kolumnentitel "Symbolverzeichnis"
\end{document}
[\code]