当一行由于段落列而有多行时,我很难设置表格中的间距。我已经减少了行之间的距离,但这是关于一行内的间距。这是我的代码的简短形式:
\documentclass{scrartcl}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\begin{table}[htbp]\centering
\renewcommand{\arraystretch}{0.5}
\caption{Summary Statistics: Continuous Variables \label{sumstat}}
{
\begin{tabular}{l p{7cm} c c c c }
\cline{1-2}
\toprule
& & \multicolumn{2}{c}{Within}& \multicolumn{2}{c}{Between}\\ \cline{3-4} \cline{5-6} \noalign{\smallskip}
Variable & Description & Mean& SD& Mean& SD\\
\midrule
\multicolumn{6}{l}{\textit{Dependent Variables}} \\
TreatWin & 1 if household installed new windows in the last year and subsequently, 0 otherwise & x& x & x& x\\
envir & concerned about the environmental protection, categorical from 0 (not at all) to 2 (very)& x& x & x& x\\
\bottomrule
\end{tabular}
}
\end{table}
\end{document}
感谢您的帮助!
最好的,法比安