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 am willing to use the acronym package in a paper and I'd like to show the acronym in \textsc.

Unfortunately the documentation of the package says that my acronym can be only an ASCII character. http://staff.science.uva.nl/~polko/HOWTO/LATEX/acronym.html

Is there a way to do what I'd like to do?

share|improve this question
2  
The label associated with the acronym can only be ASCII. The acronym itself can be anything supported by LaTeX. Your link mentions: "You can define acronyms with \acrodef{label}[acronym]{written out form}, for example \acrodef{etacar}[$\eta$ Car]{Eta Carinae}, with the restriction that the label should be simple ASCII." Note the use of math mode $..$ in the acronym. Do you want \textsc as the default for all your acronyms or just some? –  Werner Dec 8 '11 at 20:01
    
For me it is ok to set something like \acrodef{API}[\textsc{API}]{Application Programming Interface} but it is not working as expected and what I get is the usual plain text. –  mariosangiorgio Dec 8 '11 at 20:58
    
Nevermind, I tried it again and it worked. It just required an additional compilation. –  mariosangiorgio Dec 8 '11 at 20:59
    
I've converted my comment into an answer. –  Werner Dec 8 '11 at 21:01
add comment

1 Answer 1

up vote 4 down vote accepted

The label associated with the acronym can only be ASCII. The acronym itself can be anything supported by LaTeX. Your link mentions:

You can define acronyms with \acrodef{label}[acronym]{written out form}, for example \acrodef{etacar}[$\eta$ Car]{Eta Carinae}, with the restriction that the label should be simple ASCII.

Note the use of math mode $..$ in the acronym. As such, using \acrodef{..}[\textsc{...}]{...} will achieve the desired output.

share|improve this answer
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.