我有一个由以下代码定义的图形:
\begin{figure}[H]
\begin{subfigure}[b]{0.48\linewidth}
\centering
\includegraphics[height=0.25\textheight]{r3.1per4.png}
\caption{Ciclo de Período 4, $r = 3.1$ e iterações de $100$ a $150$.}
\label{fig:output of knock R1_N_1}
\end{subfigure}%
\hspace{\fill}
\begin{subfigure}[b]{0.48\linewidth}
\centering
\includegraphics[height=0.25\textheight]{r3.8310per6.png}
\caption{Ciclo de Período 6, $r = 3.831$ e iterações de $100$ a $150$.}
\label{fig:output of knock R1_N_4}
\end{subfigure}%
\begin{subfigure}[b]{0.48\linewidth}
\centering
\includegraphics[height=0.25\textheight]{r3.507peri8.png}
\caption{Ciclo de Período 8, $r = 3.507$ e iterações de $100$ a $150$.}
\label{fig:output of knock R1_N_r_2}
\end{subfigure}
\hspace{\fill}
\begin{subfigure}[b]{0.48\linewidth}
\centering
\includegraphics[height=0.25\textheight]{r3.74per10.png}
\caption{Ciclo de Período 10, $r = 3.74$ e iterações de $100$ a $150$.}
\label{fig:output of knock R1_N_r_6}
\end{subfigure}
\begin{subfigure}[b]{0.48\linewidth}
\centering
\includegraphics[height=0.25\textheight]{r3.559per16.png}
\caption{Ciclo de Período 16, $r = 3.559$ e iterações de $100$ a $150$.}
\label{fig:output of knock R1_N_8}
\end{subfigure}
\hspace{\fill}
\begin{subfigure}[b]{0.48\linewidth}
\centering
\includegraphics[height=0.25\textheight]{r3.5830per24.png}
\caption{Ciclo de Período 24, $r = 3.583$ e iterações de $100$ a $150$.}
\label{fig:output of knock R1_C_2}
\end{subfigure}
\begin{subfigure}[b]{0.48\linewidth}
\centering
\includegraphics[height=0.25\textheight]{r3.538per32.png}
\caption{Ciclo de Período 32, $r = 3.568$ e iterações de $100$ a $150$.}
\label{fig:output of knock R1_C_5}
\end{subfigure}
\hspace{\fill}
\begin{subfigure}[b]{0.48\linewidth}
\centering
\includegraphics[height=0.25\textheight]{r3.634per36.png}
\caption{Ciclo de Período 36, $r = 3.634$ e iterações de $100$ a $150$.}
\label{fig:output of knock R1_C_7}
\end{subfigure}
\caption{Knockdown of proposed interactions in region R1}
\label{fig:output of knock R1}
\end{figure}
生成的文档上方有太多空间并且在页面底部被剪切,如下所示。
我怎样才能删除上面多余的空间,并使其不夹住下面的页面?
答案1
扩展大卫的精彩评论。
\documentclass{article}
\usepackage[demo]{graphicx} % demo: placeholder images
\usepackage{float} % [H]
\usepackage{subcaption} % subfigure
\usepackage{blindtext}
\begin{document}
\blindtext
% https://www.overleaf.com/learn/latex/How_to_Write_a_Thesis_in_LaTeX_(Part_3)%3A_Figures%2C_Subfigures_and_Tables
\begin{figure}[H]
\vspace{-15mm} % <-- Go crazy here!
\centering
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{graph1}
\caption{$y=x$}
\label{fig:y equals x}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{graph2}
\caption{$y=3sinx$}
\label{fig:three sin x}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{graph3}
\caption{$y=5/x$}
\label{fig:five over x}
\end{subfigure}
\caption{Three simple graphs}
\label{fig:three graphs}
\end{figure}
\blindtext
\end{document}