答案1
您必须将表代码放在另一个文件中,然后table.tex
在主代码中使用它ltxtable
,就像这样
\documentclass{article}
\usepackage{ltxtable}
\begin{document}
\LTXtable{\textwidth}{table.tex}
\end{document}
您的table.tex
文件可以像这样(带tabularx
格式)
\begin{longtable}{XXX}
\caption{...} %if needed
\label{...}\\ %if needed
... %the header in the first table page
\endfirsthead
... %the header in the other table pages
\endhead
... %the footer in the table pages (all but not last)
\endfoot
... %the footer in the last table pages
\endlastfoot
... %the table content
... %the table content
... %the table content
\end{longtable}