cgnieder / acro

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

Error withe \printacronym when there is more than one acronym #234

Closed li-ruijie closed 2 years ago

li-ruijie commented 2 years ago

Acro ver 3.6

No errors if there is only a single acronym.

\documentclass{article}
\usepackage{acro}
\acsetup{ list/display = all }
\DeclareAcronym{nato}{short = NATO, long = North Atlantic Treaty Organisation}

\begin{document}
\printacronyms
\end{document}

Error when there are 2 acronyms or more.

[\directlua]|1 error| attempt to index a nil value (global 'l3kernel')
[\directlua]|1 error| in main chunk.
minimal.tex|9 error| Missing number, treated as zero.
\documentclass{article}
\usepackage{acro}
\acsetup{ list/display = all }
\DeclareAcronym{nato}{short = NATO, long = North Atlantic Treaty Organisation}
\DeclareAcronym{usa}{short = USA, long = United States of America}

\begin{document}
\printacronyms
\end{document}

compiled using lualatex. Tested on Windows 11 Pro x64

li-ruijie commented 2 years ago

If compiled using pdflatex, no errors reported.

cgnieder commented 2 years ago

I cannot reproduce this issue with an up to date texlive…