Overhead brace in tikz











up vote
4
down vote

favorite
2












I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2.



enter image description here



Here is a template:



    documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 

usepackage{sseq}
usepackage[all,cmtip]{xy}
usepackage{tikz-cd}
usepackage{tikz}
usetikzlibrary{matrix}
usetikzlibrary{decorations.markings}


begin{document}


begin{figure}[!h]
begin{center}
begin{tikzpicture}[scale=0.8]
node at (0,5) {1};
node at (0,4.5) {2};
node at (0,4) {3};
draw[->] (0,3.5) -- (0,2.5);
node[right] at (0,3) {};
node at (0,2) {4};
node at (0,1.5) {};
node at (0,1) {5};
node at (0,0.5) {6};

draw[->] (-0.5,3.5) -- (-3.5,2.5);
node at (-2,3) {};
node at (-3.5,2) {7};

node at (-4,4) {8};
draw[->] (-4,3.5) -- (-4,2.5);
node[left] at (-4,3) {};
node at (-4.5,2) {9};
node at (-4,1.5) {};
node at (-4,1) {10};


node at (4,4) {11};
draw[->] (4,3.5) -- (4,2.5);
node[right] at (4,3) {};
node at (4,2) {12};
node at (4,1.5) {};
node at (4,1) {13};



end{tikzpicture}
end{center}
end{figure}

end{document}









