我尽力通过阅读不同的问题/论坛来寻找该问题的解决方案,但我就是无法弄明白:我有一张表格(由 tablesgenerator.com 制作)对于一页来说太长了,而且我试图实现 longtable 包,但是它不起作用。非常感谢您的帮助!
(这是直接来自生成器的原始代码)。
\begin{table}[]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{llllll}
Index & & & Statistic & \textit{df} & Sig. \\ \hline
\multirow{4}{*}{Perimeter} & \multirow{2}{*}{Pre} & C & 0,966 & 8 & 0,862 \\
& & T & 0,935 & 8 & 0,560 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,931 & 8 & 0,524 \\
& & T & 0,995 & 8 & 1,000 \\ \hline
\multirow{4}{*}{Area} & \multirow{2}{*}{Pre} & C & 0,898 & 8 & 0,279 \\
& & T & 0,951 & 8 & 0,718 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,951 & 8 & 0,717 \\
& & T & 0,963 & 8 & 0,834 \\ \hline
\multirow{4}{*}{Form Factor} & \multirow{2}{*}{Pre} & C & 0,975 & 8 & 0,934 \\
& & T & 0,940 & 8 & 0,613 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,939 & 8 & 0,606 \\
& & T & 0,699 & 8 & \textbf{0,002} \\ \hline
\multirow{4}{*}{Perimeter - Area Ratio of Convex Hull} & \multirow{2}{*}{Pre} & C & 0,887 & 8 & 0,222 \\
& & T & 0,852 & 8 & 0,100 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,983 & 8 & 0,978 \\
& & T & 0,962 & 8 & 0,833 \\ \hline
\multirow{4}{*}{Area - Maximum Area Ratio} & \multirow{2}{*}{Pre} & C & 0,977 & 8 & 0,948 \\
& & T & 0,965 & 8 & 0,853 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,966 & 8 & 0,865 \\
& & T & 0,931 & 8 & 0,522 \\ \hline
\multirow{4}{*}{Ratio of Radii} & \multirow{2}{*}{Pre} & C & 0,970 & 8 & 0,897 \\
& & T & 0,967 & 8 & 0,877 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,958 & 8 & 0,793 \\
& & T & 0,924 & 8 & 0,465 \\ \hline
\multirow{4}{*}{Global Convex Deficiency} & \multirow{2}{*}{Pre} & C & 0,972 & 8 & 0,915 \\
& & T & 0,917 & 8 & 0,404 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,949 & 8 & 0,704 \\
& & T & 0,821 & 8 & \textbf{0,048} \\ \hline
\multirow{4}{*}{Rugosity} & \multirow{2}{*}{Pre} & C & 0,790 & 9 & \textbf{0,023} \\
& & T & 0,888 & 8 & 0,223 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,837 & 8 & 0,070 \\
& & T & 0,682 & 8 & \textbf{0,001} \\ \hline
\multirow{4}{*}{Horizontal Vertices Symmetry} & \multirow{2}{*}{Pre} & C & 0,980 & 8 & 0,965 \\
& & T & 0,936 & 8 & 0,572 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,931 & 8 & 0,528 \\
& & T & 0,937 & 8 & 0,586 \\ \hline
\multirow{4}{*}{Vertical Vertices Symmetry} & \multirow{2}{*}{Pre} & C & 0,941 & 8 & 0,620 \\
& & T & 0,848 & 8 & 0,092 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,928 & 8 & 0,499 \\
& & T & 0,946 & 8 & 0,675 \\ \hline
\multirow{4}{*}{Left Right Area Symmetry} & \multirow{2}{*}{Pre} & C & 0,924 & 8 & 0,466 \\
& & T & 0,844 & 8 & 0,083 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,922 & 8 & 0,448 \\
& & T & 0,925 & 8 & 0,469 \\ \hline
\multirow{4}{*}{Top Bottom Area Symmetry} & \multirow{2}{*}{Pre} & C & 0,847 & 8 & 0,090 \\
& & T & 0,834 & 8 & 0,066 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,786 & 8 & \textbf{0,020} \\
& & T & 0,911 & 8 & 0,363 \\ \hline
\multirow{4}{*}{Horizontal Symmetry of Convex Hull} & \multirow{2}{*}{Pre} & C & 0,841 & 8 & 0,077 \\
& & T & 0,964 & 8 & 0,847 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,904 & 8 & 0,315 \\
& & T & 0,925 & 8 & 0,473 \\ \hline
\multirow{4}{*}{Vertical Symmetry of Convex Hull} & \multirow{2}{*}{Pre} & C & 0,767 & 8 & \textbf{0,012} \\
& & T & 0,950 & 8 & 0,713 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,752 & 8 & \textbf{0,009} \\
& & T & 0,856 & 8 & 0,109 \\ \hline
\multirow{4}{*}{Elongation} & \multirow{2}{*}{Pre} & C & 0,908 & 8 & 0,337 \\
& & T & 0,880 & 8 & 0,187 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,927 & 8 & 0,489 \\
& & T & 0,843 & 8 & 0,081 \\ \hline
\multirow{4}{*}{Regularity} & \multirow{2}{*}{Pre} & C & 0,760 & 8 & \textbf{0,010} \\
& & T & 0,940 & 8 & 0,607 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,948 & 8 & 0,691 \\
& & T & 0,960 & 8 & 0,808 \\ \hline
\end{tabular}
\end{table}
答案1
这对我有用:
\documentclass{article}
\usepackage{multirow}
\usepackage{longtable}
\begin{document}
\begin{longtable}{llllll}
\caption{My caption}
\label{my-label}\\
Index&&& Statistic & \textit{df} & Sig.\\ \hline
\multirow{4}{*}{Perimeter} & \multirow{2}{*}{Pre} & C & 0,966 & 8 & 0,862 \\
& & T & 0,935 & 8 & 0,560 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,931 & 8 & 0,524 \\
& & T & 0,995 & 8 & 1,000 \\ \hline
\multirow{4}{*}{Area} & \multirow{2}{*}{Pre} & C & 0,898 & 8 & 0,279 \\
& & T & 0,951 & 8 & 0,718 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,951 & 8 & 0,717 \\
& & T & 0,963 & 8 & 0,834 \\ \hline
\multirow{4}{*}{Form Factor} & \multirow{2}{*}{Pre} & C & 0,975 & 8 & 0,934 \\
& & T & 0,940 & 8 & 0,613 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,939 & 8 & 0,606 \\
& & T & 0,699 & 8 & \textbf{0,002} \\ \hline
\multirow{4}{*}{Perimeter - Area Ratio of Convex Hull} & \multirow{2}{*}{Pre} & C & 0,887 & 8 & 0,222 \\
& & T & 0,852 & 8 & 0,100 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,983 & 8 & 0,978 \\
& & T & 0,962 & 8 & 0,833 \\ \hline
\multirow{4}{*}{Area - Maximum Area Ratio} & \multirow{2}{*}{Pre} & C & 0,977 & 8 & 0,948 \\
& & T & 0,965 & 8 & 0,853 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,966 & 8 & 0,865 \\
& & T & 0,931 & 8 & 0,522 \\ \hline
\multirow{4}{*}{Ratio of Radii} & \multirow{2}{*}{Pre} & C & 0,970 & 8 & 0,897 \\
& & T & 0,967 & 8 & 0,877 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,958 & 8 & 0,793 \\
& & T & 0,924 & 8 & 0,465 \\ \hline
\multirow{4}{*}{Global Convex Deficiency} & \multirow{2}{*}{Pre} & C & 0,972 & 8 & 0,915 \\
& & T & 0,917 & 8 & 0,404 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,949 & 8 & 0,704 \\
& & T & 0,821 & 8 & \textbf{0,048} \\ \hline
\multirow{4}{*}{Rugosity} & \multirow{2}{*}{Pre} & C & 0,790 & 9 & \textbf{0,023} \\
& & T & 0,888 & 8 & 0,223 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,837 & 8 & 0,070 \\
& & T & 0,682 & 8 & \textbf{0,001} \\ \hline
\multirow{4}{*}{Horizontal Vertices Symmetry} & \multirow{2}{*}{Pre} & C & 0,980 & 8 & 0,965 \\
& & T & 0,936 & 8 & 0,572 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,931 & 8 & 0,528 \\
& & T & 0,937 & 8 & 0,586 \\ \hline
\multirow{4}{*}{Vertical Vertices Symmetry} & \multirow{2}{*}{Pre} & C & 0,941 & 8 & 0,620 \\
& & T & 0,848 & 8 & 0,092 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,928 & 8 & 0,499 \\
& & T & 0,946 & 8 & 0,675 \\ \hline
\multirow{4}{*}{Left Right Area Symmetry} & \multirow{2}{*}{Pre} & C & 0,924 & 8 & 0,466 \\
& & T & 0,844 & 8 & 0,083 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,922 & 8 & 0,448 \\
& & T & 0,925 & 8 & 0,469 \\ \hline
\multirow{4}{*}{Top Bottom Area Symmetry} & \multirow{2}{*}{Pre} & C & 0,847 & 8 & 0,090 \\
& & T & 0,834 & 8 & 0,066 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,786 & 8 & \textbf{0,020} \\
& & T & 0,911 & 8 & 0,363 \\ \hline
\multirow{4}{*}{Horizontal Symmetry of Convex Hull} & \multirow{2}{*}{Pre} & C & 0,841 & 8 & 0,077 \\
& & T & 0,964 & 8 & 0,847 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,904 & 8 & 0,315 \\
& & T & 0,925 & 8 & 0,473 \\ \hline
\multirow{4}{*}{Vertical Symmetry of Convex Hull} & \multirow{2}{*}{Pre} & C & 0,767 & 8 & \textbf{0,012} \\
& & T & 0,950 & 8 & 0,713 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,752 & 8 & \textbf{0,009} \\
& & T & 0,856 & 8 & 0,109 \\ \hline
\multirow{4}{*}{Elongation} & \multirow{2}{*}{Pre} & C & 0,908 & 8 & 0,337 \\
& & T & 0,880 & 8 & 0,187 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,927 & 8 & 0,489 \\
& & T & 0,843 & 8 & 0,081 \\ \hline
\multirow{4}{*}{Regularity} & \multirow{2}{*}{Pre} & C & 0,760 & 8 & \textbf{0,010} \\
& & T & 0,940 & 8 & 0,607 \\ \cline{2-6}
& \multirow{2}{*}{Post} & C & 0,948 & 8 & 0,691 \\
& & T & 0,960 & 8 & 0,808 \\ \hline
\end{longtable}
\end{document}
刚刚做了以下事情:
1)将您的表环境更改为 longtable
2) 删除 tabular 环境并将其第一个参数{llllll}
naex 放入 long table
3) 在和 \label 命令后完成一行(添加了一个\\
) 。\caption
PS:还添加了longtable
和multirow
包以及一个简单的“文章模板”