\documentclass[tikz, border=5mm]{standalone} \usepackage{textcomp} \usepackage{graphicx} \usetikzlibrary{arrows.meta,decorations.markings,fit,calc, positioning} \usetikzlibrary{calc,positioning,shapes,decorations.pathreplacing} % the styles for short and long nodes \tikzset{ short/.style={draw,rectangle,text height=6pt,text depth=13pt,text width=30pt,align=center,fill=yellow!30}, long/.style={short,text width=60pt} } \begin{document} % the short nodes \shnode{