所以我有一个命令可以向表中添加条目(因为我正在添加一个未知的数字)。
我不明白为什么当我手动输入时它可以工作,但当我使用命令时却不行\addentry
——有人可以帮忙吗?
\newcommand{\addentry}[5]{
{#1} & {#2} & \faMapMarker\hspace{.5ex}{#3} & \faCalendar\hspace{.5ex}{#4} \\
#5 &&& \\
}
\begin{tblr}{
colspec = {@{}Q[l]Q[l]Q[r]Q[r]@{}},
hlines,
vlines,
width = \linewidth,
cell{even}{1} = {c=4}{\linewidth,halign=j},
row{odd} = {
valign = m,
halign = r,
font = \sc
},
row{even} = {
halign = j
},
}
First Entry & Second Entry & Third Entry & Fourth Entry \\
\lipsum\\
\addentry{First entry}
{Second entry}
{Third entry}
{Fourth entry}
{Fifth, multi-line entry }
\end{tblr}
答案1
\begin{tblr}[expand=\addentry]{
...