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 know that it doesn't make much sense to create a glossary and then not want to use it. I print the glossary in my main document. But now I have a presentation with beamer slides, where I just copy equations from the main document. In the equations, most variables are glossary entries. But it makes no sense for me to print a glossary in my presentation. Then I get all those warnings that an entry has been referenced but does not exist, which is very annoying. Is there any way to get around this?

\documentclass{beamer}
\usepackage{lmodern}
\usepackage{glossaries}

\newglossaryentry{bp}{%type=symbols, In the original there are 2 different types of glossaries
name={\ensuremath{BP}},sort=bp,description={Basispreis einer Option}}
\makeglossaries
\begin{document}

\frame{\gls{bp} has to give the output \ensuremath{BP}.}

%\printglossaries
\end{document}
share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

The warnings are coming from the hyperlinks that are being created to targets that are not created. So put this in the preamble:

\glsdisablehyper

You still get these warnings.

Package glossaries Warning: \makeglossaries hasn't been used,
the glossaries will not be updated.

Package glossaries Warning: No \printglossary or \printglossaries
found. This document will not have a glossary.

So just silence them with this option:

\usepackage[nowarn]{glossaries}

I think that covers it!

share|improve this answer
    
Thanks, but unfortunately this doesn't work. I need the output to be Test. T is only the identifier. Actually my glossary entries are a little more complicated than in my example, I will add that as it does seem to matter. –  meep.meep Apr 29 '11 at 10:32
    
Sorry for misunderstading—I actually haven't used the package before so I wasn't sure of the syntax. I've edited. –  Matthew Leingang Apr 29 '11 at 13:11
    
That's perfect! Thanks a lot! –  meep.meep Apr 29 '11 at 13:22
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.