[Tex/LaTex] Print glossary entry in acronym and long form

glossaries

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}}

Best Answer

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

Related Question