I would like to place two independent figures (no subfigures) besides each other. Each figure should have its own caption. This approach uses two minipages inside a figure environment and is nearly what I'm looking for. But my figures don't have the same height, so I want to center them vertically, whereas the captions should stay on the same line.
Here is an example:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{caption}
\begin{document}
\begin{figure}
\centering
\begin{minipage}{.5\textwidth}
\centering
\includegraphics[width=.4\linewidth, height=.8\linewidth]{image1}
\captionof{figure}{A figure}
\label{fig:test1}
\end{minipage}%
\begin{minipage}{.5\textwidth}
\centering
\includegraphics[width=.4\linewidth, height=.4\linewidth]{image1}
\captionof{figure}{Another figure}
\label{fig:test2}
\end{minipage}
\end{figure}
\end{document}
This shows how the output looks vs. how I would like it to look:





minipages' width to.5\textwidthas well (this is due to the\hfill). In addition, the vertical space between figure 1 and its caption looks too small compared to a normal figure. – ph4nt0m Jun 11 '14 at 07:34