23

I'm using glossaries and would like to use a custom short form plural (it should be the same as the short form singular).

I've tried using \glsshortpluralkey, but this only affects how the short form plural appears the first time the acronym is used (MWE below). I've also tried using \glsshortpluralaccess and \glsshortplural, but both are 'undefined control sequences'. I'm using TeX Live 2013.

\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[acronym]{glossaries}

\makeglossaries

\newacronym[\glsshortpluralkey=cM]{cM}{cM}{centiMorgan}

\begin{document}

First use: \glspl{cM}. Second use: \glspl{cM}.

\printglossary[type=acronym,title=List of Abbreviations]

\end{document}

Edited to clarify: the desired output is:

First use: centiMorgans (cM). Second use: cM.

1 Answer 1

36

In chapter 4 of the user manual the two options are plural and firstplural.

The change is simply: \newacronym[plural=cM,firstplural=centiMorgans (cM)]{cM}{cM}{centiMorgan} and the mwe with this change is:

\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[acronym]{glossaries}

\makeglossaries

\newacronym[plural=cM,firstplural=centiMorgans (cM)]{cM}{cM}{centiMorgan}

\begin{document}

First use: \glspl{cM}. Second use: \glspl{cM}.

\printglossary[type=acronym,title=List of Abbreviations]

\end{document}

This results in:

mwe result

4
  • 2
    Yes, that works.\newacronym[plural={cM}, \glsshortpluralkey={cM}]{cM}{cM}{centiMorgan} is slightly easier.
    – user49858
    Apr 15, 2014 at 12:30
  • @user49858 Only this worked for me, thanks!
    – Marcel
    Jan 29, 2017 at 18:03
  • No changes to \newacronym worked for me, and I had to resort to a \newglossaryentry as shown in tex.stackexchange.com/a/128419/11429 to define "user equipment (UEs)" in "plural". Dec 22, 2021 at 14:44
  • Note that this will not work if using \glsentryfullpl{cM}. Instead I had to set the long form via longplural=centriMorgans, cf. tex.stackexchange.com/a/428266/65754
    – Stanley F.
    Apr 12, 2022 at 12:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .