为什么子浮动需要更多的垂直空间?

为什么子浮动需要更多的垂直空间?

我正在对 进行测试subfloat。我发现subfloat需要比浮动更多的垂直空间normal。我不知道为什么。测试代码如下所示。你能帮我删除subfloat图形中的额外垂直空间吗?

\documentclass{IEEEtran}
\usepackage{amsmath}
\usepackage{lipsum}

\usepackage{graphicx}


\ifCLASSOPTIONcompsoc
  \usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig}
\else
  \usepackage[caption=false,font=footnotesize]{subfig}
\fi

%-------------------------------- show page layout, only for test
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%


\begin{document}
\lipsum[1-9]

\begin{figure*}
\centering
\includegraphics[width=0.32\linewidth]{example-image-a}\hfill
\includegraphics[width=0.32\linewidth]{example-image-a}\hfill
\includegraphics[width=0.32\linewidth]{example-image-a}
\caption{
  A test. balabala balabala balabala balabala balabala balabala 
  balabala balabala balabala balabala balabala balabala balabala 
  balabala. balabala balabala balabala balabala balabala balabala 
  balabala balabala balabala balabala balabala balabala balabala balabala.
}
\end{figure*}

\section{New section}
\lipsum

\begin{figure*}
\centering
\subfloat[]{\includegraphics[width=0.32\linewidth]{example-image-a}}\hfill
\subfloat[]{\includegraphics[width=0.32\linewidth]{example-image-a}}\hfill
\subfloat[]{\includegraphics[width=0.32\linewidth]{example-image-a}}
\caption{
  A test. balabala balabala balabala balabala balabala balabala 
  balabala balabala balabala balabala balabala balabala balabala 
  balabala. balabala balabala balabala balabala balabala balabala 
  balabala balabala balabala balabala balabala balabala balabala balabala.
}
\end{figure*}
\lipsum[1-10]


\end{document}

部分输出。 在此处输入图片描述 在此处输入图片描述

答案1

跳过了farskip,你可以用

\usepackage[caption=false,font=footnotesize,farskip=0pt]{sub‌​fig}

软件包文档声称这个跳过不会插入到分页符中,但这个测试似乎无法正常工作figure*

相关内容