2

I am working with lower case acronyms in latex and want them to be printed with a leading uppercase letter in the acronym list. I utilize the acro package.

Reproducable code:

\documentclass{article}
\usepackage{acro}
\usepackage{mfirstuc}

% Custom format to capitalize the first letter of each word
\newcommand{\aclistformat}[1]{\capitalisewords{#1}}

\acsetup{
    list/display = all, % Only list the referenced acronyms
    format/list = \aclistformat % Apply \capitalisewords indirectly (This does not work)
}

% Define acronyms
\DeclareAcronym{acro1}{
    short = short,
    long  = really long lowercase name
}

\begin{document}
    
    \aclistformat{test}  % This works fine

    \printacronyms
    
\end{document}

Resultant rendering:

Rendered

I utilize mfirstuc to uppercase the first letter. This works fine as shown with Test. However, the acronym long name is not formatted as intended. Does anyone know why?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.