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.