如何将表创建拆分为单独的命令或宏:
\begin{tabularx}{\textwidth}{X|X}
A & B
\end{tabularx}
像这样:
\newcommand{\tableHeader}{\begin{tabularx}{\textwidth}{X|X}}
\newcommand{\tableRow}{A & B}
\newcommand{\tableFooter}{\end{tabularx}}
\tableHeader
\tableRow
\tableFooter