lvjr / tabularray

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

Counter in table #374

Closed sergiokapone closed 1 year ago

sergiokapone commented 1 year ago

Hello,

\documentclass{article}
\usepackage{tabularray}
\newcounter{rownumber}
\newcommand\rownumber{\stepcounter{rownumber}\arabic{rownumber}}

\begin{document}

\begin{tblr}{%
colspec = {ll},
hlines, vlines,
%cell{1-Z}{1} = {cmd=\rownumber},
}
\rownumber & \\
\rownumber & \\
\end{tblr}

\end{document}

Why does the counter have such a strange numbering?

sergiokapone commented 1 year ago

UPD: I found how to fix it with \UseTblrLibrary{counter}. But why is this package here?

muzimuzhi commented 1 year ago

see #89