最后一列之间的距离太远,如何才能获得相等的间距?

最后一列之间的距离太远,如何才能获得相等的间距?
% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begin{table}[htbp]
\centering
\caption{Marginal Effects of Multinomial Logit}
\begin{tabular}{rccc}
\toprule
\multicolumn{1}{l}{} & 1     & 2&    3 \\
\midrule
\multicolumn{1}{l}{A} & 0.039*** & -0.005*** & -0.021*** \\
\multicolumn{1}{l}{} & (0.011) & (0.010) & (0.009) \\
\multicolumn{1}{l}{B} & -0.033*** & 0.007*** & 0.013*** \\
\multicolumn{1}{l}{} & (0.012) & (0.011) & (0.010) \\
\multicolumn{1}{l}{C} & 0.056*** & 0.016*** & -0.045*** \\
\multicolumn{1}{l}{} & (0.005) & (0.004) & (0.007) \\
\multicolumn{1}{l}{D} & -0.013*** & -0.007*** & 0.006*** \\
\multicolumn{1}{l}{} & (0.007) & (0.006) & (0.006) \\
\multicolumn{1}{l}{E} & 0.006*** & -0.001*** & -0.023*** \\
\multicolumn{1}{l}{} & (0.003) & (0.002) & (0.002) \\
\multicolumn{1}{l}{F} & 0.010*** & -0.015*** & -0.058*** \\
\multicolumn{1}{l}{} & (0.062) & (0.058) & (0.043) \\
\multicolumn{1}{l}{G} & -0.027*** & -0.005*** & 0.029*** \\
\multicolumn{1}{l}{} & (0.024) & (0.021) & (0.018) \\
\multicolumn{1}{l}{H} & 0.029*** & 0.077*** & -0.022*** \\
\multicolumn{1}{l}{} & (0.074) & (0.068) & ..0520676 \\\hline\hline
\multicolumn{4}{c}{Standard errors in parentheses.   *p $<$ 0.10,    **p $<$ 
 0.05,     ***p $<$ 0.01} \\
%\bottomrule
\end{tabular}%
\label{tab:addlabel}%
 \end{table}%

答案1

\setlength{\tabcolsep}{30pt}您可以在表格前面手动添加列之间的间距。30pt对我来说很有效,但你应该考虑@Zarko 的将最后一行拆分为如下内容:

  • 手动添加空格 在此处输入图片描述

    \multicolumn{4}{c}{Standard errors in parentheses.} \\
    \multicolumn{4}{c}{*p $<$ 0.10, **p $<$ 0.05, ***p $<$ 0.01}

  • 拆分最后一行

在此处输入图片描述

答案2

我会像这样设计你的表格:

在此处输入图片描述

为此,我在序言中提到

\usepackage{siunitx}
\usepackage{threeparttable}

对于表格使用threeparttable环境、S列类型,允许数字在小数点对齐,并与您的代码片段进行比较,删除所有\multicolumn{1}{...}{...}(多余的):

\begin{table}[htbp]
    \centering
\begin{threeparttable}
    \caption{Marginal Effects of Multinomial Logit}
    \label{tab:addlabel}
\begin{tabular}{r *{3}{S[table-format=-1.3,
                         input-symbols={( )},
                         table-space-text-post={***},
                        ]}
                }
    \toprule
    &   {1}             &   {2}             &   {3}             \\
    \midrule
A   & 0.039\tnote{***}  & -0.005\tnote{***} & -0.021\tnote{***} \\
    & (0.011)           & (0.010)           & (0.009)           \\
B   & -0.033\tnote{***} & 0.007\tnote{***}  & 0.013\tnote{***}  \\
    & (0.012)           & (0.011)           & (0.010)           \\
C   & 0.056\tnote{***}  & 0.016\tnote{***}  & -0.045\tnote{***} \\
    & (0.005)           & (0.004)           & (0.007)           \\
D   & -0.013\tnote{***} & -0.007\tnote{***} & 0.006\tnote{***}  \\
    & (0.007)           & (0.006)           & (0.006)           \\
E   & 0.006\tnote{***}  & -0.001\tnote{***} & -0.023\tnote{***} \\
    & (0.003)           & (0.002)           & (0.002)           \\
F   & 0.010\tnote{***}  & -0.015\tnote{***} & -0.058\tnote{***} \\
    & (0.062)           & (0.058)           & (0.043)           \\
G   & -0.027\tnote{***} & -0.005\tnote{***} & 0.029\tnote{***}  \\
    & (0.024)           & (0.021)           & (0.018)           \\
H   & 0.029\tnote{***}  & 0.077\tnote{***}  & -0.022\tnote{***} \\
    & (0.074)           & (0.068)           & (0.052)           \\
    \midrule[0.6pt]
\multicolumn{4}{l}{Standard errors in parentheses.}             \\
\end{tabular}%    
\begin{tablenotes}[para]\footnotesize
    \item[*]    $p < 0.10$,
    \item[**]   $p < 0.05$,     
    \item[***]  $p < 0.01$
    \end{tablenotes}
\end{threeparttable}
\end{table}

相关内容