LaTex 表格环境中第一行和第二行文本之间的额外 space

Extra space between text of first and second rows in LaTex tabular environment

如何去除第一行和第二行文本之间多余的space?提前致谢!

\documentclass[jou]{apa7}
\usepackage{siunitx}
\usepackage{textcomp}

\begin{document}
\begin{tabular}{m{13em}m{1cm}m{1cm}m{1cm}m{13em}m{1cm}m{1cm}m{1cm}}  \hline
    & A & B & C & & D & E & F \ \hline
Model 1: Name of the first model inserted here & & & & Model 2: Name of the second model inserted here & & & & \ 
\hspace{3mm} Integration strategies & .03 & .10 & .000 & Integration strategies & .34 & .08 & .000 \
\hspace{3mm} Integration strategies & .12 & .03 & .56 & Integration strategies & .12 & .19 & .404\

\end{tabular}
\end{document}

您的 table 定义了 9 列,但在第二行中您使用了 10 列。您将收到关于此的错误,因此您甚至不应该查看可能有效或可能无效的内容pdf.

如果错误得到修复,table 将如下所示:

\documentclass[jou]{apa7}
\usepackage{siunitx}
\usepackage{textcomp}

\begin{document}
\begin{tabular}{m{13em}m{1cm}m{1cm}m{1cm}m{13em}m{1cm}m{1cm}m{1cm}}  \hline
    & A & B & C & & D & E & F \ \hline
Model 1: Name of the first model inserted here & & & & Model 2: Name of the second model inserted here & & & \ 
\hspace{3mm} Integration strategies & .03 & .10 & .000 & Integration strategies & .34 & .08 & .000 \
\hspace{3mm} Integration strategies & .12 & .03 & .56 & Integration strategies & .12 & .19 & .404\

\end{tabular}
\end{document}

与其对所有列的宽度进行硬编码,不如使用 tabularx 包(也许 booktabs 包以获得更好的间距)可能更容易:

\documentclass[jou]{apa7}
\usepackage{siunitx}
\usepackage{textcomp}
\usepackage{tabularx}
\usepackage{booktabs}

\begin{document}
\begin{tabularx}{\linewidth}{XlllXlll}  
\toprule
    & A & B & C & & D & E & F \ 
\midrule
Model 1: Name of the first model inserted here & & & & Model 2: Name of the second model inserted here & & & \ 
\quad Integration strategies & .03 & .10 & .000 & Integration strategies & .34 & .08 & .000 \
\quad Integration strategies & .12 & .03 & .56 & Integration strategies & .12 & .19 & .404\
\bottomrule
\end{tabularx}
\end{document}

通常我也会建议使用 @{}XlllXlll@{} 删除列前后的 space,但对于这个特定示例,这会导致非常糟糕的换行符