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}. – Jun 21 '15 at 08:49fitlibrary. – Pier Paolo Jun 21 '15 at 08:49fit(p.630, pgfmanual)... – Paul Gaborit Jun 21 '15 at 08:49fitlibrary. This seems to be the best solution but it might be different if we saw your code. – Alenanno Jun 21 '15 at 08:54fitlibrary: how to draw a container box in latex around automata? Tikz - How to Draw Boxes Around Set of Nodes – Torbjørn T. Jun 21 '15 at 08:54