Is there any elegant way to layout multiple images like this automatically:
\begin{figure}
\centering
\includegraphics[width=0.32\textwidth]{eval1.pdf}%
\includegraphics[width=0.32\textwidth]{eval2.pdf}%
\includegraphics[width=0.32\textwidth]{eval3.pdf}
\\
\includegraphics[width=0.32\textwidth]{eval4.pdf}%
\includegraphics[width=0.32\textwidth]{eval5.pdf}%
\includegraphics[width=0.32\textwidth]{eval6.pdf}
\caption{Results for four scenarios}
\label{results}
\end{figure}
This methods becomes somewhat tedious when using different layouts like 5x2 or 6x2. I would like to say "use x% of the maximal available width for theses n images and put a white space of d between them".
Edit: This question previously also included a problem with the missing % which screwed up a 2x2 layout when using 0.5\textwidth instead of 0.49\textwidth. Thanks to Torbjørn for pointing this out!
\includegraphicscreates a space, add a%at the end of the line. – Torbjørn T. Aug 18 '13 at 16:17