How to draw a stack in drawstack/TiKz?How to draw stack diagram with TiKz?Simple (execution) stack with pointers and comments using TikZstack multiple PDF pagesPassing stack data to tikz node namesPassing current counter value to stack data structureError “You can't pop an empty literal stack” in theapa.bsteuropecv stack exceedingPopping a stack item in a file streamHow to draw the Stack Overflow icon with TikZ?TeX capacity exceeded, sorry [input stack size=5000] error

Why did the Apollo 13 crew extend the LM landing gear?

Are pressure-treated posts that have been submerged for a few days ruined?

Write buffer to command and append stdout back to same buffer

Product of arbitrary Mersenne numbers

Gerrymandering Puzzle - Rig the Election

Fill the grid (pattern)

Yet another images in tables question alignment. Want text to start at top of cell. Not cetered

Why didn't this character get a funeral at the end of Avengers: Endgame?

My first C++ game (snake console game)

Out of scope work duties and resignation

Should I simplify my writing in a foreign country?

As black, how should one respond to 4. Qe2 by white in the Russian Game, Damiano Variation?

How to deal with employer who keeps me at work after working hours

Will 700 more planes a day fly because of the Heathrow expansion?

Are the Night's Watch still required?

Why aren't nationalizations in Russia described as socialist?

How to preserve a rare version of a book?

When an imagined world resembles or has similarities with a famous world

Why would a military not separate its forces into different branches?

Can I use a Cat5e cable with an RJ45 and Cat6 port?

What was the first story to feature the plot "the monsters were human all along"?

Finding an Explicit Formula for a Geometric Series

As a GM, is it bad form to ask for a moment to think when improvising?

Is “snitty” a popular American English term? What is its origin?



How to draw a stack in drawstack/TiKz?


How to draw stack diagram with TiKz?Simple (execution) stack with pointers and comments using TikZstack multiple PDF pagesPassing stack data to tikz node namesPassing current counter value to stack data structureError “You can't pop an empty literal stack” in theapa.bsteuropecv stack exceedingPopping a stack item in a file streamHow to draw the Stack Overflow icon with TikZ?TeX capacity exceeded, sorry [input stack size=5000] error













2















I'm trying to replicate this picture (without the airplane)



I googled online and found the package drawstack but I couldn't find any documentation on how to use it. The closest I got to a minimal example is this:



documentclassarticle
usepackagegraphicx
usepackageenumitem
usepackageamsmath
setlengthparindent0pt
usepackagefloat
usepackagedrawstack

titletest
authorme
dateMay 2019

begindocument

maketitle

section*intro

begindrawstack
cellticket (purchase)
cellbaggage (check)
cellgates (load)
cellrunway (takeoff)
cellairplane routing
enddrawstack

begindrawstack
cellairplane routing
enddrawstack

begindrawstack
cellairplane routing
enddrawstack

begindrawstack
cellticket (complain)
cellbaggage (claim)
cellgates (unload)
cellrunway (land)
cellairplane routing
enddrawstack

enddocument


Which results in the following:



enter image description here



The result is obviously very far from what I wished as they're stacked on top of each other, I couldn't find a way to change the green color, I couldn't find a way to draw the arrow nor be able to write words that stay in place as the example I'm trying to replicate. Even though the example given is built using drawstack package, I wouldn't mind a solution using TiKz.










