I want to place two boxes side by side and one box below both of them such that the are aligned. I thought of using columns, but then the alignment does not match.
Here my minimal example:
\documentclass[t,aspectratio=169]{beamer}
\usetheme{boxes}
\usecolortheme{rose}
\begin{document}
\begin{frame}
\frametitle{test}
\begin{columns}
\begin{column}{0.5\linewidth}
\begin{block}{left}
text
\end{block}
\end{column}
\begin{column}{0.5\linewidth}
\begin{block}{right}
text
\end{block}
\end{column}
\end{columns}
\begin{block}{middle}
text
\end{block}
\end{frame}
\end{document}
with output:
But I would like to get something like this:
What is the best practice for this problem?
While I am writing this the algorithm of this website suggested me some similar posts and in one of these post there was the optional parameter onlytextwidth
for the columns environment. But this leads to two touching Blocks. then I can reduce the size of the columns to e.g. 0.48\textwidth
which surprisingly works. I expected that then the two blocks don't align on the right hand side.
the column
documentation doesn't really tell me how it arranges the columns.
So even though I found kind of a solution I am wondering how the "best" solution looks like.
\vphantom{g}
to the title of the left boxonlytextwidth
is good, what's the problem?0.48\textwidth
. and when i don't useonlytextwidth
there is automatically a little distance in betweenonlytextwidth
columns are distributed over a wider space. So if you want to keep the alignment with a one column box, you need to add this option. And about distribution, if I'm not wrong columns are aligned to the left and right exterms with the available space in between. You don't need to guess a good distance, but you have to use widths which sum is inferior to textwidth.