I am using code in the following solution How can I write perfectly centered tex inside a cloud figure?:
\documentclass[border=0.2cm]{standalone} \usepackage{tikz} \usetikzlibrary{shapes.symbols} \begin{document} \begin{tikzpicture} \node[text width=0.8cm,inner sep=0pt] [execute at begin node=\setlength{\baselineskip}{8pt}, cloud, draw] (c) at (0,0) {\scriptsize{Lost\\Broker}}; \end{tikzpicture} \end{document}
I want to draw additional aligned rectange inside the cloud. Is it possible to wrap text inside the cloud with a rectangle as below, filling inside with gray if possible?






fill=...– hpekristiansen Jul 07 '22 at 12:19\node[cloud, fill=cyan, draw, node font=\scriptsize, align=center, label={[draw, fill=pink, node font=\scriptsize, align=center]center:{Lost\\Broker}}] {\phantom{Lost}\\\phantom{Broker}};so that there's no fiddling needed withtext widthbecause thecloudwill be automatically big enough for the label to fit. – Qrrbrbirlbel Oct 16 '22 at 21:26