cgnieder / acro

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

indefinite article ignored on long form #183

Closed FrankMittelbach closed 3 years ago

FrankMittelbach commented 3 years ago
\documentclass{article}

\usepackage{acro}
\DeclareAcronym{ufo}{short=UFO, long=unidentified
    flying object, long-indefinite = an}

\begin{document}
1 \Iac{ufo}, 2 \iac{ufo}, 3 \iacl{ufo}, 4 \iacs{ufo},
5 \iacf{ufo}
\end{document}

The \iacl comes out wrong in the example (i.e., shows "a" not "an") using

acro.sty    2020/11/08 v3.2a
cgnieder commented 3 years ago

Och nö... ;)

I've found the error – the long template

\NewAcroTemplate {long}
  {
    \acroifTF {single}
      { \acrowrite {single} }
      { \acrowrite {long} }
  }

should actually use \acroifsingleTF.