11

I know this topic is allready discussed but I still don't manage to solve this problem. I have 2 pictures in my document. I would like to delete the white vertical space between them. I found something about floatsep but it seems not work. I just have 2 simple images:

\begin{figure}[H]
\centering
\includegraphics[scale=0.37]{Cube.png}
\end{figure}

\begin{figure}[H]
\centering
\includegraphics[scale=0.37]{Cog.png}
\end{figure}

What do I have to add to solve this problem? And where I have to do it? Thank you!

2 Answers2

21

You can combine the contents of the separate figure environments into one:

\begin{figure}[htb]
  \centering
  \includegraphics[scale=0.37]{Cube.png}

  \vspace{<whatever>}

  \includegraphics[scale=0.37]{Cog.png}
\end{figure}

Now you can supply a space of <whatever> to adequately separate the images. If you don't want any space, just remove the \vspace command but keep an empty line between the two included images. Some suggestions:

Werner
  • 603,163
1

For one caption for both figures, you can try something like this

\begin{figure}[!t]
%first figure 
\begin{minipage}[h]{1.0\linewidth}
\centering
\includegraphics[width=\linewidth]{xomp}
\end{minipage}

\vspace{0.00mm} 

%second figure 
\begin{minipage}[h]{0.5\linewidth}
\centering
\includegraphics[width=\linewidth]{ins}
\end{minipage}   

%\vspace{0.00mm} 

%third figure 
%..
%..
\caption{one caption for both figure}
\label{fig:1}
\end{figure}

source: https://latex.org/forum/viewtopic.php?t=8844

Fuji
  • 13