Text Formatting ⇒ acro package: Italicize first occurance of term
-
- Posts: 42
- Joined: Tue Jul 23, 2013 6:48 pm
acro package: Italicize first occurance of term
For the acro package, is there a way to italicize the first occurance of the phrase, when the acronym is introduced, but without italicizing the acronym itself? The vanilla way of introducing a phrase and its acronym is \ac{label}, which expands to the phrase followed by its acronym in brackets. The command \textit{\ac{label}} causes both the phrase and the acronym to be italicized.
I know that the acronym package (as opposed to the acro package) does the proper italicization with \acfi{label}, at least according to
ftp://ftp.tex.ac.uk/pub//tex/macros/lat ... cronym.pdf. However, this is not recognized using the acro package. I have gotten the acronym package to work by modifying the LaTeX processing steps to use makeindex, but the solution is not straightforward enough for me to have request that my co-author use the same solution. Hopefully, the italication can be done within the acro package.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 42
- Joined: Tue Jul 23, 2013 6:48 pm
Re: acro package: Italicize first occurance of term
acro package: Italicize first occurance of term
On TeX.sx gmedina already gave the answer: use the
first-long-format
option:Code: Select all
\acsetup{first-long-format=\itshape}
-
- Posts: 42
- Joined: Tue Jul 23, 2013 6:48 pm