Hi all, I'm new and I'm coming looking for help since I've got this problem I don't know how to resolve.
I'm using the glossary package and I've got a latex file which represents a common glossary to several other documents, so it's structure is (mainly) just a list of \glossary followed by a \printglossary with no text, something like this:
Now it's needed to have a index of the glossary terms, in other words I need in the end of document an alphabetical index of the words included in the glossary (the name attribute of the entries). A solution like this won't work:
The index is created with correct names but all refers to the same page, the page where the \index tags are written instead of the page where the glossary page is printed. So reading the glossary documentation I was trying to insert the index names via glossary commands (tricky thing, at least for me); after a few tries I came to something like
which insert after each entry and index mark, but the tag \entryname gives the default string "Notation" for each entry and not the name of the current entry. I'd need a way to refer to the actual name of the glossary entry and the trick would be done.
Any help on how to do this or on how to solve this problem in another way would be great. I hope my problem has been clearly explained, I'm here for any questions. Thanks in advance!
P.S. By the way, I don't know if this could be useful but I use the perl script to create the glossary and the makeindex command to generate the index and they've always worked without problems.
I'm not quite sure what you're asking as it sounds like you want the page number of the actual glossary in the entry's location list, which doesn't really make sense. However, the glossary package is obsolete and has known issues with occasionally getting the location numbers wrong, so you'd be better off using the replacement glossaries package. You can then define your terms and later reference them. The page numbers will refer to where ever you reference the term.