图形之间的垂直间距

图形之间的垂直间距

我是 Latex 新手,我正在写一份包含大量图片的报告。我无法减少图形之间的间距。我已经附上了我的代码。请告诉我如何才能减少图形之间的间距并插入文本。

\documentclass[a4paper]{jpconf}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{float}
\setlength{\intextsep}{1pt plus 1.0pt minus 1.0pt}
\begin{document}

\begin{abstract}

\end{abstract}

\section{Results}

Discriminator Calibration Curves
\begin{figure}[ht]
\begin{minipage}[b]{0.45\linewidth}
\centering
 \includegraphics[width=8.5cm]{Plot_1.png}
 \vspace{-10.5mm}
    \caption{Calibration curve of discriminator for alpha detector}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width=8.5cm]{Plot_2.png}
 \vspace{-10.5mm}
    \caption{\small{Calibration curve of discriminator for gamma detector}}
\end{minipage}
\end{figure}
\setlength{\floatsep}{1pt}
\begin{figure}[ht]
\begin{minipage}[b]{0.45\linewidth}
\centering
 \includegraphics[width=8.5cm]{Plot_3.png}
  \vspace{-10.5mm}
    \caption{Calibration curve of multipulser for alpha detector}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width=8.5cm]{Plot_4.png}
 \vspace{-10.5mm}
    \caption{\small{Calibration curve of multipulser for gamma detector}}
\end{minipage}
\end{figure}

\setlength{\floatsep}{1pt}
\begin{figure}[ht]
\begin{minipage}[b]{0.45\linewidth}
\centering
 \includegraphics[width=8.5cm]{Plot_5.png}
 \vspace{-10.5mm}
    \caption{Pulse height spectrum for alpha detector}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width=8.5cm]{Plot_6.png}
 \vspace{-10.5mm}
    \caption{\small{Pulse height spectrum for gamma detector}}
\end{minipage}
\end{figure}
\end{document}

答案1

这是您想要的输出吗?我只是注释了几行代码,并example-image-A按照上面的注释建议添加了测试数据。

输出

这是代码。

%\documentclass[a4paper]{jpconf}

\documentclass[a4paper]{article} % changed
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{float}

\usepackage{kantlipsum} %% dummy text added

%\setlength{\intextsep}{1pt plus 1.0pt minus 1.0pt}
\begin{document}

\begin{abstract}

\end{abstract}

\section{Results}

\textbf{Discriminator Calibration Curves}

\kant[1]

\begin{figure}[ht]
\begin{minipage}[b]{0.45\linewidth}
\centering
 \includegraphics[width= 0.45\linewidth, keepaspectratio]{example-image-A}
% \vspace{-10.5mm}
    \caption{Calibration curve of discriminator for alpha detector}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width= 0.45\linewidth, keepaspectratio]{example-image-B}
% \vspace{-10.5mm}
    \caption{\small{Calibration curve of discriminator for gamma detector}}
\end{minipage}
\end{figure}

\kant[2]

%\setlength{\floatsep}{1pt}
\begin{figure}[ht]
\begin{minipage}[b]{0.45\linewidth}
\centering
 \includegraphics[width= 0.45\linewidth, keepaspectratio]{example-image-A}
%  \vspace{-10.5mm}
    \caption{Calibration curve of multipulser for alpha detector}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width= 0.45\linewidth, keepaspectratio]{example-image-B}
% \vspace{-10.5mm}
    \caption{\small{Calibration curve of multipulser for gamma detector}}
\end{minipage}
\end{figure}

\kant[3]

%\setlength{\floatsep}{1pt}
\begin{figure}[ht]
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width= 0.45\linewidth, keepaspectratio]{example-image-A}
% \vspace{-10.5mm}
    \caption{Pulse height spectrum for alpha detector}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.45\linewidth}
\centering
\includegraphics[width= 0.45\linewidth, keepaspectratio]{example-image-B}
% \vspace{-10.5mm}
    \caption{\small{Pulse height spectrum for gamma detector}}
\end{minipage}
\end{figure}
\end{document}

相关内容