1使用
begin{longtable}
...
\end{longtable}
前,外面不能套嵌\begin{table} ... \end{table}
, 否则,longtable是不能实现跨页的。
2使用
begin{longtable}
...
\end{longtable}
中插入\caption{...} \label{...}
时,后面一定要加两个反斜杠(\\
) ,不然也会出错。
3longtable目前只能在单栏中使用,不能在双栏或者多栏中使用。因此在双栏或多栏排版中,
使用
begin{longtable}
...
\end{longtable}
前,添加转化为单栏的语句\onecolumn,不过这个会导致另起一页。。 我也不知道咋弄才能更好。
4为了让跨页的表格每页都有相应的表头表尾(有区别于supertabular的),在\begin{longtable}之后插入如下的内容:
% 第一页表头内容
\endfirsthead
% 跨页表头内容
\endhead
% 跨页表尾内容
\endfoot
% 最后一页表尾内容
\endlastfoot
\onecolumn
%\begin{longtable}[h]{cccllll}
\begin{landscape}
% \begin{longtable}[h]{m{1.5cm}m{1.5cm}m{2cm}m{3.5cm}m{3.5cm}m{3.7cm}m{3.7cm}}
\begin{longtable}[h]{m{1.5cm}<{\centering}m{1.5cm}<{\centering}m{2cm}<{\centering}m{3.5cm}<{\centering}m{3.5cm}<{\centering}m{3.7cm}<{\centering}m{3.7cm}}
\hline
& Programme & Paper & Protocols / Algorithms & Methods / Models &Parameters & Objectives \\
\hline
\endfirsthead
\hline
& Programme & Paper & Protocols / Algorithms & Methods / Models &Parameters & Objectives \\
\hline
\endhead
\hline
\endfoot
%表格内容
……超过一页纸
……
%表格内容
\end{longtable}
\end{landscape}
multicolumn命令,
其中
m{5cm}:居中
p{5cm}:顶部
b{5cm}:底部