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

I want to use acronym package for acronyms. And for that I use \ac and \acs in text and \caption or \section. However, in \caption and \section I don't want hyperlinks to the acronym table, but only in the text.

Therefore, is there a way to define new two commands based on \ac and \acs that when used do not make hyperlink, but work in the same behavior as the previous ones and includes the acronyms in the table of acronym?

Probably part of the code of acronyms.sty shall be used for that. But I do not know where to start.

share|improve this question
Do you wwant to totally suppress the hyperlinks or just "hiding" them (showing the acronym without special colors or borders, just as plain text) would be enough? – Gonzalo Medina Jul 26 '12 at 3:03
I want really disable then, that way they will not appear when I use \tableofcontents (and so on), but will appear in the list of acronyms. – cacamailg Jul 26 '12 at 12:15
up vote 5 down vote accepted

You can define a ‘caption’ sibling of \acs as follows:


Full minimal example:











  \acro{AA}{An Acronym}



Analogously, you could define a ‘caption’ sibling of \ac. But, obviously, it’s advisable to use the context-independent commands \acs, \acl etc. in captions and section headings.

share|improve this answer
I will try your solution. It seems promising. Thanks! – cacamailg Jul 26 '12 at 12:17
Thanks. It works very well! – cacamailg Jul 26 '12 at 14:16

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.