I'm trying to achieve having two cells the same height in order to frame them with an ovalbox but don't know how to do this. I did try with an
\ovalbox outside of a \parbox (what I call "first try"), and the same but with a tabular outside (second try). Also, following a trick found in [1] I did try with \raisebox and {lrbox} also without success.What I want is a way to have two adjacent boxes with equal heights to frame them with
\ovalbox, \framebox or \shadowbox (something like vertical centering the smallest box). Both texts inside boxes are arbitrary and comes from commands defined with \newcommand and generally I don't know which one is the tallest.
Code: Select all
\documentclass{article}
\usepackage{fancybox}
\usepackage[vmargin={3cm,3cm},hmargin={1cm,1cm},footskip=0pt,headsep=0pt,headheight=0pt]{geometry}
\setlength{\parindent}{0pt}
\begin{document}
% First try
\ovalbox{%
\parbox{8cm}{%
some text
}}
\hfill
\ovalbox{%
\parbox{8cm}{%
some different \par
text
}}
% Second try
\begin{tabular*}{\textwidth}{ll}
\ovalbox{%
\parbox{8cm}{%
some text
}}
&
\ovalbox{%
\parbox{8cm}{%
some different \par
text
}}
\end{tabular*}
\end{document}[1] LaTeX/Tables – Wikibooks, open books for an open world