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

Consider the following minimal example:


\usepackage[acronym, shortcuts]{glossaries}

\newacronym{snr}{SNR}{\abbr{s}ignal-to-\abbr{n}oise \abbr{r}atio}

    This: \gls{snr} looks as desired, but \acl{snr} doesn't.

I want the underlining to appear on the first use of an acronym (i.e. for the "full" version) and when I print the glossary (i.e. in the "description") but no underlining for the "long" version when I use \acl. My main problem is that I don't know how to toggle the \abbr command such that it does essentially nothing. I tried using something like


but that doesn't work. Any suggestions?

share|improve this question
up vote 1 down vote accepted

Possibly not the most elegant solution, but it seems to work. Save the original meaning of \acl, then redefine the command so that it disables \@@underline inside a group and then calls its own original meaning.





\newacronym{snr}{SNR}{\abbr{s}ignal-to-\abbr{n}oise \abbr{r}atio}


This: \gls{snr} looks as desired, and this: \acl{snr} too.

And also the printed glossary:


share|improve this answer
The solution works! Thank you! – TriSSSe Jun 5 '11 at 12:07

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.