我制作了一个表格。它有 5 列,最后 4 列居中。
目前,它们之间的间距并不均匀。也就是说,最后一列与其他列之间的距离太远。我该如何解决这个问题?以下是代码(apa6
类):
\begin{table}\footnotesize
\caption{Differences in valuation between different types of third parties}
\begin{tabular}{l c c c c}
\hline
Measure & 1 & 2 & 3 & 4 \\
\hline
1. Low Comp Low Pun & -.131 & -.016 & -.053 & .039 \\
2. Low Comp High Pun & -.077 & -.062 & -.070 & .031 \\
3. High Comp Low Pun & -.077 & -.062 & -.070 & .031 \\
4. High Comp High Pun & -.077 & -.062 & -.070 & .031 \\
\hline
\multicolumn{5}{l}{Note. Bottom left within conditions, top right and diagonal between conditions}\\
\end{tabular}
\end{table}
答案1
底层的一个特性\halign
是将额外的空间放入最后一列,您可以通过使自然宽度大于跨越条目来重新排列空间。
\documentclass{article}
\begin{document}
\begin{table}\footnotesize
\caption{Differences in valuation between different types of third parties}
\noindent
\begin{tabular*}{\textwidth}{@{\extracolsep{\textwidth minus \textwidth}}l c c c c@{}}
\hline
Measure & 1 & 2 & 3 & 4 \\
\hline
1. Low Comp Low Pun & -.131 & -.016 & -.053 & .039 \\
2. Low Comp High Pun & -.077 & -.062 & -.070 & .031 \\
3. High Comp Low Pun & -.077 & -.062 & -.070 & .031 \\
4. High Comp High Pun & -.077 & -.062 & -.070 & .031 \\
\hline
\multicolumn{5}{l}{Note. Bottom left within conditions, top right and diagonal between conditions}\\
\end{tabular*}
\end{table}
\end{document}
答案2
您需要缩短最后一行,例如按照以下方式
\begin{table}\footnotesize
\caption{Differences in valuation between different types of third parties}
\begin{tabular}{l c c c c}
\hline
Measure & 1 & 2 & 3 & 4 \\
\hline
1. Low Comp Low Pun & -.131 & -.016 & -.053 & .039 \\
2. Low Comp High Pun & -.077 & -.062 & -.070 & .031 \\
3. High Comp Low Pun & -.077 & -.062 & -.070 & .031 \\
4. High Comp High Pun & -.077 & -.062 & -.070 & .031 \\
\hline
\multicolumn{5}{l}{\begin{tabular}{l}Note. Bottom left within conditions,\\ top right and diagonal between conditions
\end{tabular}
}
\\
\end{tabular}
\end{table}
我还建议写$-.062$
而不是-.062
。