Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer
    
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? –  Nicholas Hamilton Jun 8 '13 at 10:27
    
@ADP See updated answer. –  lockstep Jun 8 '13 at 12:20
    
perfect. Cheers. –  Nicholas Hamilton Jun 8 '13 at 13:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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