0

I'm using Glossary package and its printing the glossary list with a number at the end of each item (I'm assuming its chapter number).

Is there a way NOT to print this number?

Thanks!!

  • 5
    Welcome to TeX.SX! I would have expected it is the page number. Anyway, there are many ways to produce glossaries in TeX. Can you show us an MWE of how you get yours, please? – moewe Jun 24 '18 at 15:27
  • 3
    Note that the glossary package is obsolete and has been replaced by glossaries. – moewe Jun 24 '18 at 16:10
  • With glossaries, I've never got a number. – cfr Jun 24 '18 at 17:01
  • It will only be the chapter number if you have used counter=chapter. The default is the page number. – Nicola Talbot Jun 25 '18 at 12:32
4

That's the location or number list. It can be suppressed with the package option nonumberlist (assuming you actually meant the glossaries package, not the obsolete glossary package).

MWE (demonstrating the default behaviour):

\documentclass{report}

\usepackage{glossaries}

\makeglossaries

\newglossaryentry{sample}{name={sample},description={an example}}

\begin{document}
\chapter{Sample}

\gls{sample} %page 1

\chapter{Another Sample}

\gls{sample}% page 2

\printglossaries

\end{document}

Glossary sample an example. 1, 2

Without number list:

\documentclass{report}

\usepackage[nonumberlist]{glossaries}

\makeglossaries

\newglossaryentry{sample}{name={sample},description={an example}}

\begin{document}
\chapter{Sample}

\gls{sample} %page 1

\chapter{Another Sample}

\gls{sample}% page 2

\printglossaries

\end{document}

Glossary sample an example.

Alternatively:

\documentclass{report}

\usepackage{glossaries}

\makeglossaries

\newglossaryentry{sample}{name={sample},description={an example}}

\begin{document}
\chapter{Sample}

\gls{sample} %page 1

\chapter{Another Sample}

\gls{sample}% page 2

\printglossary[nonumberlist]

\end{document}

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.