I am looking for a simple way to make the following boxes the same height.
\documentclass{article}
\setlength{\parindent}{0pt}
\begin{document}
\fbox{\hbox to 0.3\linewidth{\vbox{test}}}%
\hfill
\fbox{\hbox to 0.3\linewidth{\vbox{test\par{}test\par{}test}}}%
\hfill
\fbox{\hbox to 0.3\linewidth{\vbox{test\par{}test}}}
\end{document}
I have experimented with calculating the maximum of the heights of the boxes and setting them with the settobox
package but I am wondering whether there might be a simpler way. Please note that I do not know the height of any of the boxes beforehand and that I am looking for a method that also scales when there are more than three boxes.
\fbox{\hbox to 0.3\linewidth{\vbox{\phantom{test}\par{}test\par{}test}}}
? Would this be enough?