I've used the a double copy shadow (from this answer) to add multiple rectangles to a node. I would now like to wrap that node and several others with a fit node, but it seems like the fit node does not include the shadows.
For example:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows,positioning,calc,fit}
\tikzset{multiple/.style = {double copy shadow={shadow xshift=1ex,shadow
yshift=-1.5ex,draw=black!30},fill=white,draw=black,thick,minimum height = 1cm,minimum
width=2cm},
ordinary/.style = {rectangle,draw,thick,minimum height = 1cm,minimum width=2cm}}
\begin{document}
\begin{tikzpicture}
\node [ordinary] at (0,0) (a) {Some};
\node [multiple,below=3cm of a] (b) {Text};
\draw[-latex] (a) -- coordinate (ab) (b);
\draw (ab) -- ++(0.7,-0.5)coordinate[pos=.3](ab1) coordinate[pos=.6](ab2);
\draw[-latex] (ab1) -- ($(b.north west)!(ab1)!(b.north east)$);
\draw[-latex] (ab2) -- ($(b.north west)!(ab2)!(b.north east)$);
\node [fit=(a)(b),draw,rectangle] {};
\end{tikzpicture}
\end{document}
This results with:
Is it possible to change the code to include them?
multiple
style to add an emptylabel
(for instancelabel={[name=\tikzlastnode-shadow,shift={(1cm+2ex,-0.5cm-3ex)}]center:}
, and then you addb-shadow
in the fit list). I don't see how to easily make it work in the general case.standalone
image which is cropped will happily exclude shadows. They just aren't there as far as the bounding box is concerned.