I define my entry with:
\newglossaryentry{foo}{name={foo}, description={foo description}}
I can refer to it in a text with \Gls{foo} which puts a href link to Glossary. Is is possible to get a raw string with description from glossary entry? For example
The term \gls{foo} is defined as: \GlsDesc{foo}
or something like this. I'd like it to output a raw description text without hreflinks and such in the middle of the text.
So the output of that would be:
The term foo is defined as: foo description
Is it possible ?
EDIT: It would be nice if a reference to another glossary entry in description wouldn't break:
\newglossaryentry{bar}{name={bar}, description={bar description}}
\newglossaryentry{foo}{name={foo}, description={foo and \gls{bar} description}}
This is foo desc: \glsdesc{foo}
The reference is broken, this is the output:
This is foo desc: foo and ``gls-bar`` description
instead of expected:
This is foo desc: foo and bar description
\glsdesc
seems to break nested\gls
. Hope that someone knows a workaround or how to fix it.name
,description
andsymbol
keys. Hence, try\usepackage[sanitize=none]{glossaries}
and then\glsdesc*{foo}
. Note that, without sanitization, you have to protect fragile commands in the arguments of\newglossaryentry
. But fortunately,\gls
is robust.