Draw boxes with text inside

3,070
\documentclass[a4paper,10pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[mybox/.style={minimum width=4cm,draw,thick,align=center,minimum height=1.8cm}]
\node[mybox,label=above:$\alpha$] (alpha) {1,2,3};
\node[right=1cm of alpha,mybox,label=above:$\beta$] (beta)  {4,5,6};
\node[right=1cm of beta,mybox,label=above:$\gamma$] (gamma)  {7,8,9};
\end{tikzpicture}
\end{document}

enter image description here

Share:
3,070

Related videos on Youtube

Admin
Author by

Admin

Updated on August 01, 2022

Comments