TransWikia.com

How to prevent page numbers from appearing on glossaries?

TeX - LaTeX Asked by Weslei on July 26, 2021

I am using the glossaries package to make a glossary. However I don’t want the page numbers where the entry is referenced to be shown after the description in the glossary. How can I do that? Actually I use in preamble:

usepackage[acronym]{glossaries}
makeglossaries

and inside the document:

printglossary[type=main,style=long]

I don’t want the page numbers to be displayed because there are entries that are added in preamble with the command glsadd{entry} and it will appear as present on page 1. And sometimes the page numbers list won’t be complete, that is, there will be parts of the text which will contain one term and it won’t reference directly the glossary.

How to prevent the page number to appear on glossary?

6 Answers

Throwing a glance at p. 90 of the glossaries manual, I suppose that the package option nonumberlist does the trick.

So change:

printglossary[type=main,style=long]

to:

printglossary[type=main,style=long,nonumberlist]

Correct answer by lockstep on July 26, 2021

Put the option nonumberlist as option of printglossary:

printglossary[type=main,style=long,nonumberlist]

If you print the glossary using printnoidxglossary use the option nonumberlist as well:

printnoidxglossary[type=acronymtype,title=Abreviations,nonumberlist]

printnoidxglossary[title=Symbol,nonumberlist]

Answered by user67464 on July 26, 2021

The glossaries package now has a command, glsaddallunused, that will add all unused terms to the glossary without including a phantom page number. Place it in your document after its content but before you print the glossaries. It will print accurate page numbers for terms used in your document but no page number for those that were not. Please see the latest documentation for more details.

Answered by Dylon on July 26, 2021

@Toivo Säwén, here is the sample. You may play removing nonumberlist in the package option of glossaries and see what happens.

documentclass{article}
usepackage{lipsum,hyperref}

usepackage[acronym, nonumberlist]{glossaries}
makenoidxglossaries
newglossaryentry{potato}{name={potato},plural={potatoes},description={starchy tuber}}
newglossaryentry{cabbage}{name={cabbage},description={vegetable with thick green or purple leaves}}
newglossaryentry{carrot}{name={carrot},description={orange root}}

setacronymstyle{long-short}
newacronym{svm}{SVM}{support vector machine}
newacronym{nehu}{NEHU}{North-Eastern Hill University}

begin{document}
lipsum[1-3]

Chop the gls{cabbage} and glspl*{carrot}. First meaning less appearance in gls{svm} and then gls{svm} and gls{nehu}

lipsum[1-6]

Slice the gls{cabbage} and glspl{potato}. Second appearance in gls{svm} and then gls{svm} and gls{nehu}

printnoidxglossaries
end{document}

Answered by Khaaba on July 26, 2021

What worked in my case was to load the glossaries package with option nonumberlist (see manual p.28):

usepackage[nonumberlist]{glossaries}

Answered by Lucas David on July 26, 2021

For me this worked to remove numbers being printed:

printacronyms[style=mcolindex, title=Abbreviations, nonumberlist]

style=mcolindex allows for 2 columns of abbreviations.

Answered by Nicolas on July 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP