0

enter image description here

\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\begin{document}

\section{All good here}

\begin{tblr}{lccr} \hline Alpha & Beta & Gamma & Delta \ \hline Epsilon & Zeta & Eta & Theta \ \hline Iota & Kappa & Lambda & Mu \ \hline \end{tblr}

\section{Pb here}

\begin{tblr}{lccr} \hline Alpha & Beta & Gamma & Delta \tabularnewline \hline Epsilon & Zeta & Eta & Theta \tabularnewline \hline Iota & Kappa & Lambda & Mu \tabularnewline \hline \end{tblr}

\end{document}

JeT
  • 3,020
  • 1
    incompatible is probably the wrong term here. In the LaTeX kernel \tabularnewline is only defined inside \@array, it is \relax everywhere else. You could register an issue about it on tabularrays github. BTW: you can see the definition via \typeout{\meaning\tabularnewline} inside a cell. Compare to what you get if you use tabular instead of tblr. – daleif Mar 10 '22 at 10:10
  • @daleif done ! . nice trick \typeout{\meaning... Merci ! – JeT Mar 10 '22 at 10:14
  • @JeT I can not understand why you want to use a quite long name \tabularnewline? Can you show your use case? – L.J.R. Mar 11 '22 at 00:58
  • @L.J.R. I could not disagree but 1. I follow this post, and 2. I try to apply your package with other packages like acro or tcolorbox that seem to prefer \tabularray. I will send 2 questions on this, sure you'll be able to help me :) – JeT Mar 11 '22 at 19:03

1 Answers1

3

From the post you gave, you can see it is just a workaround to use \tabularnewline in traditional tabular environment, because of the limitation of tabular. But tabularray is quite different in implementation from tabular and it doesn't have this limitation. Therefore you need not and should not use \tabularnewline any more in general.

In case you really need to use \tabularnewline, you can define \tabularnewline as \\ and use expand option in a tabularray table, see this question.

If you find problems in applying tabularray with other packages like acro or tcolorbox, you may ask some new questions for them.

L.J.R.
  • 10,932