4

I have tried to rename the header title of the glossary and make the glossary entries bold, to no avail. Could someone help me out pls. merci A

\documentclass[12pt,twoside,a4paper]{book}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[acronym,toc,shortcuts]{glossaries}


\makeglossaries

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


\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  100\% gedeckt ist}
}


\begin{document}

\clearpage
\printglossaries

\newpage


 \gls{AT} 
 \gls{ALT} 


\end{document}
4
  • 1
    Off-Topic: \SI{100}{\percent} improves the display of the 100%, requires \usepackage{siunitx}, however
    – user31729
    Apr 13, 2018 at 15:27
  • What do you mean with header title? The name Glossar?
    – user31729
    Apr 13, 2018 at 15:29
  • merci Christian
    – aerioeus
    Apr 13, 2018 at 15:38
  • 1
    The correct way to thank users is to upvote and accept answers ;-)
    – user31729
    Apr 13, 2018 at 16:01

2 Answers 2

4

The glossary title can be changed by \printglossary[type=main,title={foo}], for example.

The \glsnamefont macro contains the font that should be used for the glossary name entries.

\documentclass[12pt,twoside,a4paper]{book}
\usepackage[ngerman]{babel}
\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}

enter image description here

4
  • Great. Merci @Christian; exactly what I had in mind.
    – aerioeus
    Apr 13, 2018 at 15:44
  • But what if my glossary is not being printed like that? and in some other programatic way? is there a way to change the title after it is printed? or change a variable?
    – gota
    Jun 27, 2019 at 19:26
  • Didnt work for me, and even in your screenshot the \entryname and \descriptionname do not match.
    – JPW
    Feb 17, 2020 at 10:03
  • I solved the problmen by using \AtBeginDocument{\renewcommand*{\entryname}{xxxxxxx}}% seems like this is needed if youre using babel.
    – JPW
    Feb 17, 2020 at 15:31
2

As you are using the babel package, you can change the title of the glossary like this:

\documentclass[12pt,twoside,a4paper]{book}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[acronym,toc,shortcuts]{glossaries}

\addto\captionsngerman{% 
\renewcommand*{\glossaryname}{Bedeutung}%
}
\makeglossaries


\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  100\% gedeckt ist}
}


\begin{document}

\clearpage
\printglossaries

\newpage


 \gls{AT} 
 \gls{ALT} 


\end{document}
2
  • 1
    I think you need % after \renewcommand*{\glossaryname}{Bedeutung} otherwise you could end up with an unwanted space if the language switches. Apr 13, 2018 at 16:33
  • 1
    @NicolaTalbot Thanks a lot for your comment! Apr 13, 2018 at 16:45

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.