lvjr / tabularray

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

Mismatch error to the number of columns #243

Closed sergiokapone closed 2 years ago

sergiokapone commented 2 years ago

Why doesn't it give a mismatch error to the number of columns? If you do not notice, then you get strange behavior.

% !TeX program = lualatex
% !TeX encoding = utf8

\documentclass[]{article}
\usepackage{tabularray}

\begin{document}

\begin{tblr}{%
|Q[h]|l|Q[l,f]|Q[c,m]|Q[c,f]|
}
    \hline  
                    a &   & {J \\ j} & k\\ \hline
                    b & e & {h \\ g} & l\\  \hline
                    c & f & {r \\ t} & m\\  \hline
\end{tblr}

\end{document}
lvjr commented 2 years ago

It works by design. Traditional tabular environment doesn't give a mismatch error in this use case either.