如何调整 LaTeX 表格标题和表格内容之间的间距
要更改表格标题和表格开始处之间的间距大小,您可以使用以下代码:
\setlength{\abovecaptionskip}{<size>}
其中,<size> 是您想要设置的间距大小。您可以将其添加到您的代码中,如下所示:
\begin{table}[H]
\renewcommand\arraystretch{1.25}
\centering % Label your table accordingly
\setlength{\abovecaptionskip}{<size>}
\caption{\label{tab2} The final MIMO scores of each model in two datasets}
\begin{tabular}{ccccc}
\toprule[0.35mm]
\multirow{2}{*}{\textbf{Models}} & \multicolumn{2}{c}{\textbf{Usability and comprehensiveness}}\cr
\cmidrule[0.25mm](lr){2-3} \cmidrule[0.25mm](lr){4-5}
& BTCV & AMOS 2022\\
\midrule[0.15mm]
U-Net & 0.128 & 0.238 \\
V-Net & 0.615 & 0.664 \\
NNU-Net & 0.513 & 0.830 \\
Attention u-net & 0.705 & 0.679 \\
Transunet & 0.346 & 0.757 \\
Swin-unet & 0.295 & 0.340 \\
Unetr & 0.564 & 0.372 \\
Swin unetr & \bf{0.769} & \bf{0.851}\\
\bottomrule[0.35mm]
\end{tabular}
\end{table}
在上述代码中,将 <size> 替换为您想要的间距大小值,例如 5pt 或 10pt。通过更改 \abovecaptionskip 的值,您可以调整标题和表格开始处之间的间距大小。
原文地址: https://www.cveoy.top/t/topic/fAE3 著作权归作者所有。请勿转载和采集!