LaTeX表格标题与内容间距调整:添加空行在使用 LaTeX 排版表格时,你可能需要调整表格标题和内容之间的间距,使其更美观。本文将介绍如何使用 /medskip 命令在 /caption/begin{tabular} 之间添加一个空行。**问题:**默认情况下,LaTeX 表格的标题和内容之间没有空行,如下所示:latex/begin{table}[H]/renewcommand/arraystretch{1.25}/centering % Label your table accordingly/setlength{/abovecaptionskip}{5pt}/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 /cmidrule0.25mm{2-3} /cmidrule0.25mm{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}**解决方案:**只需在 /caption 命令下方添加一个空的 /medskip 命令即可:latex/begin{table}[H]/renewcommand/arraystretch{1.25}/centering % Label your table accordingly/setlength{/abovecaptionskip}{5pt}/caption{/label{tab2} The final MIMO scores of each model in two datasets} /medskip % 添加空行间距/begin{tabular}{ccccc}/toprule[0.35mm]/multirow{2}{}{/textbf{Models}} & /multicolumn{2}{c}{/textbf{Usability and comprehensiveness}}/cr /cmidrule0.25mm{2-3} /cmidrule0.25mm{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}这样就可以在表格标题和内容之间添加一个空行了,使表格排版更美观。

LaTeX表格标题与内容间距调整:添加空行

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

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