I hope somebody can help me. I am search for a split of a rectangle like this:
\node[rectangle,draw,minimum width=3cm, minimum height=3cm] (rec) {};
\node[name=v1,minimum width=3cm * 0.16cm] at
($(rec.north west)!0.5!(rec.west)!0.18!(rec.center)$){$v_1$};
\node[name=v2, minimum width=3cm * 0.16cm] at
($(rec.south west)!0.5!(rec.west)!0.18!(rec.center)$){$v_2$};
\draw (rec.north west) rectangle ($(rec.west)!0.32!(rec.center)$) {};
\draw (rec.south west) rectangle ($(rec.west)!0.32!(rec.center)$) {};
But what can I do if I would like to create a rectangle with x variables?
4 variables
+---------+-------------+
| v1 | |
+---------+ |
| d | |
+---------+ |
| c2 | |
+---------+ |
| f | |
+---------+-------------+
I would like to use a 'for each'-loop and access my rec via north, south, etc. I appreciate any help. Thank you! ;-)
