![如何将表创建拆分为命令](https://linux22.com/image/422479/%E5%A6%82%E4%BD%95%E5%B0%86%E8%A1%A8%E5%88%9B%E5%BB%BA%E6%8B%86%E5%88%86%E4%B8%BA%E5%91%BD%E4%BB%A4.png)
如何将表创建拆分为单独的命令或宏:
\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