I'm using a quite satisfying solution for side by side independent caption figures, a solution by which images are sized automatically to same height and to text width, see MWE below.
\documentclass{article}
\usepackage{mwe}
\usepackage{floatrow}
\begin{document}
\blindtext
\begin{figure*}
\CommonHeightRow{\begin{floatrow}
\ffigbox[\FBwidth]{\includegraphics[height=\CommonHeight]{example-image-16x10}}{\caption{A caption.}\label{fig:01}}
\ffigbox[\FBwidth]{\includegraphics[height=\CommonHeight]{example-image-10x16}}{\caption{Another caption.}\label{fig:02}}
\end{floatrow}}
\end{figure*}
\blindtext
\end{document}
However sometimes I would like to limit the overall width of the two figures to something less (say 80%) than text width (retaining the uniform height), but I couldn't find a way to achieve it. (For some reason the naive solution of adding a scalar prefix to \CommonHeight, such as 0.8\CommonHeight, gives an error.)
Thanks in advance for any clue.
Solutions using a package other than floatrow are welcomed, as long as they automatically size images height and overall width by a given percentage of text width, as required.


subcaptionpackage);\begin{figure*} \ffigbox{}{\CommonHeightRow{\begin{subfloatrow}[2] \ffigbox[\FBwidth]{\includegraphics[height=\CommonHeight]{example-image-10x16}}{\caption{A subcaption.}\label{fig:01a}} \ffigbox[\FBwidth]{\includegraphics[height=\CommonHeight]{example-image-16x10}}{\caption{Another subcaption.}\label{fig:01b}} \end{subfloatrow}} \caption{The figure caption.}\label{fig:01a+01b}} \end{figure*}– mmj May 25 '18 at 09:57subfloatrowbecause it makes\FRleftmarginand\FRrightmarginempty and uses another scheme to place the figures, so simply redefining the environment doesn't work :/ I think your best bet is to ask a new question, so more people will see it. Add a link to this question to give a start :) – Phelype Oleinik May 25 '18 at 16:48