cgnieder / acro

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

Missing number, treated as zero with template=tabularray #256

Open komascript opened 1 year ago

komascript commented 1 year ago

There seems to be an issue using template=tabularray:

\documentclass{article}

\usepackage{tabularray}
\usepackage{acro-examples}

\begin{document}
\printacronyms[template=tabularray]
\end{document}

results in:

Missing number, treated as zero.
<to be read again> 
                   \__dim_eval_end: 
l.7 \printacronyms[template=tabularray]

Currently I do not know, whether this is an issue of acro or tabularray. Unfortunately I've not the time to examine it.

The issue originally has been found on goLaTeX

u-fischer commented 1 year ago

Currently I do not know, whether this is an issue of acro or tabularray.

partly the one and the other I would say. The core problem is that longtblr errors if the content is empty https://github.com/lvjr/tabularray/issues/326. On the other side, acro could probably check if \AcronymTable has some content before printing the table.