I want to create the following layout:
------------ -------------
| IMAGE 1 | | IMAGE 2 |
|____________| |_____________|
Notice that the two images are relatively small in size, but I want them to be placed at the right/leftmost edge of the document. I tried it using minipages like this:
\begin{minipage}{4cm}
\includegraphics[width=4cm]{image1.eps}
\end{minipage}
\begin{minipage}{4cm}
\begin{flushright}
\includegraphics[width=4cm]{image2.eps}
\end{flushright}
\end{minipage}
But then, the two images are placed like this:
------------
| IMAGE 1 |
|____________|
-------------
| IMAGE 2 |
|_____________|
I fooled around with the values of minipage and image-width, but nothing seems to help...
Edit: Also, I need the images to be centered to each other (horizontally speaking), so they are nicely aligned if one is bigger than the other.

\includegraphics[width=4cm]{image1.eps}\hfill\includegraphics[width=4cm]{image2.eps}? – Andrew Stacey Apr 29 '11 at 12:39flushrightdoes nothing because it is inside theminipage, and yourminipageand graphic are the same size. That the two are on separate lines is caused by the blank line between theminipageenvironments: that starts a new paragraph.) – Andrew Stacey Apr 29 '11 at 12:40minipages is inserting a new paragraph which make the second image be placed below the first. You need to avoid this. – Martin Scharrer♦ Apr 29 '11 at 13:02