Closed Firestar-Reimu closed 2 months ago
Not only is the +cases
, but those +matrix
environments.
One can simply redefine them by using \RenewDocumentEnvironment
(and its friends, in ltcmd
or its old name xparse
), such as:
\DeclareDocumentEnvironment{+cases}{+O{}b}
{%
\left\lbrace\begin{+array}{
column{1} = {leftsep = 0pt}, column{Z} = {rightsep = 0pt},
colspec = {ll}, stretch = 1.2, #1
}#2%
\end{+array}\right.%
}
{}
Maybe it is the environ
package that causes this problem (I'm not pretty sure).
Actually, the latest source code of tabularray
doesn't use environ
package.
Any updates on this?
UPD: nvm, apparently I'm using an old version where these environments are defined via \NewEnv
which messes up \\
. Redefining environments with xparse
solves the problem. In newer versions of tabularray
it's already the case, so it's fixed there and the issue can be closed.
Duplicate of #143
This is good
This is bad