# Spacing between images in a figure environment

Example :

\begin{figure}
\centering
\includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-c}
\includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-c}
\includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-c}
\includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-c}
% \hspace{20pt}
\vspace{1cm}
\includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-a}
\includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-a}
\includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-a}
\includegraphics[width=0.23\textwidth, trim={0 0 0 0}, clip]{example-image-a}
\caption[example]{This is an example}
\label{fig:example}
\end{figure}


Which looks as follows:

The spacing between row with C and row with A is too tight and I would like to be able to add some space here.

• Adding a blank line after \vspace should give the spacing you want. – Bernard Mar 28 at 21:38
• Please -- as usual here -- make your code snippet compilable! – Mensch Mar 28 at 21:43
• \par \vspace{0.5cm} work for me. – ferahfeza Mar 28 at 21:54

Make sure you have a blank line before your \vspace command. Remember, a graphic behaves just like a giant letter, so you are looking at a paragraph consisting of such “letters”. With the blank line, the paragraph is broken in two, and the \vspace has the intended effect. In general, avoid using \vspace in paragraph building mode. Its effect is likely to be confusing.