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}
Best Answer
The warnings are coming from the hyperlinks that are being created to targets that are not created. So put this in the preamble:
You still get these warnings.
So just silence them with this option:
I think that covers it!