# How to remove the section name of \printglossary?

I added a heading for my glossary with `\addcontentsline`.

However the `\printglossary` command still creates an additional section heading.

How can this be removed?

Screenshot:

Code:

``````% Glossary
\newpage
\printglossary[style=altlist]

% Acronyms
\deftranslation[to=German]{Acronyms}{Abkürzungsverzeichnis}
\newpage
\printglossary[type=\acronymtype,style=dontgroup]
``````
-
It is possible to redefine `\printglossary` to make a chapter heading instead of `\section`. See, for example, the `\setglossarysection{<name>}` function or `section=...` key-value (p 33 of the `glossaries` documentation). Could you provide a minimal working example (MWE) rather than a code snippet? –  Werner Feb 13 at 0:34
`\addcontentsline` followed by `\newpage` is clearly wrong. Say `\setglossarysection{chapter}` and remove the `\addcontentsline` declarations. –  egreg Feb 13 at 0:40
This has helped me! Thanks to egreg. Thanks also to the other proposals! \setglossarysection{chapter} \printglossary –  Benny Neugebauer Feb 13 at 0:59

Your code example is far from being a MWE, but I guess you are using the `glossaries` package with the options `toc` and `section` within a `book` class. When loading this package with the `toc` option the entries in the ToC are generated, while the `section` option makes the glossaries as sections. Therefore, change the package loading to

``````\usepackage[acronymtoc]{glossaries}  % no section option
``````

and print the glossaries without the `\addcontentsline` with

``````\cleardoublepage
\printglossary[style=altlist]
\deftranslation[to=German]{Acronyms}{Abkürzungsverzeichnis}
\cleardoublepage
\printglossary[type=\acronymtype,style=dontgroup]
``````
-