24

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.

2 Answers 2

37

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
0

What worked for me was to simply add definitions for its plural and shortplural forms when declaring the acronym. Like so:

\newacronym[plural=centiMorgans, shortplural=cM]{cM}{cM}{centiMorgan}

Then it's possible to always refer to the desired form and length no matter if it's the first time it is used or not.

  • \acrshort{cM} prints "cM"
  • \acrlong{cM} prints "centiMorgan"
  • \acrfull{cM} prints "centiMorgan (cM)"
  • \acrshortpl{cM} prints "cM"
  • \acrlongpl{cM} prints "centiMorgans"
  • \acrfullpl{cM} prints "centiMorgans (cM)"
New contributor
bnagmeister is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2
  • Welcome to TeX.SE! As far as I can see tht was already answered in the earlier answer ...
    – Mensch
    May 22 at 10:44
  • Thank you! I tried following the earlier answer myself, but wasn't happy with how \glspl{} changed depending on if it's the first use or not. I then found this solution which offers slightly more control and thought I would share it for others to use. May 22 at 11:10

You must log in to answer this question.

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