von Bartman » Do 31. Okt 2019, 20:48
Benutze die Option ucmark, die Du im Abschnitt 2.2 "Sectioning, Headings and TOC Options" in glossaries-user.pdf findest.
Bei der Gelegenheit habe ich mich zu ein paar Änderungen hinreißen lassen. Das betrifft das Format der letzten Spalte im Symbolverzeichnis und die Befehle von
fancyhdr.
\documentclass[a4paper,12pt]{article}
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{array}% wird von tabularx geladen
\usepackage{ragged2e}% für \RaggedRight
\usepackage[
nomain,
nonumberlist,
toc,
acronym,
nopostdot,
automake,
ucmark% <- eingefügt
]{glossaries}
\newglossary[slg]{symbols}{syi}{syg}{Symbolverzeichnis}
%\newglossary*{symbols}{Symbolverzeichnis}% Alternative
\newglossarystyle{symbole}
{%
\renewenvironment{theglossary}
{\begin{longtable}[l]{
@{}*2{p{\dimexpr(\textwidth-4\tabcolsep)/3}}
>{\RaggedRight}p{\dimexpr(\textwidth-4\tabcolsep)/3}@{}
}
}
{\end{longtable}}
\renewcommand*{\glossaryheader}
{\bfseries Symbol
&\bfseries Einheit
&\bfseries Bezeichnung\\
\endhead}
%\renewcommand*{\glsgroupheading}[1]{}
\renewcommand*{\glossentry}[2]{%
\glstarget{##1}
{\glossentryname{##1}}
& \glossentrysymbol{##1}
& \glossentrydesc{##1}
\tabularnewline
}
\renewcommand*{\glsgroupskip}{\relax}%
}
\newglossarystyle{abkuerzungen}
{%
\renewenvironment{theglossary}
{\begin{longtable}[l]{@{}*2{p{\dimexpr(\textwidth-4\tabcolsep)/2}}@{}}}
{\end{longtable}}
\renewcommand*{\glossaryheader}{}
\renewcommand*{\glsgroupheading}[1]{}
\renewcommand*{\glossentry}[2]{%
\glstarget{##1}
{\textbf{\glossentryname{##1}}}
& \glossentrydesc{##1}
\tabularnewline
}
\renewcommand*{\glsgroupskip}{\relax}%
}
\makeglossaries
\usepackage{fancyhdr}
%%======= Kopf und Fußzeile in FANCY=======
\pagestyle{fancy}
%
\fancyhead{}
\fancyhead[R]{\slshape\leftmark}
%%
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
%% Beispiele
\newacronym{a_ems}{EMS}{Einmassenschwinger}
\newacronym{a_sz}{SZ}{Schwingungszustand}
\newglossaryentry{sym_ld}{
name={\ensuremath{D}},
symbol={[-]},
description={Lehrsches Dämpfungsmaß},
sort=Lehrsches Dämpfungsmaß,
type=symbols
}
\begin{document}
\gls{a_sz} und \gls{a_ems} \gls{sym_ld}
\tableofcontents
\newpage
\printacronyms[title=Abkürzungsverzeichnis,style=abkuerzungen]
\newpage
\printglossary[type=symbols,style=symbole]
\newpage
\section{In Capslock}
\end{document}
Benutze die Option [tt]ucmark[/tt], die Du im Abschnitt 2.2 "Sectioning, Headings and TOC Options" in [tt]glossaries-user.pdf[/tt] findest.
Bei der Gelegenheit habe ich mich zu ein paar Änderungen hinreißen lassen. Das betrifft das Format der letzten Spalte im Symbolverzeichnis und die Befehle von [p]fancyhdr[/p].
[code]\documentclass[a4paper,12pt]{article}
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{array}% wird von tabularx geladen
\usepackage{ragged2e}% für \RaggedRight
\usepackage[
nomain,
nonumberlist,
toc,
acronym,
nopostdot,
automake,
ucmark% <- eingefügt
]{glossaries}
\newglossary[slg]{symbols}{syi}{syg}{Symbolverzeichnis}
%\newglossary*{symbols}{Symbolverzeichnis}% Alternative
\newglossarystyle{symbole}
{%
\renewenvironment{theglossary}
{\begin{longtable}[l]{
@{}*2{p{\dimexpr(\textwidth-4\tabcolsep)/3}}
>{\RaggedRight}p{\dimexpr(\textwidth-4\tabcolsep)/3}@{}
}
}
{\end{longtable}}
\renewcommand*{\glossaryheader}
{\bfseries Symbol
&\bfseries Einheit
&\bfseries Bezeichnung\\
\endhead}
%\renewcommand*{\glsgroupheading}[1]{}
\renewcommand*{\glossentry}[2]{%
\glstarget{##1}
{\glossentryname{##1}}
& \glossentrysymbol{##1}
& \glossentrydesc{##1}
\tabularnewline
}
\renewcommand*{\glsgroupskip}{\relax}%
}
\newglossarystyle{abkuerzungen}
{%
\renewenvironment{theglossary}
{\begin{longtable}[l]{@{}*2{p{\dimexpr(\textwidth-4\tabcolsep)/2}}@{}}}
{\end{longtable}}
\renewcommand*{\glossaryheader}{}
\renewcommand*{\glsgroupheading}[1]{}
\renewcommand*{\glossentry}[2]{%
\glstarget{##1}
{\textbf{\glossentryname{##1}}}
& \glossentrydesc{##1}
\tabularnewline
}
\renewcommand*{\glsgroupskip}{\relax}%
}
\makeglossaries
\usepackage{fancyhdr}
%%======= Kopf und Fußzeile in FANCY=======
\pagestyle{fancy}
%
\fancyhead{}
\fancyhead[R]{\slshape\leftmark}
%%
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
%% Beispiele
\newacronym{a_ems}{EMS}{Einmassenschwinger}
\newacronym{a_sz}{SZ}{Schwingungszustand}
\newglossaryentry{sym_ld}{
name={\ensuremath{D}},
symbol={[-]},
description={Lehrsches Dämpfungsmaß},
sort=Lehrsches Dämpfungsmaß,
type=symbols
}
\begin{document}
\gls{a_sz} und \gls{a_ems} \gls{sym_ld}
\tableofcontents
\newpage
\printacronyms[title=Abkürzungsverzeichnis,style=abkuerzungen]
\newpage
\printglossary[type=symbols,style=symbole]
\newpage
\section{In Capslock}
\end{document}[/code]