When the following LaTeX code:
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{}0&1&2&3\end{tblr}
\end{document}
is compiled in Overleaf using the 2022 LuaLaTeX engine, the following output is produced: 0 1 2 3.
However, if the table is constructed piecemeal in an expl3 token list, as follows:
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\ExplSyntaxOn
\tl_new:N\mytl
\tl_set:Nn\mytl{\begin{tblr}{}}
\tl_put_right:Nx\mytl{0\int_step_inline:nnn{1}{3}{}}
\tl_put_right:Nn\mytl{\end{tblr}}
\mytl
\ExplSyntaxOff
\end{document}
the following error message results:
\__int_map_4:w #1->&
#1
l.9 \mytl
I can't figure out why you would want to use a tab mark
here.
Why did the expl3 program fail? How can I correct it?
&and\\in the input stream. – Udi Fogiel Feb 09 '23 at 22:16\int_step_inline:nnn{1}{3}{ \tl_put_right:Nn\mytl{0}}– Ulrike Fischer Feb 09 '23 at 22:22\int_step_inline:nnnis protected, thus not getting expanded. – Udi Fogiel Feb 09 '23 at 23:08