[Tex/LaTex] Align by the top borders of figures when using subcaption

floatssubcaption

I'm using the subcaptionpackage 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:
Subcaption example

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]:

\documentclass[a4paper,11pt]{article}
\usepackage{subcaption}

\begin{document}
\begin{figure}[h]
\begin{subfigure}[t]{.5\linewidth}
\centering\large A
\caption{A subfigure}\label{fig:1a}
\end{subfigure}%
\begin{subfigure}[t]{.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}    

\end{document}

that leads to:

enter image description here

The reason of my choice was just a parallel with t,b of columns alignment in Beamer.

Related Question