cgnieder / acro

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

Foreign plural ending ignores foreign-format #149

Closed cgnieder closed 4 years ago

cgnieder commented 4 years ago

Original report by Anonymous.


When using \acp for the first occurrence of an acronym which uses a foreign form and uses foreign-format the plural ending appended to the foreign form doesn't use the foreign-format.

MWE:

\documentclass[]{article}

\usepackage[british, ngerman]{babel}
\usepackage{acro}

\acsetup
  {%
    ,foreign-format=\itshape
    ,list-foreign-format=\mylistforeignformat
  }

\DeclareAcronym{svm}
  {%
    ,short=SVM
    ,long=Stützvektormaschine
    ,long-plural=n
    ,foreign=Support Vector Machine
    ,foreign-lang=british
  }

\begin{document}
\acp{svm} \ac{svm}
\end{document}
cgnieder commented 4 years ago

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


fix issue #149

cgnieder commented 4 years ago

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


This needs format-include-endings. Besides that, it didn’t work anyway. This is now fixed:

\documentclass{article}

\usepackage[british, ngerman]{babel}
\usepackage{acro}

\acsetup{
  foreign-format=\itshape,
  list-foreign-format=\mylistforeignformat,
  format-include-endings % <<<<<
}

\DeclareAcronym{svm}{
  short=SVM,
  long=Stützvektormaschine,
  long-plural=n,
  foreign=Support Vector Machine,
  foreign-lang=british
}

\begin{document}

\acp{svm} \ac{svm}

\end{document}

Skillmon commented 4 years ago

Thank you very much for the fix to a bug I didn't even discover as I was missing the format-include-endings option!

cgnieder commented 4 years ago

I see you've found the new home of acro :)