1

I have a table of contents and I use the glossaries package to make my glossaries. At some point in my code, I have the command \printglossary[type=glossarytype] which prints my glossary. The problem is the glossary word in my table of contents is not aligned with my chapters (which are numbered). I need my glossary entry in ToC to have a little space at the left, where would normally go a chapter number.

1
  • 1
    Welcome to TeX.sx! Your question was migrated here from another stackexchange site. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question.
    – lockstep
    Aug 25, 2012 at 16:21

2 Answers 2

3

Use the package option numberline (in addition to toc).

\documentclass{report}

\usepackage[toc,numberline]{glossaries}
\makeglossaries

\newglossaryentry{electrolyte}{name=electrolyte,%
    description={solution able to conduct electric current}}

\begin{document}

\tableofcontents

\chapter{foo}

Some text about \gls{electrolyte}.

\printglossaries

\end{document}

enter image description here

0

If you must have it like that, I guess you could remove [toc] from the package declaration; create a new chapter called 'Glossary' and \printglossary[type=glossarytype] there. There may be a "better" way, but that'd do it for ya.

Your Answer

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