I'm displaying some figures with different bounding box. The figures seems to be bottom aligned, but I would like to have them vertically aligned. I though subcaption automatically take care of that, but it seems that does not.
Here's a piece of my code:
\documentclass[final,5p,times]{elsarticle}
\usepackage{subcaption}
\begin{document}
\begin{figure*}[htpb]
\subcaptionbox{Curl-free potential singularities}{\includegraphics[width=.3\textwidth]{figs/Case1/Singularities/rotational_pot_sing}} \hfill
\subcaptionbox{Divergence-free potential singularities}{\includegraphics[width=.3\textwidth]{figs/Case1/Singularities/divergence_pot_sing}} \hfill
\subcaptionbox{Vector field potentials singularities}{\includegraphics[width=.3\textwidth]{figs/Case1/Singularities/vector_field_sing}}
\label{fig:case1_sing}
\end{figure*}
\end{document}
And that is the result:
How could I get the desired result?
Thank you.
Best Answer
You can capture the tallest image in a box, which you can then use to measure the height by which you want/have to raise the other not-so-tall images:
\ht9
represents the height of box 9, while\height
is the height of<stuff>
in\raisebox{<height>}{<stuff>}
.As reference see References for
\dimexpr
and\numexpr
.