2011-02-12 98 views
0

我在LaTeX中有一個跨越多個頁面的表格。 我想要在每個頁面中重複排列前兩行。 我該怎麼做?如何在LaTeX中的每個頁面中重複表格的頂部行

+3

LaTeX的問題是關於堆棧溢出的話題,但對於大多數乳膠質疑你可能會更好張貼http://tex.stackexchange.com/(僅僅是因爲用戶羣是專門的)。如果aiobe的答案是你想要的,那在tex.SE上會更好。如果問題是如何在LaTeX中實現一個類似longtable的宏,那麼這是一個投入。 – dmckee

回答

2

here:多單頁長

[...]

兩個longtable和supertabular允許的頭部和footlines定義表格; longtable允許區分第一個和最後一個頭和腳。

[...]

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

具有編程性質
相關問題