I'm using the subcaption
package to have figures side-by-side. The problem is that the package aligns the figures to their subcaptions (should I be taking a hint for the package name?) rather than the top of the pictures.
How can I algin the subfigures by the top border?
MWE:
\begin{figure}[h]
\begin{subfigure}[b]{.5\linewidth}
\centering\large A
\caption{A subfigure}\label{fig:1a}
\end{subfigure}%
\begin{subfigure}[b]{.5\linewidth}
\centering\large B
\caption{Another subfigure with a long, long, long, long caption.}\label{fig:1b}
\end{subfigure}
\caption{A figure}\label{fig:1}
\end{figure}
Result:
Best Answer
I've tried to solve the problem in a different way, although in the package documentation I don't find any hint on this. Instead of adopting
[b]
I set[t]
:that leads to:
The reason of my choice was just a parallel with
t,b
ofcolumns
alignment inBeamer
.