MakeIndex, Nomenclature, Glossaries and AcronymsTrouble with glossary

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

Trouble with glossary

Post by Pingandpong »

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:

\usepackage[acronym]{glossaries}

%..text...

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

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

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
pingandpong

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Trouble with glossary

Post by nlct »

You don't need:

Code: Select all

\addcontentsline{toc}{chapter}{List of Abbreviations}
Just use:

Code: Select all

\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

Code: Select all

\glsaddall
Instead, use

Code: Select all

\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.

Regards
Nicola Talbot
Post Reply