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:
Code: Select all
\glossary{name={x}, description={abc}}
\glossary{name={y}, description={def}}
\glossary{name={z}, description={ghi}}
...
\printglossary
Code: Select all
\index{x}
\glossary{name={x}, description={abc}}
\index{y}
\glossary{name={y}, description={def}}
\index{z}
\glossary{name={z}, description={ghi}}
...
\printglossary
\printindex
Code: Select all
\renewcommand{\glsafternum}{\index{\entryname}}
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.