cgnieder / acro

acronyms for LaTeX
LaTeX Project Public License v1.3c
42 stars 9 forks source link

long-plural is broken #144

Closed cgnieder closed 4 years ago

cgnieder commented 4 years ago

Original report by Anonymous.


Hi,

I just noticed that a long-plural defined acronym is broken on the first use.

Here is a MWE:

#!latex

\documentclass{article}

\usepackage{acro}

\DeclareAcronym{RFC}{
    short = {RFC},
    long = {Request\space for Comments},
    long-plural = {Requests\space for Comments},
}

\begin{document}

RFC Plural with long-plural definition first time use: \acp{RFC}

\end{document}

Output that I got: RFC Plural first time use: Request for CommentsRequests for Comments (RFCs) Expected output: RFC Plural first time use: Requests for Comments (RFCs)

Latex is up to date and so is acro (Version 2.10c).

I would also be happy to have a temporary workaround :)

cgnieder commented 4 years ago

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


You are using the wrong key. With long-plural a specific ending is defined. What you want is long-plural-form:

\documentclass{article}

\usepackage{acro}

\DeclareAcronym{RFC}{
  short = {RFC},
  long = {Request for Comments},
  long-plural-form = {Requests for Comments},
}

\begin{document}

RFC Plural with long-plural definition first time use: \acp{RFC}

\end{document}

cgnieder commented 4 years ago

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Not a bug.

cgnieder commented 4 years ago

Original comment by Clemens Niederberger (Bitbucket: cgnieder, GitHub: cgnieder).


Removing version: 2.10 (automated comment)