LaTeX表格太长自动分页

2020-11-21
#LaTeX

1. supertabular

\usepackage{supertabular}

{\scriptsize
\begin{center}
\topcaption{...}
\label{name}
\begin{supertabular}{l l r r r r}
\hline{}
Parameters & Numbers & Min & Max & Mean & STD  \\
\hline
 & 04 & -123 & 20 & 3 & 1 \\
\hline
\end{supertabular}
\end{center}
}

2. longtable

{
\footnotesize% set font size for longtable
\begin{longtable}{c}
        \caption{This is a sample table.}\\
    \hline
    \textbf{First entry} \\
    \hline
    \endfirsthead
    \multicolumn{1}{c}%
        {\bfseries\small \tablename\ \thetable\ {continued from previous page}}\\
    \hline
    \textbf{First entry} \\
    \hline
    \endhead
    \hline \multicolumn{1}{r}{\textit{Continued on next page}}\\
    \endfoot
    \hline
    \endlastfoot
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
    1  \\ 1  \\ 1  \\ 1  \\
\end{longtable}
}

注意:

  • 上面是一列,可以更改列数——1

3. 参考