My question is really a further question of this post.
I've used the following code from there in my tex doc.:
\documentclass{article}
\usepackage{acronym}
\usepackage{etoolbox}
\makeatletter
\newif\if@in@acrolist
\AtBeginEnvironment{acronym}{\@in@acrolisttrue}
\newrobustcmd{\LU}[2]{\if@in@acrolist#1\else#2\fi}
\newcommand{\ACF}[1]{{\@in@acrolisttrue\acf{#1}}}
\makeatother
\begin{document}
\begin{acronym}
\acro{SRS}{\LU{S}{s}patial \LU{R}{r}eference \LU{S}{s}ystem}
\acro{DC}{\LU{D}{d}irect \LU{C}{c}urrent}
\end{acronym}
Batteries run on \ac{DC} and \ac{SRS} are different things.
\end{document}
This works great. But what happens if you would normally want the acronym lower case but, since it appears at the start of a sentence, you want only the first letter of the first word to be capitalised?
I'm now using the same code fragments as above, but when I start the sentence with:
\ac{dc} lorum impsom...
It gives me:
direct current lorum impsom...
instead of:
Direct current lorum impsom...
Is this an easy fix?
FYI, I've already tried \Ac{}
or \Acp{}
but they didn't work. I suspect I need to create a new command, but I don't know how, which is why I'm coming to you lovely people.
Further, I'm having issues with pluralisation. If I want to pluralise something, I would normally use the \acp{}
command. However, if I want capitals AND pluralisation, \ACP{}
doesn't work.
Best Answer
One possibility would be to switch to the
acro
package. It provides what you need: