In my document, the TikZ
pictures have different bounding boxes so the two subfigures
have staggered captions
.
\documentclass{article}
\usepackage{standalone}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{.4\linewidth}
\centering
\includestandalone{one}
\caption[short]{long}
\end{subfigure}
\begin{subfigure}{.4\linewidth}
\centering
\includestandalone{two}
\caption[short]{long}
\end{subfigure}
\end{figure}
\end{document}
Since you wont have my two standalones, I will show what is happening:
I would like for the subcaptions
to start on the same row.
Best Answer
You can get the desired alignment using the
\subcaptionbox
command instead of thesubfigure
environment; the following example shows a comparison betweensubfigure
with default vertical alignment,subfigure
with bottom vertical alignment, and\subcaptionbox
(theH
option fromfloat
was only used for the example; I am not recommending using this placement specidier):