I have a lot of nodes placed with tikz. Now I need to draw an rectangle around all these nodes.
I can draw the rectangle manually with
\draw [fill=gray!5] (2, -6) rectangle (18, 6.5)
(2, 6.5) node[below right,fill,draw] {Rectangle Title};
All my nodes are named and placed relatively:
...
\node [below=5cm of nodeA] (nodeB) {Node B text};
...
\documentclass{...}
and ending with\end{document}
.fit
library.fit
(p.630, pgfmanual)...fit
library. This seems to be the best solution but it might be different if we saw your code.fit
library: how to draw a container box in latex around automata? Tikz - How to Draw Boxes Around Set of Nodes