When using multiline cells with tabularray like in the example below, I have the problem that my editor (emacs) recognizes the \\ that indicate a newline in a cell as the end of a row and thus messes up aligning the table in the editor. So is there a way to use another command instead of \\ for the multiline cells or map it to another macro. I tried \newcommand{\nl}{\\}, but this doesn' work (it stretches the table to the right).
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{colspec={clr},hlines}
one & {left\\leftttt} & three \\
one & two & {right\\rightttt} \\
\end{tblr}
\end{document}
(Example from here).

\crwhithin tables – alvaro martinez Jun 23 '22 at 15:16