TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I have many glossary words that describe the same, how do I neatly put these into the glossary? Ideally, something like:

\newglossaryentry{digest, hash, hash code} {
name=digest, description={The output of a hash function).}


   digest, hash or hash code The output of a hash function.

is what I'm looking for, and I can't seem to find this anywhere.

share|improve this question
up vote 7 down vote accepted

I'd define one entry (say, digest) in the usual way and then use \gls{digest} in the description field of the alternative entries. See section 8 of the glossaries manual for details.



\newglossaryentry{digest}{name={digest (\textmd{also} hash, hash code)},%
    text=digest,description={The output of a hash function}}

    {name=hash,description={\emph{See} \gls{digest}}}

\newglossaryentry{hash code}
    {name={hash code},description={\emph{See} \gls{digest}}}


\null\vfill% just for the example

Some text about \gls{digest}.

Some text about \gls{hash}.

Some text about \gls{hash code}.



enter image description here

share|improve this answer
That's clever! Brilliant, thanks. – Henning Klevjer Aug 20 '12 at 12:29

Your Answer


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.