要调整表格标题和表格内容之间的间距,可以使用\abovecaptionskip命令来改变标题和表格之间的垂直间距。在\caption命令之前插入\setlength{\abovecaptionskip}{<value>},其中<value>是你想要的间距值。

以下是调整后的代码示例:

\begin{table}[H]
\renewcommand\arraystretch{1.25}
\centering % Label your table accordingly
\setlength{\abovecaptionskip}{10pt} % 设置标题和表格之间的间距
\caption{\label{tab3} Testing the robustness of MIMO: the frequency (standard deviation) of violating the original ranking results of the model in the new sample (the lower the better)}
\begin{tabular}{ccccc}
\toprule[0.35mm]
\textbf{Models} & \textbf{BTCV(\%)} & \textbf{AMOS 2022(\%)} \\
\midrule[0.15mm]
U-Net & 12.85($\pm$3.99) & 2.8($\pm$1.67)\\
V-Net & 18.2($\pm$2.61) & 10.45($\pm$2.31) \\
 nnU-Net & 17.3($\pm$3.57) & 9.85($\pm$2.72) \\
Attention u-net & 19.7($\pm$5.03) & 8.7($\pm$2.75) \\
Transunet & 17.85($\pm$2.81) & 11.2($\pm$3.17) \\
Swin-unet & 13.75($\pm$2.92) & 8.05($\pm$2.5) \\
Unetr & 18.6($\pm$3.62) & 9.2($\pm$2.01) \\
Swin unetr & 17.55($\pm$4.88) & 8.55($\pm$3.05) \\
\bottomrule[0.35mm]
\end{tabular}
\end{table}

你可以根据需要调整\setlength{\abovecaptionskip}{<value>}中的<value>值来改变间距的大小。

如何调整 LaTeX 表格标题和表格内容之间的间距

原文地址: http://www.cveoy.top/t/topic/fAEu 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录