Latex 乳胶中的多列导致列间距错误

Latex 乳胶中的多列导致列间距错误,latex,spacing,multiple-columns,Latex,Spacing,Multiple Columns,在下表中,由于最后一行中的长\多列单元格,第三列的间距过大。有人能想出一种方法让乳胶均匀地分布在柱子上所需的额外间距吗 \documentclass[11pt]{article} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{lrrr} \toprule & ICE-GB & ICE-SING & ICE-EA \\ \midrule NP

在下表中,由于最后一行中的长\多列单元格,第三列的间距过大。有人能想出一种方法让乳胶均匀地分布在柱子上所需的额外间距吗

\documentclass[11pt]{article}
\usepackage{booktabs}

\begin{document}
\begin{table}[htbp]
\centering
\begin{tabular}{lrrr}
\toprule
 & ICE-GB & ICE-SING & ICE-EA \\ 
 \midrule
NP & 619 & 595 & 496 \\ 
\textbf{Arithmetic mean}& \textbf{1.36} & \textbf{1.33} & \textbf{1.22} \\ 
SD&0.73 & 0.71 & 0.53 \\ 
Variation coefficient& 0.54 & 0.52 & 0.44 \\ 
\midrule
Kruskal Wallis rank sum test&\multicolumn{3}{l}{$H = 16.3941, df = 2, p= 0.0002755123$} \\ 
\bottomrule
\end{tabular}
\end{table}
\end{document}

谢谢

多余宽度
\multicolumn
s最终将多余宽度指定给最后一列。您可以通过使用固定宽度的
\multicolumn
-即使用
p{}
列来避免这种情况,或者对于非
\multicolumn
列,使用固定宽度的列来扩展列:

\documentclass[11pt]{article}
\usepackage{booktabs,array}

\begin{document}
\noindent
\begin{tabular}{l*{3}{>{\raggedleft\arraybackslash}p{5em}}}
  \toprule
  & ICE-GB & ICE-SING & ICE-EA \\ 
  \midrule
  NP & 619 & 595 & 496 \\
  \textbf{Arithmetic mean}     & \textbf{1.36} & \textbf{1.33} & \textbf{1.22} \\ 
  SD                           & 0.73          & 0.71          & 0.53 \\ 
  Variation coefficient        & 0.54          & 0.52          & 0.44 \\ 
  \midrule
  Kruskal Wallis rank sum test & \multicolumn{3}{r}{$H = 16.3941, df = 2, p= 0.0002755123$} \\ 
  \bottomrule
\end{tabular}
\end{document}


在上面的示例中,最后三列的宽度分别为
5em
,并且是
\raggedleft
(类似于
r
-列规范)。

多余的宽度
\multicolumn
s最终将多余部分分配给最后一列。您可以通过使用固定宽度的
\multicolumn
-即使用
p{}
列来避免这种情况,或者对于非
\multicolumn
列,使用固定宽度的列来扩展列:

\documentclass[11pt]{article}
\usepackage{booktabs,array}

\begin{document}
\noindent
\begin{tabular}{l*{3}{>{\raggedleft\arraybackslash}p{5em}}}
  \toprule
  & ICE-GB & ICE-SING & ICE-EA \\ 
  \midrule
  NP & 619 & 595 & 496 \\
  \textbf{Arithmetic mean}     & \textbf{1.36} & \textbf{1.33} & \textbf{1.22} \\ 
  SD                           & 0.73          & 0.71          & 0.53 \\ 
  Variation coefficient        & 0.54          & 0.52          & 0.44 \\ 
  \midrule
  Kruskal Wallis rank sum test & \multicolumn{3}{r}{$H = 16.3941, df = 2, p= 0.0002755123$} \\ 
  \bottomrule
\end{tabular}
\end{document}


在上面的示例中,最后三列的宽度分别为
5em
,并且是
\raggedleft
(类似于
r
-列规范)。

多余的宽度
\multicolumn
s最终将多余部分分配给最后一列。您可以通过使用固定宽度的
\multicolumn
-即使用
p{}
列来避免这种情况,或者对于非
\multicolumn
列,使用固定宽度的列来扩展列:

\documentclass[11pt]{article}
\usepackage{booktabs,array}

\begin{document}
\noindent
\begin{tabular}{l*{3}{>{\raggedleft\arraybackslash}p{5em}}}
  \toprule
  & ICE-GB & ICE-SING & ICE-EA \\ 
  \midrule
  NP & 619 & 595 & 496 \\
  \textbf{Arithmetic mean}     & \textbf{1.36} & \textbf{1.33} & \textbf{1.22} \\ 
  SD                           & 0.73          & 0.71          & 0.53 \\ 
  Variation coefficient        & 0.54          & 0.52          & 0.44 \\ 
  \midrule
  Kruskal Wallis rank sum test & \multicolumn{3}{r}{$H = 16.3941, df = 2, p= 0.0002755123$} \\ 
  \bottomrule
\end{tabular}
\end{document}


在上面的示例中,最后三列的宽度分别为
5em
,并且是
\raggedleft
(类似于
r
-列规范)。

多余的宽度
\multicolumn
s最终将多余部分分配给最后一列。您可以通过使用固定宽度的
\multicolumn
-即使用
p{}
列来避免这种情况,或者对于非
\multicolumn
列,使用固定宽度的列来扩展列:

\documentclass[11pt]{article}
\usepackage{booktabs,array}

\begin{document}
\noindent
\begin{tabular}{l*{3}{>{\raggedleft\arraybackslash}p{5em}}}
  \toprule
  & ICE-GB & ICE-SING & ICE-EA \\ 
  \midrule
  NP & 619 & 595 & 496 \\
  \textbf{Arithmetic mean}     & \textbf{1.36} & \textbf{1.33} & \textbf{1.22} \\ 
  SD                           & 0.73          & 0.71          & 0.53 \\ 
  Variation coefficient        & 0.54          & 0.52          & 0.44 \\ 
  \midrule
  Kruskal Wallis rank sum test & \multicolumn{3}{r}{$H = 16.3941, df = 2, p= 0.0002755123$} \\ 
  \bottomrule
\end{tabular}
\end{document}


在上面的示例中,最后三列的宽度分别为
5em
,它们是
\raggedleft
(类似于
r
-列规范)。

噢,这是一个多么简单的解决方案啊,非常感谢!这将帮助我最终渲染20多张桌子真的很漂亮。。。!哦,这是一个多么简单的解决方案——非常感谢!这将帮助我最终渲染20多张桌子真的很漂亮。。。!哦,这是一个多么简单的解决方案——非常感谢!这将帮助我最终渲染20多张桌子真的很漂亮。。。!哦,这是一个多么简单的解决方案——非常感谢!这将帮助我最终渲染20多张桌子真的很漂亮。。。!