# Capitalising the first letter of an acronym?

I'm using the acronym package in my document and in several instances I want to start a sentence with the expanded acronym. Is there any way of telling the package to capitalise the first letter?

For example:

\acrodef{TLA}{three-letter acronym}
\acrodefplural{TLA}{three-letter acronyms}
...end of one sentence. \aclp{TLA} are acronyms with three letters...


This will yield:

...end of one sentence. three-letter acronyms are acronyms with three letters...

-
@Stefan That seems to be asking how to capitalise the first letter in the acronym list; I want a way to optionally capitalise the first letter of the expanded acronym when used in text (and I'm not sure how to adapt what was suggested in the answers for my purposes). I was hoping there'd be a family of commands like \Acl, \Acf, etc. that would do this, but it seems there isn't. (Maybe the author should introduce these?) –  Will Vousden Nov 1 '12 at 16:47
Maybe you can use this: latex-community.org/forum/viewtopic.php?f=5&t=9966 –  Hans-Peter E. Kristiansen Nov 2 '12 at 23:56

Just a couple of macros, with no attempt to give the complete set:

\documentclass{article}
\usepackage{acronym}

\makeatletter
\newif\ifAC@uppercase@first
\def\Aclp#1{\AC@uppercase@firsttrue\aclp{#1}\AC@uppercase@firstfalse}
\def\AC@aclp#1{%
\ifcsname fn@#1@PL\endcsname
\ifAC@uppercase@first
\expandafter\expandafter\expandafter\MakeUppercase\csname fn@#1@PL\endcsname
\else
\csname fn@#1@PL\endcsname
\fi
\else
\AC@acl{#1}s
\fi
}
\edef\AC@uppercase@write{\string\ifAC@uppercase@first\string\expandafter\string\MakeUppercase\string\fi\space}
\def\AC@acrodef#1[#2]#3{%
\@bsphack
\protected@write\@auxout{}{%
\string\newacro{#1}[#2]{\AC@uppercase@write #3}%
}\@esphack
}
\def\Acl#1{\AC@uppercase@firsttrue\acl{#1}\AC@uppercase@firstfalse}
\makeatother

\acrodef{TLA}{three-letter acronym}
\acrodefplural{TLA}{three-letter acronyms}

\begin{document}
\Aclp{TLA} are acronyms with three letters.
\Acl{TLA} at the start of another sentence.
\end{document}


-