How can I create a node with the same shape as the box in the upper left having text "Suppliers" in the image below?

enter image description here

Besides, does there exist any tikz package with symbols like cars/carts/trucks/ship or something like that? I guess I have once seen these but I can't find them now.


You can use a \newcommand that draws a node (the text) but without border. Then you will draw a path using the nodes anchors and some extra calculations.


figure 1



    \node[rectangle, minimum width=3cm, minimum height=1cm] (main) at (#1) {#2};
    \draw (main.south west) -- (main.south east) -- (main.north east) --++
     (0,5mm) --++ (-1cm,-5mm) --++ (0,5mm) --++ (-1cm,-5mm) --++ (0,5mm) -- (main.north west) -- cycle;

  • Can I use it inside a tikzpicture rather than creating a new tikzpicture every time I use the command? With a pic or something. I just need to position other nodes relative to this node, so I am not sure if I can use a pic for this – Jamgreen Jun 15 '15 at 12:17
  • @Jamgreen Sure, you can remove that environment if you already use it in the document. I changed the answer. – Alenanno Jun 15 '15 at 12:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.