1

I would like to change the textwidth for the glossary, or better the predefined glossary style I'm using (to avoid a line break in the glossary header) without changing it for the entire document. is that possible?

\documentclass[12pt,twoside,a4paper]{book}
\usepackage[ngerman,british,USenglish]{babel} %lädt die deutsche Sprache
\usepackage[utf8]{inputenc}
\usepackage{siunitx}
\usepackage[acronym,toc,shortcuts]{glossaries}


\makeglossaries

\renewcommand*\entryname{Name}
\renewcommand*\descriptionname{Bedeutung}
\setglossarystyle{long3colheader}


\renewcommand*{\glsnamefont}[1]{\bfseries #1}%

\newglossaryentry{AT}
{
        name=Außentemperatur,
        description={gemessene Außentemperatur}
}

\newglossaryentry{ALT}
{
  name=Auslegungstemperatur,
  description={die minimale Außentemperatur, bei der die Heizlast des Gebäudes  \SI{100}{\percent} gedeckt ist}
}


\begin{document}

\clearpage
\printglossary[type=main,title={Bedeutung}]

\newpage


 \gls{AT} 
 \gls{ALT} 


\end{document}

1 Answer 1

1

To avioid the line break in the header, you can adjust the widths of the columns:

\documentclass[12pt,twoside,a4paper]{book}
\usepackage[ngerman,british,USenglish]{babel} %lädt die deutsche Sprache
\usepackage[utf8]{inputenc}
\usepackage{siunitx}
\usepackage[acronym,toc,shortcuts]{glossaries}


\makeglossaries

\renewcommand*\entryname{Name}
\renewcommand*\descriptionname{Bedeutung}
\setglossarystyle{long3colheader}
\addtolength{\glspagelistwidth}{0.6cm}
\addtolength{\glsdescwidth}{-2.5cm}


\renewcommand*{\glsnamefont}[1]{\bfseries #1}%

\newglossaryentry{AT}
{
        name=Außentemperatur,
        description={gemessene Außentemperatur}
}

\newglossaryentry{ALT}
{
  name=Auslegungstemperatur,
  description={die minimale Außentemperatur, bei der die Heizlast des Gebäudes  \SI{100}{\percent} gedeckt ist}
}


\begin{document}

\clearpage
\printglossary[type=main,title={Bedeutung}]

\newpage


 \gls{AT} 
 \gls{ALT} 


\end{document}
1
  • merci @samcarter; but is there a way to extent the entire width of the predefined style to gain more space?
    – aerioeus
    Apr 13, 2018 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.