Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the glossaries package to define a glossary (who would have thought of that). Yesterday I came across the feature to be able to use see={other glossary entry, another one, etc.} which I like very much. But using this feature something funny happened. I have one central glossary file for all my documents. So I am dependent on glossaries to only include those entries from the file that I actually did use in the document. But what happens now is that all entries for which the see attribute is used, are included in the glossaries even though not referenced in the document.

To clarify: If I create an empty LaTeX document inserting the glossary file via \input{glossary.tex} those entries that have the see attribute will end up in a glossary in the document, though the document itself is completely empty.

Is this behavior meant to be? Did I miss something?

I hope someone can tell me what I'm doing wrong (if this is not meant to be).

share|improve this question
3  
I guess you import your glossary entries after \makeglossaries. You have to do this before. Note furthermore that it is generally better to use \loadglsentries than \input to import glossary entries. –  mhp Aug 26 '11 at 8:23
    
Please excuse my late response, I was expecting an Email notification. Yes, that did the trick. Using \loadglsentries then immediately complained. –  Torsten Andre Aug 30 '11 at 6:17
1  
@mhp You should make your comment into an answer because using \loadglsentries seems to be what the OP was looking for. –  N.N. Aug 30 '11 at 8:25
    
@Torsten: Please consider registering your account, then email notification can be configured. –  Martin Scharrer Aug 30 '11 at 12:22
    
@mhp: Yes, please convert it to an answer. The wrong order of \makeglossaries and, in my case input lead to the trouble. loadglsentries does keep you from doing so because it needs to be called in the preamble. –  Torsten Andre Aug 30 '11 at 12:59
show 1 more comment

1 Answer

I guess you import your glossary entries after \makeglossaries. You have to do this before. Note furthermore that it is generally better to use \loadglsentries than \input to import glossary entries. Thus:

\documentclass{article}

\usepackage{glossaries}

\loadglsentries{glossary.tex}

\makeglossaries

\begin{document}

\printglossary

\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.