3

I have drawn the following diagram using Tikz:

\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{arrows.meta, positioning, quotes}

\begin{document}
    \begin{tikzpicture}[
node distance = 12mm and 12mm, 
   box/.style = {draw, rounded corners, 
                 minimum width=22mm, minimum height=5mm, align=center},
            > = {Straight Barb[angle=60:2pt 3]},
   bend angle = 15,
         auto = right,
                        ]
\node (n1)  [box] {text\\ text text text 1};
\node (n2)  [box, below right=of n1]    {text\\ text text 2};
\node (n3)  [box, above right=of n2]    {text\\ text text 3};
%
\draw[dotted,->] (n1) to ["label 1", swap]  (n3);
\draw[dashed,->] (n1) to [bend right, "label 2"]  (n2);
\draw[->]        (n2) to [bend right, "label 3"]  (n1);
\draw[->]        (n2) to [bend right, "label 5"]  (n3);
\draw[dotted,->] (n3) to [bend right, "label 4"]  (n2);
    \end{tikzpicture}
\end {document}

enter image description here

My question is: How can I make node n1 appear like that?

enter image description here

3
  • 1
    \node [double copy shadow,fill=blue!20,draw=blue,thick] {Hello World!};, see TikZ $ PGF manual, page 782. Needed is shadows library.
    – Zarko
    Feb 3, 2022 at 14:33
  • @Zarko do you happen to have a link for that manual? Feb 3, 2022 at 14:55
  • 1
    texdoc.org/serve/pgfmanual/0
    – Ignasi
    Feb 3, 2022 at 15:43

1 Answer 1

4

Let me spell-out my comment. For such cases, as you like to have at node n1, in TikZ library shadows is defined option double copy shadow:

\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{arrows.meta, 
                positioning, 
                quotes,
                shadows}  % <--- added

\begin{document}
    \begin{tikzpicture}[
node distance = 12mm and 12mm,
   box/.style = {draw, rounded corners, fill=white,
                 minimum width=22mm, minimum height=5mm, align=center},
            > = {Straight Barb[angle=60:2pt 3]},
   bend angle = 15,
         auto = right,
                        ]
\node (n1)  [box,
             double copy shadow={% <--- added
                shadow xshift=1ex, 
                shadow yshift=1ex}] {text\\ text text text 1};
\node (n2)  [box, below right=of n1]    {text\\ text text 2};
\node (n3)  [box, above right=of n2]    {text\\ text text 3};
%
\draw[dotted,->] (n1) to ["label 1", swap]  (n3);
\draw[dashed,->] (n1) to [bend right, "label 2"]  (n2);
\draw[->]        (n2) to [bend right, "label 3"]  (n1);
\draw[->]        (n2) to [bend right, "label 5"]  (n3);
\draw[dotted,->] (n3) to [bend right, "label 4"]  (n2);
    \end{tikzpicture}
\end {document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .