4

I am using the glossaries package to manage acronyms and it seems like the combination of "use long form", "make first letter uppercase" and "use plural form" does not work (see MWP below):

At first I thought it might be related to the remarks in the glossaries documentation concerning the uppercase commands not being expandable as I came across this problem when using \Acfp at the beginning of a caption in combination with hyperref. But even after removing all the clutter, it still does not seem to work:

\documentclass{article}

\usepackage[acronym,shortcuts]{glossaries}

\newacronym{mTA}{mTA}{my test acronym}

\begin{document}
Try acr shortcuts:\\
\acf{mTA}\\
\Acf{mTA}\\
\acfp{mTA}\\
\Acfp{mTA}\\

Try acr commands:\\
\acrfull{mTA}\\
\Acrfull{mTA}\\
\acrfullpl{mTA}\\
\Acrfullpl{mTA}\\

Try gls commands:\\
\glsentryfirst{mTA}\\
\Glsentryfirst{mTA}\\
\glsentryfirstplural{mTA}\\
\Glsentryfirstplural{mTA}\\
\end{document}

MWP

The \glsentryfirst* family does the 'right' thing but are lacking the hyperref information (not part of the MWP).

So am I missing something here?

2

This is a bug. I'll get it fixed in the next version. For now, a simple workaround is to use one of the new acronym styles:

\documentclass{article}

\usepackage[acronym,shortcuts]{glossaries}

\setacronymstyle{long-short}
\newacronym{mTA}{mTA}{my test acronym}

\begin{document}
Try acr shortcuts:\\
\acf{mTA}\\
\Acf{mTA}\\
\acfp{mTA}\\
\Acfp{mTA}\\

Try acr commands:\\
\acrfull{mTA}\\
\Acrfull{mTA}\\
\acrfullpl{mTA}\\
\Acrfullpl{mTA}\\

Try gls commands:\\
\glsentryfirst{mTA}\\
\Glsentryfirst{mTA}\\
\glsentryfirstplural{mTA}\\
\Glsentryfirstplural{mTA}\\
\end{document}

Image of result

  • I am wondering why the \glsentryfirst* commands have a different behavior when using the long-short format? Shouldn't they print 'long (short)' as well? – Matthias Apr 9 '14 at 20:00
  • No. If you use \setacronymstyle the first, firstplural, text and plural keys aren't used by \gls. The purpose of the new acronym styles is to provide a far more flexible approach than the default glossary mechanism allows (which is why you have to explicitly activate the new acronym styles using \setacronymstyle). This is mentioned in the changing the acronym style section of the user manual. – Nicola Talbot Apr 9 '14 at 20:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.