\usepackage{longtable}
\begin{longtable}{cccc}
% \begin{longtable}{p{1cm}, p{1cm}, p{1cm}, p{1cm}}
\caption{example}\label{tab1}
% 表格“首页”显示内容
\toprule
1 & 2 & 3 & 4 \\
\midrule
\endfirsthead
% “后续页面”表头显示内容
\multicolumn{4}{r}{Continued}\\
\toprule
1 & 2 & 3 & 4 \\
\midrule
\endhead
% 表格“尾页前”,表格最后显示内容
\bottomrule
\multicolumn{4}{c}{Continued on next page}
\endfoot
% 表格“尾页”,表格最后显示内容
\bottomrule
\endlastfoot
% 表格内容
content
\end{longtable}
注意理解如下几个命令对应的表格位置!
% 表格“首页”显示内容
\endfirsthead
% “后续页面”表头显示内容
\endhead
% 表格“尾页前”,表格最后显示内容
\endfoot
% 表格“尾页”,表格最后显示内容
\endlastfoot
参考阅读