如何在每个图形、表格和算法前后添加空行?我设法找到了类似这样的内容:
% Load the floatrow package
\usepackage{floatrow}
% Set the spacing around algorithms
\floatsetup[algorithm]{capposition=top,skip=10pt}
% Set the spacing around graphics
\floatsetup[figure]{capposition=top,skip=10pt}
% Set the spacing around tables
\floatsetup[table]{capposition=top,skip=10pt}
但它甚至无法编译 -Undefined control sequence
编辑
已修复-使用这个:
% Load the caption package
\usepackage{caption}
% Set the spacing around algorithms
\captionsetup[algorithm]{aboveskip=10pt,belowskip=10pt}
% Set the spacing around graphics
\captionsetup[figure]{aboveskip=10pt,belowskip=10pt}
% Set the spacing around tables
\captionsetup[table]{aboveskip=10pt,belowskip=10pt}
答案1
答案2
您也许可以使用\vspace{Xmm}
其中 X 是您想要的空白空间的大小