1

How do I modify the \acro command from the acronym package in order to capitalize the first letter in the acronym list but still keeping a lower case letter in the text.

The accepted solution in: Capitalize the first letter in acronym list from isn't working. The alternative solution also doesn't work.

\usepackage[utf8]{inputenc}
\usepackage{acronym}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\AC@@acro}{] #3}{] \MakeUppercase #3}{}{}
\patchcmd{\AC@@acro}{] #3}{] \MakeUppercase #3}{}{}
\makeatother

%%% Alternative way (commented out because you may not have the package) % \usepackage{regexpatch} % \makeatletter % \xpatchcmd*{\AC@@acro}{] #3}{] \MakeUppercase #3}{}{} % \makeatother

\begin{document} \begin{acronym} \acro{T}{test} \end{acronym}

This is a \ac{T}. \end{document}

Output:

enter image description here

cgnieder
  • 66,645
Someone
  • 43

0 Answers0