如何删除小节前后的空格?

如何删除小节前后的空格?

以下应该是我的问题的完整示例。本质上对于第一个图,小节后面有很多空间,我想删除它们。不幸的是,我不能使用任何会修改整个文档的全局命令,因为这对于 LNCS 格式不推荐。有人有什么想法吗?谢谢。

\documentclass{llncs}

\usepackage[utf8]{inputenc}

\usepackage[all,british]{foreign}
\usepackage{float}
\usepackage{soul}
\usepackage{import}
\usepackage{hyperref}
\usepackage[T1]{fontenc}

\usepackage{wrapfig}

\usepackage{tcolorbox}
\usepackage{subfig}
\begin{document}
\section{Section}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae nulla ac
eros sodales dictum eu sed orci. Fusce a nisi tortor. Donec quis ultricies odio,
at tempus purus. Ut vulputate gravida eleifend. Praesent bibendum ullamcorper
scelerisque. Suspendisse at nisl ante. Class aptent taciti sociosqu ad litora
torquent per conubia nostra, per inceptos himenaeos. Donec odio ipsum, pharetra
a congue non, scelerisque vel leo. Curabitur ligula erat, feugiat sit amet eros
quis, accumsan facilisis libero. Pellentesque iaculis, velit id scelerisque
aliquam, tellus sem rutrum elit, sit amet elementum erat nisi imperdiet nunc. Ut
vitae neque molestie, tincidunt nibh et, sagittis orci.

\begin{figure}[H]
\subfloat[\label{fig:experiment1_normalized}Figure A]{
    \includegraphics[scale=0.5]{graphs/experiment1/experiment1a/normalized.eps}
}
\subfloat[\label{fig:experiment1_threads}Figure B $n=67\times 10^6$]{
    \includegraphics[scale=0.5]{graphs/experiment1/experiment1c/thread.eps}
}
\caption[]{\label{fig:experiment1_results} Fig A and B}
\end{figure}

\subsection{Subsection 1}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae nulla ac
eros sodales dictum eu sed orci. Fusce a nisi tortor. Donec quis ultricies odio,
at tempus purus. Ut vulputate gravida eleifend. Praesent bibendum ullamcorper
scelerisque. Suspendisse at nisl ante. Class aptent taciti sociosqu ad litora
torquent per conubia nostra, per inceptos himenaeos. Donec odio ipsum, pharetra
a congue non, scelerisque vel leo. Curabitur ligula erat, feugiat sit amet eros
quis, accumsan facilisis libero. Pellentesque iaculis, velit id scelerisque
aliquam, tellus sem rutrum elit, sit amet elementum erat nisi imperdiet nunc. Ut
vitae neque molestie, tincidunt nibh et, sagittis orci.

\begin{figure}[H]
\subfloat[\label{fig:experiment1_normalized}Figure A]{
    \includegraphics[scale=0.5]{graphs/experiment1/experiment1a/normalized.eps}
}
\subfloat[\label{fig:experiment1_threads}Figure B $n=67\times 10^6$]{
    \includegraphics[scale=0.5]{graphs/experiment1/experiment1c/thread.eps}
}
\caption[]{\label{fig:experiment1_results} Fig A and B}
\end{figure}

\subsection{Subsection 2}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vitae nulla ac
eros sodales dictum eu sed orci. Fusce a nisi tortor. Donec quis ultricies odio,
at tempus purus. Ut vulputate gravida eleifend. Praesent bibendum ullamcorper
scelerisque. Suspendisse at nisl ante. Class aptent taciti sociosqu ad litora
torquent per conubia nostra, per inceptos himenaeos. Donec odio ipsum, pharetra
a congue non, scelerisque vel leo. Curabitur ligula erat, feugiat sit amet eros
quis, accumsan facilisis libero. Pellentesque iaculis, velit id scelerisque
aliquam, tellus sem rutrum elit, sit amet elementum erat nisi imperdiet nunc. Ut
vitae neque molestie, tincidunt nibh et, sagittis orci.

\end{document}

这是问题的图片: 在此处输入图片描述

请注意小节与前面的图以及后面的文本之间的空格Subsection 1。代码包含两个图的原因是,这个问题不知何故只在我后面有另一个图时才会出现。这个特定布局的某些方面导致了这个问题,我无法弄清楚。

相关内容