I want to put my glossary at the end of my document. I succeeded to do that. But the problem is within the table of contents (TOC): It shows the glossary twice (at the beginning and at the end).

It appears at:

1. the begining because of "\loadglsentries" (I am using an external file):
2. the end where I placed "\printglossary" while using the option "toc" with the "glossaries" package:

My question is: how could I just show the glossary at the end of TOC, in its right place?

Thank you and sorry (it is my first post!)

• That's not normal behaviour. Perhaps you have `\addcontentsline` line somewhere in your document that's confusing things. (You also have two bibliography entries for page 45, so there seems to be some duplication in your document.) Sep 5, 2018 at 18:06
• @NicolaTalbot , yes, I had two entries for the bibliography because I used \addcontentsline and added the "tocbibind" package. I solved it by adding the option 'notbib" like this: \usepackage[nottoc,notbib,notindex]{tocbibind}. For the glossary, I checked the whole code (main.tex) but there is no \addcontentsline for it. Finally I checked my glossary.tex and surprise! There is an \addcontentsline for the glossary! I spend hours on this problem. Really, thank you very much !
– Lyes
Sep 6, 2018 at 7:35