share|improve this question


























    up vote
    4
    down vote

    favorite
    2












    I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2.



    enter image description here



    Here is a template:



        documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 

    usepackage{sseq}
    usepackage[all,cmtip]{xy}
    usepackage{tikz-cd}
    usepackage{tikz}
    usetikzlibrary{matrix}
    usetikzlibrary{decorations.markings}


    begin{document}


    begin{figure}[!h]
    begin{center}
    begin{tikzpicture}[scale=0.8]
    node at (0,5) {1};
    node at (0,4.5) {2};
    node at (0,4) {3};
    draw[->] (0,3.5) -- (0,2.5);
    node[right] at (0,3) {};
    node at (0,2) {4};
    node at (0,1.5) {};
    node at (0,1) {5};
    node at (0,0.5) {6};

    draw[->] (-0.5,3.5) -- (-3.5,2.5);
    node at (-2,3) {};
    node at (-3.5,2) {7};

    node at (-4,4) {8};
    draw[->] (-4,3.5) -- (-4,2.5);
    node[left] at (-4,3) {};
    node at (-4.5,2) {9};
    node at (-4,1.5) {};
    node at (-4,1) {10};


    node at (4,4) {11};
    draw[->] (4,3.5) -- (4,2.5);
    node[right] at (4,3) {};
    node at (4,2) {12};
    node at (4,1.5) {};
    node at (4,1) {13};



    end{tikzpicture}
    end{center}
    end{figure}

    end{document}









    share|improve this question
























      up vote
      4
      down vote

      favorite
      2









      up vote
      4
      down vote

      favorite
      2






      2





      I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2.



      enter image description here



      Here is a template:



          documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 

      usepackage{sseq}
      usepackage[all,cmtip]{xy}
      usepackage{tikz-cd}
      usepackage{tikz}
      usetikzlibrary{matrix}
      usetikzlibrary{decorations.markings}


      begin{document}


      begin{figure}[!h]
      begin{center}
      begin{tikzpicture}[scale=0.8]
      node at (0,5) {1};
      node at (0,4.5) {2};
      node at (0,4) {3};
      draw[->] (0,3.5) -- (0,2.5);
      node[right] at (0,3) {};
      node at (0,2) {4};
      node at (0,1.5) {};
      node at (0,1) {5};
      node at (0,0.5) {6};

      draw[->] (-0.5,3.5) -- (-3.5,2.5);
      node at (-2,3) {};
      node at (-3.5,2) {7};

      node at (-4,4) {8};
      draw[->] (-4,3.5) -- (-4,2.5);
      node[left] at (-4,3) {};
      node at (-4.5,2) {9};
      node at (-4,1.5) {};
      node at (-4,1) {10};


      node at (4,4) {11};
      draw[->] (4,3.5) -- (4,2.5);
      node[right] at (4,3) {};
      node at (4,2) {12};
      node at (4,1.5) {};
      node at (4,1) {13};



      end{tikzpicture}
      end{center}
      end{figure}

      end{document}









      share|improve this question













      I wish to use the overhead brace, bracing over the three items 8, 3, 11 from the bottom of 2.



      enter image description here



      Here is a template:



          documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 

      usepackage{sseq}
      usepackage[all,cmtip]{xy}
      usepackage{tikz-cd}
      usepackage{tikz}
      usetikzlibrary{matrix}
      usetikzlibrary{decorations.markings}


      begin{document}


      begin{figure}[!h]
      begin{center}
      begin{tikzpicture}[scale=0.8]
      node at (0,5) {1};
      node at (0,4.5) {2};
      node at (0,4) {3};
      draw[->] (0,3.5) -- (0,2.5);
      node[right] at (0,3) {};
      node at (0,2) {4};
      node at (0,1.5) {};
      node at (0,1) {5};
      node at (0,0.5) {6};

      draw[->] (-0.5,3.5) -- (-3.5,2.5);
      node at (-2,3) {};
      node at (-3.5,2) {7};

      node at (-4,4) {8};
      draw[->] (-4,3.5) -- (-4,2.5);
      node[left] at (-4,3) {};
      node at (-4.5,2) {9};
      node at (-4,1.5) {};
      node at (-4,1) {10};


      node at (4,4) {11};
      draw[->] (4,3.5) -- (4,2.5);
      node[right] at (4,3) {};
      node at (4,2) {12};
      node at (4,1.5) {};
      node at (4,1) {13};



      end{tikzpicture}
      end{center}
      end{figure}

      end{document}






      tikz-pgf horizontal-alignment vertical-alignment braces overbrace






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 56 mins ago









      wonderich

      627618




      627618






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          I have not simplified your code which can be simplified in several different ways. I used the positioning library (page 229 of the manual 3.0.1a) to position nodes 2 and 1 relative to node 3.
          I named a few nodes by their value.
          To use the braces, I used the decorations.pathreplacing library. (page 581 of manual 3.0.1a)



          capture



            documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 
          % usepackage{sseq}
          % usepackage[all,cmtip]{xy}
          % usepackage{tikz-cd}
          usepackage{tikz}
          % usetikzlibrary{matrix}
          % usetikzlibrary{decorations.markings}
          usetikzlibrary{positioning,decorations.pathreplacing}

          begin{document}
          begin{figure}[!h]
          begin{center}
          begin{tikzpicture}[scale=0.8]

          node at (0,4)(3) {3};

          node[above =of 3] {1};
          node[above=5mm of 3]{2};
          node at (-4,4)(8) {8};
          node at (4,4)(11) {11};
          draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
          draw[->] (0,3.5) -- (0,2.5);
          node[right] at (0,3) {};
          node at (0,2) {4};
          node at (0,1.5) {};
          node at (0,1) {5};
          node at (0,0.5) {6};

          draw[->] (-0.5,3.5) -- (-3.5,2.5);
          node at (-2,3) {};
          node at (-3.5,2) {7};
          draw[->] (-4,3.5) -- (-4,2.5);
          node[left] at (-4,3) {};
          node at (-4.5,2) {9};
          node at (-4,1.5) {};
          node at (-4,1) {10};
          draw[->] (4,3.5) -- (4,2.5);
          node[right] at (4,3) {};
          node at (4,2) {12};
          node at (4,1.5) {};
          node at (4,1) {13};
          end{tikzpicture}
          end{center}
          end{figure}

          end{document}





          share|improve this answer























          • that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
            – wonderich
            35 mins ago










          • You can use the graphs library in several different ways to make this graph (see page 257)
            – AndréC
            32 mins ago













          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',
          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%2f466157%2foverhead-brace-in-tikz%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote













          I have not simplified your code which can be simplified in several different ways. I used the positioning library (page 229 of the manual 3.0.1a) to position nodes 2 and 1 relative to node 3.
          I named a few nodes by their value.
          To use the braces, I used the decorations.pathreplacing library. (page 581 of manual 3.0.1a)



          capture



            documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 
          % usepackage{sseq}
          % usepackage[all,cmtip]{xy}
          % usepackage{tikz-cd}
          usepackage{tikz}
          % usetikzlibrary{matrix}
          % usetikzlibrary{decorations.markings}
          usetikzlibrary{positioning,decorations.pathreplacing}

          begin{document}
          begin{figure}[!h]
          begin{center}
          begin{tikzpicture}[scale=0.8]

          node at (0,4)(3) {3};

          node[above =of 3] {1};
          node[above=5mm of 3]{2};
          node at (-4,4)(8) {8};
          node at (4,4)(11) {11};
          draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
          draw[->] (0,3.5) -- (0,2.5);
          node[right] at (0,3) {};
          node at (0,2) {4};
          node at (0,1.5) {};
          node at (0,1) {5};
          node at (0,0.5) {6};

          draw[->] (-0.5,3.5) -- (-3.5,2.5);
          node at (-2,3) {};
          node at (-3.5,2) {7};
          draw[->] (-4,3.5) -- (-4,2.5);
          node[left] at (-4,3) {};
          node at (-4.5,2) {9};
          node at (-4,1.5) {};
          node at (-4,1) {10};
          draw[->] (4,3.5) -- (4,2.5);
          node[right] at (4,3) {};
          node at (4,2) {12};
          node at (4,1.5) {};
          node at (4,1) {13};
          end{tikzpicture}
          end{center}
          end{figure}

          end{document}





          share|improve this answer























          • that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
            – wonderich
            35 mins ago










          • You can use the graphs library in several different ways to make this graph (see page 257)
            – AndréC
            32 mins ago

















          up vote
          4
          down vote













          I have not simplified your code which can be simplified in several different ways. I used the positioning library (page 229 of the manual 3.0.1a) to position nodes 2 and 1 relative to node 3.
          I named a few nodes by their value.
          To use the braces, I used the decorations.pathreplacing library. (page 581 of manual 3.0.1a)



          capture



            documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 
          % usepackage{sseq}
          % usepackage[all,cmtip]{xy}
          % usepackage{tikz-cd}
          usepackage{tikz}
          % usetikzlibrary{matrix}
          % usetikzlibrary{decorations.markings}
          usetikzlibrary{positioning,decorations.pathreplacing}

          begin{document}
          begin{figure}[!h]
          begin{center}
          begin{tikzpicture}[scale=0.8]

          node at (0,4)(3) {3};

          node[above =of 3] {1};
          node[above=5mm of 3]{2};
          node at (-4,4)(8) {8};
          node at (4,4)(11) {11};
          draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
          draw[->] (0,3.5) -- (0,2.5);
          node[right] at (0,3) {};
          node at (0,2) {4};
          node at (0,1.5) {};
          node at (0,1) {5};
          node at (0,0.5) {6};

          draw[->] (-0.5,3.5) -- (-3.5,2.5);
          node at (-2,3) {};
          node at (-3.5,2) {7};
          draw[->] (-4,3.5) -- (-4,2.5);
          node[left] at (-4,3) {};
          node at (-4.5,2) {9};
          node at (-4,1.5) {};
          node at (-4,1) {10};
          draw[->] (4,3.5) -- (4,2.5);
          node[right] at (4,3) {};
          node at (4,2) {12};
          node at (4,1.5) {};
          node at (4,1) {13};
          end{tikzpicture}
          end{center}
          end{figure}

          end{document}





          share|improve this answer























          • that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
            – wonderich
            35 mins ago










          • You can use the graphs library in several different ways to make this graph (see page 257)
            – AndréC
            32 mins ago















          up vote
          4
          down vote










          up vote
          4
          down vote









          I have not simplified your code which can be simplified in several different ways. I used the positioning library (page 229 of the manual 3.0.1a) to position nodes 2 and 1 relative to node 3.
          I named a few nodes by their value.
          To use the braces, I used the decorations.pathreplacing library. (page 581 of manual 3.0.1a)



          capture



            documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 
          % usepackage{sseq}
          % usepackage[all,cmtip]{xy}
          % usepackage{tikz-cd}
          usepackage{tikz}
          % usetikzlibrary{matrix}
          % usetikzlibrary{decorations.markings}
          usetikzlibrary{positioning,decorations.pathreplacing}

          begin{document}
          begin{figure}[!h]
          begin{center}
          begin{tikzpicture}[scale=0.8]

          node at (0,4)(3) {3};

          node[above =of 3] {1};
          node[above=5mm of 3]{2};
          node at (-4,4)(8) {8};
          node at (4,4)(11) {11};
          draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
          draw[->] (0,3.5) -- (0,2.5);
          node[right] at (0,3) {};
          node at (0,2) {4};
          node at (0,1.5) {};
          node at (0,1) {5};
          node at (0,0.5) {6};

          draw[->] (-0.5,3.5) -- (-3.5,2.5);
          node at (-2,3) {};
          node at (-3.5,2) {7};
          draw[->] (-4,3.5) -- (-4,2.5);
          node[left] at (-4,3) {};
          node at (-4.5,2) {9};
          node at (-4,1.5) {};
          node at (-4,1) {10};
          draw[->] (4,3.5) -- (4,2.5);
          node[right] at (4,3) {};
          node at (4,2) {12};
          node at (4,1.5) {};
          node at (4,1) {13};
          end{tikzpicture}
          end{center}
          end{figure}

          end{document}





          share|improve this answer














          I have not simplified your code which can be simplified in several different ways. I used the positioning library (page 229 of the manual 3.0.1a) to position nodes 2 and 1 relative to node 3.
          I named a few nodes by their value.
          To use the braces, I used the decorations.pathreplacing library. (page 581 of manual 3.0.1a)



          capture



            documentclass[11pt,urlcolor=blue, linkcolor=blue]{article} 
          % usepackage{sseq}
          % usepackage[all,cmtip]{xy}
          % usepackage{tikz-cd}
          usepackage{tikz}
          % usetikzlibrary{matrix}
          % usetikzlibrary{decorations.markings}
          usetikzlibrary{positioning,decorations.pathreplacing}

          begin{document}
          begin{figure}[!h]
          begin{center}
          begin{tikzpicture}[scale=0.8]

          node at (0,4)(3) {3};

          node[above =of 3] {1};
          node[above=5mm of 3]{2};
          node at (-4,4)(8) {8};
          node at (4,4)(11) {11};
          draw[decorate, decoration={brace,raise=2pt,amplitude=10pt}](8.north west)--(11.north east);
          draw[->] (0,3.5) -- (0,2.5);
          node[right] at (0,3) {};
          node at (0,2) {4};
          node at (0,1.5) {};
          node at (0,1) {5};
          node at (0,0.5) {6};

          draw[->] (-0.5,3.5) -- (-3.5,2.5);
          node at (-2,3) {};
          node at (-3.5,2) {7};
          draw[->] (-4,3.5) -- (-4,2.5);
          node[left] at (-4,3) {};
          node at (-4.5,2) {9};
          node at (-4,1.5) {};
          node at (-4,1) {10};
          draw[->] (4,3.5) -- (4,2.5);
          node[right] at (4,3) {};
          node at (4,2) {12};
          node at (4,1.5) {};
          node at (4,1) {13};
          end{tikzpicture}
          end{center}
          end{figure}

          end{document}






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 34 mins ago

























          answered 37 mins ago









          AndréC

          7,12211340




          7,12211340












          • that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
            – wonderich
            35 mins ago










          • You can use the graphs library in several different ways to make this graph (see page 257)
            – AndréC
            32 mins ago




















          • that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
            – wonderich
            35 mins ago










          • You can use the graphs library in several different ways to make this graph (see page 257)
            – AndréC
            32 mins ago


















          that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
          – wonderich
          35 mins ago




          that is basically what I wanted! thanks! (other ways you suggest to simplify can be posted as a separate answer. Please dont overwrite what you had!)
          – wonderich
          35 mins ago












          You can use the graphs library in several different ways to make this graph (see page 257)
          – AndréC
          32 mins ago






          You can use the graphs library in several different ways to make this graph (see page 257)
          – AndréC
          32 mins ago




















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f466157%2foverhead-brace-in-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

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b