In a scenario where attempting to build multiple documents where each document will have a page with their own (long) table using common data. The following is a minimal example of the table definition:
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{longtblr}{
colspec={m{100pt}X},
rowhead=1,
width=\textwidth,
}
Key & Value \
first & desc1 \
second & desc2 \
\end{longtblr}
\end{document}
I was hoping to use the \input command to define which rows a table would use, allowing a table definition in one document to use a different set of rows than another document. For example:
[test.tex]
\begin{longtblr}{
colspec={m{100pt}X},
rowhead=1,
width=\textwidth,
}
Key & Value \\
\input{test-row1}
\input{test-row2}
\end{longtblr}
[test-row1.tex]
second & desc1 \\
However, this approach will yield the following error:
! Misplaced alignment tab character &.
Is there a way to make this work?
A current workaround is to split each column into their own include file as follows, but hoping to avoid this:
\input{test-r2c1} & \input{test-r2c2} \\
