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.

Is there a way to have a word listed in the glossary in its acronym AND long form?

LED light-emitting diode

light-emitting diode A semiconductor light source.

I tried with two entries, but it doesn't seem right.. and is problematic with respect to the number list.

\newglossaryentry{light-emitting diode}
{
  name={light-emitting diode},
  description={A semiconductor light source}
}

\newacronym{led}{LED}{\gls{light-emitting diode}}
share|improve this question
add comment

1 Answer 1

You seem to want a combination of glossary and acronym list. How about typesetting your entry this way?

\documentclass{article}

\usepackage{glossaries}
\makeglossaries

\newglossaryentry{LED}{%
  name={LED},
  first={light-emitting diode (LED)},
  description={Light-emitting diode -- a semiconductor light source},
}

\textheight=80pt% just for the example

\begin{document}

Some text about \gls{LED}.

Some more text about \gls{LED}.

\printglossaries

\end{document}

enter image description here

share|improve this answer
    
There are two issues with this solution: how do I refer to the long form without resetting the first use flag? For acronyms there's \acrlong (useful if a word hasn't been used for a while or for emphasis). And also, I'd like a separate entry because someone looking for "Light-emitting diode" in the alphabetically ordered list will find nothing. For a long glossary of very specialized terminology this can be annoying (especially in printed form). –  estolua Jan 16 '12 at 23:15
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.