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.

I'm using the acronym package and I'm trying to add generic styling. Specifically, I want the first mention of the acronym to expand the long form in italics.

What I've done so far is to say:

\acrodef{label}[short]{\textit{long form}}

And that seems to work as long as you don't need to repeat the long form (which I don't). However it clashes when you need the plural form \acp{lable}, as the plural "s" will not be typeset in italics:

long forms <- wrong
long forms <- correct

Is there a way to tell the acronym package to typeset the long form in italics?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted
\renewcommand*{\acffont}[1]{\textit{#1}}

sets the font of the entire full expression, including the long form, parentheses and acronym. In order to only make the long form italics, one has to override the italic mode for the remainder of the full expression by adding:

\renewcommand*{\acfsfont}[1]{\textnormal{#1}}
share|improve this answer
    
Coincidentally, I just found this, too. However, I cannot get the long form to be set in italics, but not the part in parentheses: That is, I want "long form: (short)" instead of "long form (short)" but \acffont seems to encompass the entire thing. –  bitmask Nov 30 '12 at 15:17
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.