lvjr / tabularray

Typeset tabulars and arrays with LaTeX3
https://ctan.org/pkg/tabularray
247 stars 22 forks source link

empty longtblr errors #326

Open u-fischer opened 1 year ago

u-fischer commented 1 year ago

If a longtblr has no content (which can happen if the content is autogenerated) it errors:

\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{longtblr} {}   
\end{longtblr}
\end{document}

gives

! Missing number, treated as zero.
<to be read again> 
                   \__dim_eval_end: 
l.144 \end
          {longtblr}
lvjr commented 1 year ago

It seems I need to throw a warning and not to build the table if rowcount equals zero (not only for long tables).