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 would like to output acronyms with the first letter of a word in upper case when they are printed to the list of acronyms. However, it certain cases I would like to print the written out form in lower case (english language) when I add them to a paragraph using the \ac{} or \acf{} commands. A third case would be to use the mixed letter variant somewhere in the document.


% 1) In the list of acronyms.
Spatial Reference System (SRS)


% 2) In a paragraph.
... the spatial reference system (SRS) is important because ... 


% 3) Somewhere else in the document.
... it may happen that you still want to use the 
mixed variant when writing about the Spatial Reference System (SRS) ....


  • How would you configure acronyms to distiguish between those three cases?
share|improve this question
up vote 14 down vote accepted

You have to tell acronym both spellings:



\acro{SRS}{\LU{S}{s}patial \LU{R}{r}eference \LU{S}{s}ystem}
\acro{DC}{\LU{D}{d}irect \LU{C}{c}urrent}

Batteries run on \ac{DC} and \ac{SRS} are different things.

The macro \LU just takes the alternate forms as its arguments; the \AtBeginEnvironment instruction tells this macro that the first argument is to be used, since the conditional \if@in@acrolist returns true. In normal text the conditional returns false (note that at the end of the acronym environment the setting of the conditional will be automatically reverted, because environments form groups).

enter image description here

I've added a macro \ACF that acts similarly to \acf (printing the full version along with the acronym) that uses the uppercase version.

share|improve this answer
Thank you! Could you please add some comments to the modifications especially why you included the line: \expandafter\show\csname if@in@acrolist\endcsname? – JJD Sep 10 '12 at 10:33
@JJD Sorry, that line is a relict of my debugging. – egreg Sep 10 '12 at 10:40
@JJD I've added an \ACF macro. – egreg Sep 14 '12 at 17:35

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.