I've tried to add a plural form to an acronym entry in glossaries. See
the example below for detailed information.
The problem is the first appearance in the document. Whereas a singular
entry ('pmm' in the example below) shows "description (acronym)" a
plural form ('pm' in the example) shows "regular plural with s
(irregular manual defined plural)". You will see what I mean when you
compile the example.
However, I just want those two commands behaving the same. Thus, the
\glspl command should output "manual defined plural (acronym)".
Thanks for your ideas!
Regards,
Mathias
\documentclass{scrreprt}
\usepackage[acronym]{glossaries}
\makeglossaries
\newacronym[plural={Permanentmagnete}]{pm}{PM}{Permanentmagnet}
\newacronym[plural={Permanentmagnete}]{pmm}{PM}{Permanentmagnet}
\begin{document}
\glspl{pm}
\gls{pmm}
\end{document}
Don't use the plural key for acronyms. Use \glslongpluralkey or
\glsshortpluralkey instead:
\newacronym[\glslongpluralkey={Permanentmagnete}]{pm}{PM}
{Permanentmagnet}
Regards
Nicola Talbot
Thank you, this is perfectly working! Strange, I have read the whole
section about acronyms in the manual but didn't notice that. Last week
was demanding ;)
One idea in this context: Many languages apart from English have
different cases for nouns that require different final syllables.
Although I understand that it would be hard to implement keys for all
cases in all languages you maybe could add 6 user-defines keys each for
singular, plural, short and long form? Thus, if one needs e.g. the
dative case it's no pain to define the resp. word formations into those.
One suggestion how to define them:
\newacronym[
\glslongpluralkey={Hunde},
\glshortpluralkay={H},
\glslonguser1={Hundes}, %genitive
\glslongpluraluser1={Hunde},
\glslonguser2={Hunde}, %dative
\glslongpluraluser2={Hunden}
]{hund}{H}{Hund}
And how to use them:
Genitiv des \gls[user1]{hund}, Genitiv der \gls[pluraluser1]{hund}.
Implementing something like this would be really really great for German
users. And I guess other languages will profit too. I made up the number
of 6 user-defines keys because of the 6 Russian cases I know of. Of
cause languages as Finnish have much more cases (19?) but I can't
imagine they will need all of them in one text, do they?
Cheers,
Mathias
Unfortunately I don't have the time to do such a major change to the
package right now, but you can always do \glslink{hund}{Hunde} or
\glsdisp{hund}{Hunde}.
Regards
Nicola Talbot
--
Home: http://theoval.cmp.uea.ac.uk/~nlct/
LaTeX Related Information: http://theoval.cmp.uea.ac.uk/~nlct/latex/
Creating a LaTeX Minimal Example:
http://theoval.cmp.uea.ac.uk/~nlct/latex/minexample/