环境
Document Class: ctexbook 2019/05/29 v2.4.16
TexStudio + Texlive 2019
Win10
问题描述
Latex中制作跨页长表格可以使用supertabular
环境,但是它创建的跨页表格第一页最后一行没有横线。
解决方法
将supertabular
环境换成longtable
环境,同时将导言区的包\usepackage{supertabular}
换成\usepackage{longtable}
即可。
还可使用\endfoot
命令使得每一页尾部以水平线(\hline)结束[2] (我没试):
\begin{longtable}{|c|c|}
% Appear \hline at the bottom of every page
\hline
\endfoot
...
\end{longtable}
注意:根据博文[1]所述,longtable目前只能在单栏中使用,不能在双栏或者多栏中使用。因此在双栏或多栏排版中,在
\begin{longtable} ... \end{longtable}
前添加转化为单栏的语句\onecolumn
,不过这个会导致另起一页。
此外