I'm trying to set two figures, side-by-side, both with variable width and both with the height of the tallest.
Code: Select all
\documentclass[]{article}
\usepackage{varwidth}
\begin{document}
\begin{figure}[H]
\begin{varwidth}{\textwidth}
\framebox{
\begin{tabular}{l}
first row \\
second row \\
third row
\end{tabular}
}
\caption{First figure.}
\end{varwidth}
\hfill
\begin{varwidth}{\textwidth}
\framebox{
\begin{tabular}{l}
first row \\
second row \\
\end{tabular}
}
\caption{second figure.}
\end{varwidth}
\end{figure}
\end{document}