[Tex/LaTex] How to use tabular/array to arrange figures

arraysfloatstables

Possible Duplicate:
How to use images in a table?

I'm looking for a solution for automatic alignment of figures within my tex-file. I would like to keep it as simple as possible. I have the following idea but don't know how to implement it. Has anyone a suggestion?

\begin{tabular}{ll}
%\hline
\begin{figure} \includegraphics{pic.eps} \end{figure} & \begin{figure} \includegraphics{pic.eps} \end{figure} \\
\begin{figure} \includegraphics{pic.eps} \end{figure} & \begin{figure} \includegraphics{pic.eps} \end{figure} \\
\begin{figure} \includegraphics{pic.eps} \end{figure} & \\
%\hline
\end{tabular}

Of course it would even be much more better, if I'd just type in the following and LaTeX will generate a two column table which will break automatically.

\begin{tabular}{ll}
\includegraphics{pic.eps}
\includegraphics{pic.eps}
\includegraphics{pic.eps}
\includegraphics{pic.eps}
\includegraphics{pic.eps}
\end{tabular}

Here is how I would like it to be in the end

enter image description here

Best Answer

If you have a specific width of your graphics (let's say about .48\textwidth or something like that, you might also use the subfigure package, http://ftp.twaren.net/Unix/TeX/CTAN/obsolete/macros/latex/contrib/subfigure/subfigure.pdf using the example 3.1 (page 15) using the package option raggedright. Advantage of this approach would be, that the other package options and vertical alignments, if you have 2 images of different height in one line. And of course - subfigure captions, which I really like.

Related Question