LaTeX 表格标题间距调整:\abovecaptionskip 和 \belowcaptionskip

在 LaTeX 中创建表格时,你可能希望调整表格标题和表格内容之间的间距,以便获得更好的排版效果。\abovecaptionskip 和 \belowcaptionskip 命令可以帮助你实现这一点。

\abovecaptionskip: 用于设置表格标题上方的间距。\belowcaptionskip: 用于设置表格标题下方的间距。

以下是使用这两个命令调整表格标题间距的示例:latex\begin{table}[H]\renewcommand\arraystretch{1.25}\centering % Label your table accordingly\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)}\setlength{\abovecaptionskip}{10pt}\setlength{\belowcaptionskip}{5pt}\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}{10pt} 将表格标题上方的间距设置为 10pt。* \setlength{\belowcaptionskip}{5pt} 将表格标题下方的间距设置为 5pt。

你可以根据需要修改这些值,以调整表格标题和表格内容之间的间距。

LaTeX 表格标题间距调整:abovecaptionskip 和 belowcaptionskip

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

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