[Tex/LaTex] acro long format for plural acronyms

acroacronyms

I'm using the acro package to organize my acronyms. I want to highlight newly introduced acronys by printing the first long form in bold font. However, if the newly introduced acronym is introduced as a plural form, only the name itself is bold, but not the plural "s".

\documentclass[]{article}

\usepackage{acro}
\usepackage{csquotes}

\DeclareAcronym{CD}{
        short = CD ,
        long = Compact Disc ,
        long-format = \textbf
}

\begin{document}
\acp{CD}
\end{document}

The result is Compact Discs (CDs) instead of Compact Discs (CDs).

Best Answer

As of acro v2.8 the format-include-endings key can be used in \acsetup to include the endings in all short-format/long-format commands. This cannot currently be applied on an acronym by acronym basis.

\documentclass{article}
\usepackage{acro}
\acsetup{format-include-endings}

\DeclareAcronym{CD}{
        short = CD ,
        long = Compact Disc,
        long-format = \textbf,
}

\begin{document}
\acp{CD}
\end{document}

Prior to 2.8, or to selectively include endings in the format of certain acronyms only, this can be bodged by (ab)using the long-plural key which expects text only, to be appended to the long form to give the plural form, thus this may well not work perfectly or cease to work without warning. This can be done as

\documentclass{article}
\usepackage{acro}

\DeclareAcronym{CD}{
        short = CD ,
        long = Compact Disc,
        long-format = \textbf,
        long-plural = \textbf{s},
}

\begin{document}
\acp{CD}
\end{document}