表格第一列不需要缩进

表格第一列不需要缩进

我的第一列有一个奇怪的缩进,我无法消除。有人知道哪里出了问题吗?

\documentclass{article}
\usepackage{multicol}                           % define a multicols environment which 
\usepackage{array}
\begin{document}

\begin{table}
    \footnotesize
    \renewcommand{\arraystretch}{1.3}%
    \begin{tabular*}{\textwidth}{ @{\extracolsep{\fill}}l >{\hspace{0.02\textwidth}}l >{\centering}b{0.23\textwidth} >{\centering}b{0.23\textwidth}}%
        
        \multicolumn{1}{b{0.15\textwidth}}{Behavioural\break intentions} & \multicolumn{1}{c}{Path} & Serial Mediation Effects (\textit{without} control of RF) with 95\%-CI & Serial Mediation Effects (\textit{with} control of RF) \break with 95\%-CI  \tabularnewline 
        
        KB & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ KB & 0,06 \hspace{0.02\textwidth} [0,03; 0,10] & 0,01 \hspace{0.02\textwidth} [-0,02; 0,04] \tabularnewline
        
        WOM & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ WOM & 0,06 \hspace{0.02\textwidth} [0,03; 0,10] & 0,01 \hspace{0.01\textwidth} [-0,02; 0,05] \tabularnewline
        
        MPB & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ MPB & -0,04 \hspace{0.02\textwidth} [-0,08; -0,01] & -0,01 \hspace{0.02\textwidth} [-0,03; 0,01] \tabularnewline
        
    \end{tabular*} 
\end{table}

\end{document}

答案1

将其添加@{}\multicolumn命令中,导致\multicolumn{1}{@{}b{0.15\textwidth}}{Behavioural intentions}“行为”与第一列中的其他内容水平对齐。

由于表格比文本宽度更宽,并且所有手动间距和距离看起来有点复杂,我添加了您可能也会喜欢的第二个替代版本的表格:

在此处输入图片描述

\documentclass{article}

\usepackage{array}
\begin{document}

\begin{table}
    \footnotesize
    \renewcommand{\arraystretch}{1.3}%
    \begin{tabular*}{\textwidth}{ @{\extracolsep{\fill}}l >{\hspace{0.02\textwidth}}l >{\centering}b{0.23\textwidth} >{\centering}b{0.23\textwidth}}%
        
        \multicolumn{1}{@{}b{0.15\textwidth}}{Behavioural\break intentions} & \multicolumn{1}{c}{Path} & Serial Mediation Effects (\textit{without} control of RF) with 95\%-CI & Serial Mediation Effects (\textit{with} control of RF) \break with 95\%-CI  \tabularnewline 
        
        KB & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ KB & 0,06 \hspace{0.02\textwidth} [0,03; 0,10] & 0,01 \hspace{0.02\textwidth} [-0,02; 0,04] \tabularnewline
        
        WOM & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ WOM & 0,06 \hspace{0.02\textwidth} [0,03; 0,10] & 0,01 \hspace{0.01\textwidth} [-0,02; 0,05] \tabularnewline
        
        MPB & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ MPB & -0,04 \hspace{0.02\textwidth} [-0,08; -0,01] & -0,01 \hspace{0.02\textwidth} [-0,03; 0,01] \tabularnewline
        
    \end{tabular*} 
\end{table}

\begin{table}
    \footnotesize
    \setlength{\tabcolsep}{0pt}
    \renewcommand{\arraystretch}{1.3}%
    \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}l  l *{4}{>{\(}r<{\)}r}}%
        
        Behavioural  & \multicolumn{1}{c}{Path} & \multicolumn{4}{c}{Serial Mediation Effects with 95\%-CI} \\
        intentions   &                          & \multicolumn{2}{c}{(\textit{without} control of RF)} &  \multicolumn{2}{c}{(\textit{with} control of RF)}   \\
        
        KB & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ KB & 0,06 & [0,03; 0,10] & 0,01 & [-0,02; 0,04] \\
        
        WOM & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ WOM & 0,06 & [0,03; 0,10] & 0,01 & [-0,02; 0,05] \\
        
        MPB & BEG $\rightarrow$ MU $\rightarrow$ GA $\rightarrow$ MPB & -0,04 & [-0,08; -0,01] & -0,01 & [-0,03; 0,01] \\
        
    \end{tabular*} 
\end{table}

\end{document}

相关内容