share|improve this question


























    2















    I'm trying to replicate this picture (without the airplane)



    I googled online and found the package drawstack but I couldn't find any documentation on how to use it. The closest I got to a minimal example is this:



    documentclassarticle
    usepackagegraphicx
    usepackageenumitem
    usepackageamsmath
    setlengthparindent0pt
    usepackagefloat
    usepackagedrawstack

    titletest
    authorme
    dateMay 2019

    begindocument

    maketitle

    section*intro

    begindrawstack
    cellticket (purchase)
    cellbaggage (check)
    cellgates (load)
    cellrunway (takeoff)
    cellairplane routing
    enddrawstack

    begindrawstack
    cellairplane routing
    enddrawstack

    begindrawstack
    cellairplane routing
    enddrawstack

    begindrawstack
    cellticket (complain)
    cellbaggage (claim)
    cellgates (unload)
    cellrunway (land)
    cellairplane routing
    enddrawstack

    enddocument


    Which results in the following:



    enter image description here



    The result is obviously very far from what I wished as they're stacked on top of each other, I couldn't find a way to change the green color, I couldn't find a way to draw the arrow nor be able to write words that stay in place as the example I'm trying to replicate. Even though the example given is built using drawstack package, I wouldn't mind a solution using TiKz.










    share|improve this question
























      2












      2








      2








      I'm trying to replicate this picture (without the airplane)



      I googled online and found the package drawstack but I couldn't find any documentation on how to use it. The closest I got to a minimal example is this:



      documentclassarticle
      usepackagegraphicx
      usepackageenumitem
      usepackageamsmath
      setlengthparindent0pt
      usepackagefloat
      usepackagedrawstack

      titletest
      authorme
      dateMay 2019

      begindocument

      maketitle

      section*intro

      begindrawstack
      cellticket (purchase)
      cellbaggage (check)
      cellgates (load)
      cellrunway (takeoff)
      cellairplane routing
      enddrawstack

      begindrawstack
      cellairplane routing
      enddrawstack

      begindrawstack
      cellairplane routing
      enddrawstack

      begindrawstack
      cellticket (complain)
      cellbaggage (claim)
      cellgates (unload)
      cellrunway (land)
      cellairplane routing
      enddrawstack

      enddocument


      Which results in the following:



      enter image description here



      The result is obviously very far from what I wished as they're stacked on top of each other, I couldn't find a way to change the green color, I couldn't find a way to draw the arrow nor be able to write words that stay in place as the example I'm trying to replicate. Even though the example given is built using drawstack package, I wouldn't mind a solution using TiKz.










      share|improve this question














      I'm trying to replicate this picture (without the airplane)



      I googled online and found the package drawstack but I couldn't find any documentation on how to use it. The closest I got to a minimal example is this:



      documentclassarticle
      usepackagegraphicx
      usepackageenumitem
      usepackageamsmath
      setlengthparindent0pt
      usepackagefloat
      usepackagedrawstack

      titletest
      authorme
      dateMay 2019

      begindocument

      maketitle

      section*intro

      begindrawstack
      cellticket (purchase)
      cellbaggage (check)
      cellgates (load)
      cellrunway (takeoff)
      cellairplane routing
      enddrawstack

      begindrawstack
      cellairplane routing
      enddrawstack

      begindrawstack
      cellairplane routing
      enddrawstack

      begindrawstack
      cellticket (complain)
      cellbaggage (claim)
      cellgates (unload)
      cellrunway (land)
      cellairplane routing
      enddrawstack

      enddocument


      Which results in the following:



      enter image description here



      The result is obviously very far from what I wished as they're stacked on top of each other, I couldn't find a way to change the green color, I couldn't find a way to draw the arrow nor be able to write words that stay in place as the example I'm trying to replicate. Even though the example given is built using drawstack package, I wouldn't mind a solution using TiKz.







      tikz-pgf stack






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      Does it matterDoes it matter

      350215




      350215




















          2 Answers
          2






          active

          oldest

          votes


















          3














          TiKZ could be an alternative to drawstack.



          documentclass[tikz, border=2mm]standalone
          usetikzlibrarymatrix,positioning
          usepackagelmodern
          usepackagefontawesome5


          begindocument
          begintikzpicture[
          level/.style=draw, minimum width=3cm, minimum height=8mm,
          stack/.style=matrix of nodes, nodes=level, row sep=-pgflinewidth,
          ]

          matrix[stack, label=[font=small, align=center, name=aux1]below:departure\ airport,
          label=[font=Large, name=p1]above:faPlaneDeparture] (stackleft)
          ticket (purchase) \
          baggage (check) \
          gates (load) \
          runway (takeoff) \
          airplane routing \;

          node[level, right= of stackleft-5-1] (ar1) airplane routing;
          node[level, right=of ar1] (ar2) airplane routing;

          matrix[stack, label=[font=small, align=center, name=aux2]below:arrival\ airport,
          label=[font=Large, name=p2]above:faPlaneArrival,
          right=of ar2, anchor=stackright-5-1.west ] (stackright)
          ticket (complain) \
          baggage (claim) \
          gates (unload) \
          runway (land) \
          airplane routing \;

          node[font=Large] at (p1-|ar1) faPlane;
          node[font=Large] at (p1-|ar2) faPlane;

          path (aux1)--node[align=center, font=small]intermediate air-traffic\ control centers (aux2);

          draw[blue, very thick, ->] (stackleft.north west)--(stackleft.west|-aux1)--(aux1.south)--(aux2.south)--(stackright.east|-aux2)--(stackright.north east);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer
































            1














            drawstack is poorly document package and consequently not very useful for your needs. better is to use pure tikz. with multi part node from the shapes.multipart library you can write:



            documentclass[tikz, margin=3mm]standalone
            usetikzlibraryarrows.meta,
            calc,
            positioning,
            shapes.multipart

            begindocument
            begintikzpicture[
            node distance = 3mm and 4mm,
            base/.style = minimum width=32mm, node font=sffamily, align=center,
            VMPN/.style = % Vertical Multi Part Node
            rectangle split, rectangle split parts=5,
            draw,
            box/.style = base, draw
            ]
            node (n1) [VMPN]
            nodepartone purchase (complain)
            nodeparttwo baggage (claim)
            nodepartthree gates (unload)
            nodepartfour runway (land)
            nodepartfive airplane routing
            ;
            node (n2) [box, right=of n1.five east] airplane routing;
            node (n3) [box, right=of n2] airplane routing;
            node (n4) [VMPN, above right=of n3.south east]
            nodepartone purchase (complain)
            nodeparttwo baggage (claim)
            nodepartthree gates (unload)
            nodepartfour runway (land)
            nodepartfive airplane routing
            ;
            node [above=of $(n2.north)!0.5!(n3.north)$]
            includegraphics[width=32mm]example-image-duck;
            %
            node (n11) [base, below=of n1] departure airport;
            node (n12) [base, below=of $(n2.south)!0.5!(n3.south)$]
            intermediate air-trafic\control centers;
            node (n131) [base, below=of n4] arrival airport;
            %
            draw[blue!50!black, ultra thick, rounded corners=4mm, -Triangle[angle=60:3pt 3]]
            ([xshift=-2mm] n1.north west) |- ([yshift=-2mm] n12.south) -|
            ([xshift= 2mm] n4.north east);
            endtikzpicture
            enddocument


            enter image description here






            share|improve this answer























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "85"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f489133%2fhow-to-draw-a-stack-in-drawstack-tikz%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              TiKZ could be an alternative to drawstack.



              documentclass[tikz, border=2mm]standalone
              usetikzlibrarymatrix,positioning
              usepackagelmodern
              usepackagefontawesome5


              begindocument
              begintikzpicture[
              level/.style=draw, minimum width=3cm, minimum height=8mm,
              stack/.style=matrix of nodes, nodes=level, row sep=-pgflinewidth,
              ]

              matrix[stack, label=[font=small, align=center, name=aux1]below:departure\ airport,
              label=[font=Large, name=p1]above:faPlaneDeparture] (stackleft)
              ticket (purchase) \
              baggage (check) \
              gates (load) \
              runway (takeoff) \
              airplane routing \;

              node[level, right= of stackleft-5-1] (ar1) airplane routing;
              node[level, right=of ar1] (ar2) airplane routing;

              matrix[stack, label=[font=small, align=center, name=aux2]below:arrival\ airport,
              label=[font=Large, name=p2]above:faPlaneArrival,
              right=of ar2, anchor=stackright-5-1.west ] (stackright)
              ticket (complain) \
              baggage (claim) \
              gates (unload) \
              runway (land) \
              airplane routing \;

              node[font=Large] at (p1-|ar1) faPlane;
              node[font=Large] at (p1-|ar2) faPlane;

              path (aux1)--node[align=center, font=small]intermediate air-traffic\ control centers (aux2);

              draw[blue, very thick, ->] (stackleft.north west)--(stackleft.west|-aux1)--(aux1.south)--(aux2.south)--(stackright.east|-aux2)--(stackright.north east);
              endtikzpicture
              enddocument


              enter image description here






              share|improve this answer





























                3














                TiKZ could be an alternative to drawstack.



                documentclass[tikz, border=2mm]standalone
                usetikzlibrarymatrix,positioning
                usepackagelmodern
                usepackagefontawesome5


                begindocument
                begintikzpicture[
                level/.style=draw, minimum width=3cm, minimum height=8mm,
                stack/.style=matrix of nodes, nodes=level, row sep=-pgflinewidth,
                ]

                matrix[stack, label=[font=small, align=center, name=aux1]below:departure\ airport,
                label=[font=Large, name=p1]above:faPlaneDeparture] (stackleft)
                ticket (purchase) \
                baggage (check) \
                gates (load) \
                runway (takeoff) \
                airplane routing \;

                node[level, right= of stackleft-5-1] (ar1) airplane routing;
                node[level, right=of ar1] (ar2) airplane routing;

                matrix[stack, label=[font=small, align=center, name=aux2]below:arrival\ airport,
                label=[font=Large, name=p2]above:faPlaneArrival,
                right=of ar2, anchor=stackright-5-1.west ] (stackright)
                ticket (complain) \
                baggage (claim) \
                gates (unload) \
                runway (land) \
                airplane routing \;

                node[font=Large] at (p1-|ar1) faPlane;
                node[font=Large] at (p1-|ar2) faPlane;

                path (aux1)--node[align=center, font=small]intermediate air-traffic\ control centers (aux2);

                draw[blue, very thick, ->] (stackleft.north west)--(stackleft.west|-aux1)--(aux1.south)--(aux2.south)--(stackright.east|-aux2)--(stackright.north east);
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer



























                  3












                  3








                  3







                  TiKZ could be an alternative to drawstack.



                  documentclass[tikz, border=2mm]standalone
                  usetikzlibrarymatrix,positioning
                  usepackagelmodern
                  usepackagefontawesome5


                  begindocument
                  begintikzpicture[
                  level/.style=draw, minimum width=3cm, minimum height=8mm,
                  stack/.style=matrix of nodes, nodes=level, row sep=-pgflinewidth,
                  ]

                  matrix[stack, label=[font=small, align=center, name=aux1]below:departure\ airport,
                  label=[font=Large, name=p1]above:faPlaneDeparture] (stackleft)
                  ticket (purchase) \
                  baggage (check) \
                  gates (load) \
                  runway (takeoff) \
                  airplane routing \;

                  node[level, right= of stackleft-5-1] (ar1) airplane routing;
                  node[level, right=of ar1] (ar2) airplane routing;

                  matrix[stack, label=[font=small, align=center, name=aux2]below:arrival\ airport,
                  label=[font=Large, name=p2]above:faPlaneArrival,
                  right=of ar2, anchor=stackright-5-1.west ] (stackright)
                  ticket (complain) \
                  baggage (claim) \
                  gates (unload) \
                  runway (land) \
                  airplane routing \;

                  node[font=Large] at (p1-|ar1) faPlane;
                  node[font=Large] at (p1-|ar2) faPlane;

                  path (aux1)--node[align=center, font=small]intermediate air-traffic\ control centers (aux2);

                  draw[blue, very thick, ->] (stackleft.north west)--(stackleft.west|-aux1)--(aux1.south)--(aux2.south)--(stackright.east|-aux2)--(stackright.north east);
                  endtikzpicture
                  enddocument


                  enter image description here






                  share|improve this answer















                  TiKZ could be an alternative to drawstack.



                  documentclass[tikz, border=2mm]standalone
                  usetikzlibrarymatrix,positioning
                  usepackagelmodern
                  usepackagefontawesome5


                  begindocument
                  begintikzpicture[
                  level/.style=draw, minimum width=3cm, minimum height=8mm,
                  stack/.style=matrix of nodes, nodes=level, row sep=-pgflinewidth,
                  ]

                  matrix[stack, label=[font=small, align=center, name=aux1]below:departure\ airport,
                  label=[font=Large, name=p1]above:faPlaneDeparture] (stackleft)
                  ticket (purchase) \
                  baggage (check) \
                  gates (load) \
                  runway (takeoff) \
                  airplane routing \;

                  node[level, right= of stackleft-5-1] (ar1) airplane routing;
                  node[level, right=of ar1] (ar2) airplane routing;

                  matrix[stack, label=[font=small, align=center, name=aux2]below:arrival\ airport,
                  label=[font=Large, name=p2]above:faPlaneArrival,
                  right=of ar2, anchor=stackright-5-1.west ] (stackright)
                  ticket (complain) \
                  baggage (claim) \
                  gates (unload) \
                  runway (land) \
                  airplane routing \;

                  node[font=Large] at (p1-|ar1) faPlane;
                  node[font=Large] at (p1-|ar2) faPlane;

                  path (aux1)--node[align=center, font=small]intermediate air-traffic\ control centers (aux2);

                  draw[blue, very thick, ->] (stackleft.north west)--(stackleft.west|-aux1)--(aux1.south)--(aux2.south)--(stackright.east|-aux2)--(stackright.north east);
                  endtikzpicture
                  enddocument


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 1 hour ago

























                  answered 1 hour ago









                  IgnasiIgnasi

                  96.6k5177325




                  96.6k5177325





















                      1














                      drawstack is poorly document package and consequently not very useful for your needs. better is to use pure tikz. with multi part node from the shapes.multipart library you can write:



                      documentclass[tikz, margin=3mm]standalone
                      usetikzlibraryarrows.meta,
                      calc,
                      positioning,
                      shapes.multipart

                      begindocument
                      begintikzpicture[
                      node distance = 3mm and 4mm,
                      base/.style = minimum width=32mm, node font=sffamily, align=center,
                      VMPN/.style = % Vertical Multi Part Node
                      rectangle split, rectangle split parts=5,
                      draw,
                      box/.style = base, draw
                      ]
                      node (n1) [VMPN]
                      nodepartone purchase (complain)
                      nodeparttwo baggage (claim)
                      nodepartthree gates (unload)
                      nodepartfour runway (land)
                      nodepartfive airplane routing
                      ;
                      node (n2) [box, right=of n1.five east] airplane routing;
                      node (n3) [box, right=of n2] airplane routing;
                      node (n4) [VMPN, above right=of n3.south east]
                      nodepartone purchase (complain)
                      nodeparttwo baggage (claim)
                      nodepartthree gates (unload)
                      nodepartfour runway (land)
                      nodepartfive airplane routing
                      ;
                      node [above=of $(n2.north)!0.5!(n3.north)$]
                      includegraphics[width=32mm]example-image-duck;
                      %
                      node (n11) [base, below=of n1] departure airport;
                      node (n12) [base, below=of $(n2.south)!0.5!(n3.south)$]
                      intermediate air-trafic\control centers;
                      node (n131) [base, below=of n4] arrival airport;
                      %
                      draw[blue!50!black, ultra thick, rounded corners=4mm, -Triangle[angle=60:3pt 3]]
                      ([xshift=-2mm] n1.north west) |- ([yshift=-2mm] n12.south) -|
                      ([xshift= 2mm] n4.north east);
                      endtikzpicture
                      enddocument


                      enter image description here






                      share|improve this answer



























                        1














                        drawstack is poorly document package and consequently not very useful for your needs. better is to use pure tikz. with multi part node from the shapes.multipart library you can write:



                        documentclass[tikz, margin=3mm]standalone
                        usetikzlibraryarrows.meta,
                        calc,
                        positioning,
                        shapes.multipart

                        begindocument
                        begintikzpicture[
                        node distance = 3mm and 4mm,
                        base/.style = minimum width=32mm, node font=sffamily, align=center,
                        VMPN/.style = % Vertical Multi Part Node
                        rectangle split, rectangle split parts=5,
                        draw,
                        box/.style = base, draw
                        ]
                        node (n1) [VMPN]
                        nodepartone purchase (complain)
                        nodeparttwo baggage (claim)
                        nodepartthree gates (unload)
                        nodepartfour runway (land)
                        nodepartfive airplane routing
                        ;
                        node (n2) [box, right=of n1.five east] airplane routing;
                        node (n3) [box, right=of n2] airplane routing;
                        node (n4) [VMPN, above right=of n3.south east]
                        nodepartone purchase (complain)
                        nodeparttwo baggage (claim)
                        nodepartthree gates (unload)
                        nodepartfour runway (land)
                        nodepartfive airplane routing
                        ;
                        node [above=of $(n2.north)!0.5!(n3.north)$]
                        includegraphics[width=32mm]example-image-duck;
                        %
                        node (n11) [base, below=of n1] departure airport;
                        node (n12) [base, below=of $(n2.south)!0.5!(n3.south)$]
                        intermediate air-trafic\control centers;
                        node (n131) [base, below=of n4] arrival airport;
                        %
                        draw[blue!50!black, ultra thick, rounded corners=4mm, -Triangle[angle=60:3pt 3]]
                        ([xshift=-2mm] n1.north west) |- ([yshift=-2mm] n12.south) -|
                        ([xshift= 2mm] n4.north east);
                        endtikzpicture
                        enddocument


                        enter image description here






                        share|improve this answer

























                          1












                          1








                          1







                          drawstack is poorly document package and consequently not very useful for your needs. better is to use pure tikz. with multi part node from the shapes.multipart library you can write:



                          documentclass[tikz, margin=3mm]standalone
                          usetikzlibraryarrows.meta,
                          calc,
                          positioning,
                          shapes.multipart

                          begindocument
                          begintikzpicture[
                          node distance = 3mm and 4mm,
                          base/.style = minimum width=32mm, node font=sffamily, align=center,
                          VMPN/.style = % Vertical Multi Part Node
                          rectangle split, rectangle split parts=5,
                          draw,
                          box/.style = base, draw
                          ]
                          node (n1) [VMPN]
                          nodepartone purchase (complain)
                          nodeparttwo baggage (claim)
                          nodepartthree gates (unload)
                          nodepartfour runway (land)
                          nodepartfive airplane routing
                          ;
                          node (n2) [box, right=of n1.five east] airplane routing;
                          node (n3) [box, right=of n2] airplane routing;
                          node (n4) [VMPN, above right=of n3.south east]
                          nodepartone purchase (complain)
                          nodeparttwo baggage (claim)
                          nodepartthree gates (unload)
                          nodepartfour runway (land)
                          nodepartfive airplane routing
                          ;
                          node [above=of $(n2.north)!0.5!(n3.north)$]
                          includegraphics[width=32mm]example-image-duck;
                          %
                          node (n11) [base, below=of n1] departure airport;
                          node (n12) [base, below=of $(n2.south)!0.5!(n3.south)$]
                          intermediate air-trafic\control centers;
                          node (n131) [base, below=of n4] arrival airport;
                          %
                          draw[blue!50!black, ultra thick, rounded corners=4mm, -Triangle[angle=60:3pt 3]]
                          ([xshift=-2mm] n1.north west) |- ([yshift=-2mm] n12.south) -|
                          ([xshift= 2mm] n4.north east);
                          endtikzpicture
                          enddocument


                          enter image description here






                          share|improve this answer













                          drawstack is poorly document package and consequently not very useful for your needs. better is to use pure tikz. with multi part node from the shapes.multipart library you can write:



                          documentclass[tikz, margin=3mm]standalone
                          usetikzlibraryarrows.meta,
                          calc,
                          positioning,
                          shapes.multipart

                          begindocument
                          begintikzpicture[
                          node distance = 3mm and 4mm,
                          base/.style = minimum width=32mm, node font=sffamily, align=center,
                          VMPN/.style = % Vertical Multi Part Node
                          rectangle split, rectangle split parts=5,
                          draw,
                          box/.style = base, draw
                          ]
                          node (n1) [VMPN]
                          nodepartone purchase (complain)
                          nodeparttwo baggage (claim)
                          nodepartthree gates (unload)
                          nodepartfour runway (land)
                          nodepartfive airplane routing
                          ;
                          node (n2) [box, right=of n1.five east] airplane routing;
                          node (n3) [box, right=of n2] airplane routing;
                          node (n4) [VMPN, above right=of n3.south east]
                          nodepartone purchase (complain)
                          nodeparttwo baggage (claim)
                          nodepartthree gates (unload)
                          nodepartfour runway (land)
                          nodepartfive airplane routing
                          ;
                          node [above=of $(n2.north)!0.5!(n3.north)$]
                          includegraphics[width=32mm]example-image-duck;
                          %
                          node (n11) [base, below=of n1] departure airport;
                          node (n12) [base, below=of $(n2.south)!0.5!(n3.south)$]
                          intermediate air-trafic\control centers;
                          node (n131) [base, below=of n4] arrival airport;
                          %
                          draw[blue!50!black, ultra thick, rounded corners=4mm, -Triangle[angle=60:3pt 3]]
                          ([xshift=-2mm] n1.north west) |- ([yshift=-2mm] n12.south) -|
                          ([xshift= 2mm] n4.north east);
                          endtikzpicture
                          enddocument


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 1 hour ago









                          ZarkoZarko

                          132k871171




                          132k871171



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f489133%2fhow-to-draw-a-stack-in-drawstack-tikz%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Siegen Nawigatsjuun

                              Log på Navigationsmenu

                              Wonderful Copenhagen (sang) Eksterne henvisninger | NavigationsmenurSide på frankloesser.comWonderful Copenhagen