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] \usetheme \usecolortheme \begin \begin \frametitle \begin \begin <0.5\linewidth>\begin text \end \end \begin <0.5\linewidth>\begin text \end \end \end \begin text \end \end \end
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.
asked Jun 5, 2022 at 10:14 Nathanael Skrepek Nathanael Skrepek 313 2 2 silver badges 11 11 bronze badges Try adding \vphantom@Ignasi it is good but i thought that there might be a better solution. espacially because i have to guess a good distance with 0.48\textwidth . and when i don't use onlytextwidth there is automatically a little distance in between
Commented Jun 6, 2022 at 9:41I not sure to understand the problem. If you don't use onlytextwidth 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.