如何在LaTeX中的每个页面中重复表的顶行

时间:2011-02-12 14:13:39

标签: latex

我在LaTeX中有一个跨越多个页面的表。 我希望每页重复前两行。 我怎么能这样做?

2 个答案:

答案 0 :(得分:2)

来自here

  

长于一页的表格

     

[...]

     

longtable和supertabular都允许定义表格的头部和边线; longtable允许区分头和脚的第一个和最后一个。

     

[...]

答案 1 :(得分:0)

你必须使用longtable包。以下是头部的示例(来源:http://users.sdsc.edu/~ssmallen/latex/longtable.html

\begin{center}
\begin{longtable}{|l|l|l|}
\caption[Feasible triples for a highly variable Grid]{Feasible triples for highly variable Grid, MLMMH.} \label{grid_mlmmh} \\

\hline \multicolumn{1}{|c|}{\textbf{Time (s)}} & \multicolumn{1}{c|}{\textbf{Triple chosen}} & \multicolumn{1}{c|}{\textbf{Other feasible triples}} \\ \hline 
\endfirsthead

\multicolumn{3}{c}%
{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\
\hline \multicolumn{1}{|c|}{\textbf{Time (s)}} &
\multicolumn{1}{c|}{\textbf{Triple chosen}} &
\multicolumn{1}{c|}{\textbf{Other feasible triples}} \\ \hline 
\endhead

\hline \multicolumn{3}{|r|}{{Continued on next page}} \\ \hline
\endfoot

\hline \hline

%here your table content goes

\end{longtable}
\end{center}

\ endlastfoot

相关问题