LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsTrouble with glossary

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Posts: 1
Joined: Wed Feb 07, 2018 5:51 pm

Trouble with glossary

Postby Pingandpong » Wed Feb 07, 2018 5:57 pm

Hello together,

i am writing my thesis with latex and recieved an template ffrom my university.
The glossarie entrys are defined in an extra folder and .tex-document

My code looks like this:



\addcontentsline{toc}{chapter}{List of Abbreviations}

\printglossary[type=main,nonumberlist, title={List of Abbreviations}]

My glossarie is printed but some of the entrys are double in it, and i cant find a way to just get them in once. Can anybody help me?
I am new here so just tell me if you need something else or i should change something.

thank you

User avatar
Posts: 271
Joined: Thu Nov 06, 2008 11:15 am

Postby nlct » Wed Feb 21, 2018 4:45 pm

You don't need:
  1. \addcontentsline{toc}{chapter}{List of Abbreviations}

Just use:
  1. \usepackage[acronym,toc]{glossaries}

By double entries, do you mean that there are multiple items with the same entry information, for example
  • FB Foo Bar, 1
  • FB Foo Bar, 1
or do you mean some entries have more than one page reference, for example
  • FB Foo Bar, 1, 2
If it's the second case, the problem is partially caused by
  1. \glsaddall

Instead, use
  1. \glsaddallused

at the end of the document. Then use the indexonlyfirst package option to only index the first use.

If it's the first case, then you need to supply a Infominimal working example to demonstrate the problem.

Nicola Talbot

Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 2 guests