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!
Best Answer
You can combine the contents of the separate
figure
environments into one: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:[H]
float specifier (from thefloat
package) doesn't help here, since you're keeping things together anyway. For more on float placement, see How to influence the position of float environments like figure and table in LaTeX?;scale
is okay. However, in most cases it's better to use awidth
orheight
key-value. This way you can ensure the two images are of the same size. Use, for example,width=0.5\linewidth
.