30

I am using \usepackage{glossaries}. How do you include it in \tableofcontents? The following does not do the trick:

\documentclass{book}

\usepackage{glossaries}
\makeglossaries

\newacronym{mwe}{MWE}{Minimum Working Example}

\begin{document}
\tableofcontents

\printglossaries

\clearpage

\chapter{Foo}
This is the call to the \Gls{mwe}

\end{document}

This is my output:

enter image description here

1 Answer 1

45

Use the toc package option or add \glstoctrue to your preamble. See section 2.2 of the manual for details.

By default, glossaries will appear as chapters if the document class features the \chapter command and as sections otherwise. You can change the default behavior using the section key-value-option; e.g.,

\usepackage[toc,section=section]{glossaries}

will result in section-like glossaries for the book and report class.

3
  • This option adds to toc as a chapter, how can i have it added as a section, have tried \let\chapter=\section, but doesn't seem to do the trick, my guess is that \addcontentsline{toc}{chapter}{...} is being called, so needs to be patched instead to \addcontentsline{toc}{section}{...}, but how? Jun 8, 2013 at 10:27
  • 1
    @ADP See updated answer.
    – lockstep
    Jun 8, 2013 at 12:20
  • perfect. Cheers. Jun 8, 2013 at 13:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .