TransWikia.com

Capitalization of the first letter in acronym list

TeX - LaTeX Asked on May 31, 2021

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

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP