Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question

migrated from stackoverflow.com Apr 30 '13 at 15:27

This question came from our site for professional and enthusiast programmers.

    
Please read the answers to tex.stackexchange.com/q/39017/5763 for why [H] is normally a bad idea. –  Martin Schröder May 1 '13 at 16:02
add comment

1 Answer

up vote 5 down vote accepted

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:

share|improve this answer
    
It works perfectly! Thank you for your suggestions as well! –  Enrico Ribelli Apr 30 '13 at 13:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.