TransWikia.com

Stacked boxes in beamer (or more generally LaTeX)

TeX - LaTeX Asked by Modulato on December 11, 2020

I downloaded a pdf produced with the beamer class and I found these slides:

First slide
Second slide

I was wondering what command/environment/package was used to create the stacked rounded boxes. I searched the beamer manual but I found the beamerboxesrounded environment, which doesn’t seem to be what I am looking for.

One Answer

The following based on tcolorbox and tikz might serve as a point to start from:

enter image description here

documentclass{beamer}
usepackage{tcolorbox}
usepackage{tikz}
begin{document}
begin{frame}
frametitle{nested tcolorboxes}
begin{tcolorbox}[width=6cm] 
some contents in the larger surrounding box

  begin{tcolorbox}[hbox]
   smaller box
   end{tcolorbox}
end{tcolorbox}
end{frame}

begin{frame}
frametitle{overlapping tcolorboxes}
begin{tikzpicture}
  node (lowest) 
      {begin{tcolorbox}[width=4cm] 
       some contents in the lowest box
       end{tcolorbox}};
  node[anchor=north west] (middle) at (lowest.east) [xshift=-1cm]  
      {begin{tcolorbox}[width=3cm] 
       some contents in the middle box
       end{tcolorbox}};
  node (upper) at (middle.south west) [yshift=-0.1cm] 
      {begin{tcolorbox}[width=8cm] 
      some contents in the upper box
      end{tcolorbox}};
end{tikzpicture}
end{frame}
end{document}

Correct answer by leandriis on December 11, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP