Underbraced under transposed vector/array










9















How do i insert an underbraced under a transposed vector that spans over 2 elements in vector?
enter image description here



So for instance the first two elements under one underbracket with text "node 1", and ect..



the code for the vector:



documentclassstandalone
usepackageamsmath

beginequation
mathbfD_right^T = left[ begin arraycccccccc underbrace0_textnode 1 & underbrace0_textnode 1 & underbrace0_textnode 2 & underbrace0_textnode 2 & underbrace U_x_textnode 3 & underbrace U_y_textnode 3 & underbracecos left(theta right) Delta_textnode 4 & underbracesin left(theta right) Delta_textnode 4 end array
right]
endequation









share|improve this question



















  • 1





    welcome to tex.se! how you write your vector? please provide small but complete document (called minimal working example) with your vector.

    – Zarko
    Nov 14 '18 at 15:55















9















How do i insert an underbraced under a transposed vector that spans over 2 elements in vector?
enter image description here



So for instance the first two elements under one underbracket with text "node 1", and ect..



the code for the vector:



documentclassstandalone
usepackageamsmath

beginequation
mathbfD_right^T = left[ begin arraycccccccc underbrace0_textnode 1 & underbrace0_textnode 1 & underbrace0_textnode 2 & underbrace0_textnode 2 & underbrace U_x_textnode 3 & underbrace U_y_textnode 3 & underbracecos left(theta right) Delta_textnode 4 & underbracesin left(theta right) Delta_textnode 4 end array
right]
endequation









share|improve this question



















  • 1





    welcome to tex.se! how you write your vector? please provide small but complete document (called minimal working example) with your vector.

    – Zarko
    Nov 14 '18 at 15:55













9












9








9


1






How do i insert an underbraced under a transposed vector that spans over 2 elements in vector?
enter image description here



So for instance the first two elements under one underbracket with text "node 1", and ect..



the code for the vector:



documentclassstandalone
usepackageamsmath

beginequation
mathbfD_right^T = left[ begin arraycccccccc underbrace0_textnode 1 & underbrace0_textnode 1 & underbrace0_textnode 2 & underbrace0_textnode 2 & underbrace U_x_textnode 3 & underbrace U_y_textnode 3 & underbracecos left(theta right) Delta_textnode 4 & underbracesin left(theta right) Delta_textnode 4 end array
right]
endequation









share|improve this question
















How do i insert an underbraced under a transposed vector that spans over 2 elements in vector?
enter image description here



So for instance the first two elements under one underbracket with text "node 1", and ect..



the code for the vector:



documentclassstandalone
usepackageamsmath

beginequation
mathbfD_right^T = left[ begin arraycccccccc underbrace0_textnode 1 & underbrace0_textnode 1 & underbrace0_textnode 2 & underbrace0_textnode 2 & underbrace U_x_textnode 3 & underbrace U_y_textnode 3 & underbracecos left(theta right) Delta_textnode 4 & underbracesin left(theta right) Delta_textnode 4 end array
right]
endequation






math-mode amsmath






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 16:03







Marc Morbelli-Zinck

















asked Nov 14 '18 at 15:50









Marc Morbelli-ZinckMarc Morbelli-Zinck

462




462







  • 1





    welcome to tex.se! how you write your vector? please provide small but complete document (called minimal working example) with your vector.

    – Zarko
    Nov 14 '18 at 15:55












  • 1





    welcome to tex.se! how you write your vector? please provide small but complete document (called minimal working example) with your vector.

    – Zarko
    Nov 14 '18 at 15:55







1




1





welcome to tex.se! how you write your vector? please provide small but complete document (called minimal working example) with your vector.

– Zarko
Nov 14 '18 at 15:55





welcome to tex.se! how you write your vector? please provide small but complete document (called minimal working example) with your vector.

– Zarko
Nov 14 '18 at 15:55










3 Answers
3






active

oldest

votes


















5














You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:



enter image description here



documentclassarticle

usepackagemathtools

begindocument

beginequation
mathbfD_mathrmright^T =
bigl[~
underbracemathstrut 0 ~~~ 0_mathclaptextnode 1 ~~
underbracemathstrut 0 ~~~ 0_mathclaptextnode 2 ~~
underbracemathstrut U_x ~~~ U_y_textnode 3 ~~
underbracecos(theta)Delta ~~~ sin(theta)Delta_textnode 4
~bigr]
endequation

enddocument





share|improve this answer






























    5














    I'd recommend nested matrices; for the main one, use array with [t] vertical alignment.



    documentclassarticle
    usepackageamsmath

    begindocument

    beginequation
    mathbfD_mathrmright^T =
    Bigl[
    beginarray[t]@,cccc@,
    underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 1 &
    underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 2 &
    underbracemathstrutbeginmatrix U_x & U_yendmatrix_textnode 3 &
    underbracemathstrut
    beginmatrixcos(theta)Delta & sin(theta)Deltaendmatrix
    _textnode 4
    endarray
    Bigr]
    endequation

    enddocument


    enter image description here






    share|improve this answer






























      0














      A TikZ solution, although I'm not too sure about its usefulness.



      What might be advantageous of the Tikz way is the separation of vector elements and the brace markup in the source code. This might be useful when typesetting more complex / longer formulas in the cells.



      However, this approach requires way more set-up than the other solutions.



      braces with tikz



      documentclassscrartcl
      usepackageamsmath
      usepackagetikz
      usetikzlibrarymatrix,decorations.pathreplacing,calc
      begindocument
      beginequation
      mathbfD_right^T =
      begintikzpicture [baseline,
      underbrace/.style=decorate,thick,decoration=brace,mirror]
      matrix (eq1) [nodes=% Control for largest depth in vector
      % Change argument depth() to "deepest" node in vector
      text depth=depth("$U_y$")
      ,
      anchor=base,
      matrix of math nodes,
      left delimiter=lbrack,
      right delimiter=rbrack,
      column sep=5mm
      ]
      0 & 0 & 0 & 0 & U_x & U_y & cos (theta) Delta & sin (theta) Delta \;
      % Specify braces in the format "column no where brace star/ closing column / description"
      foreach x / y / nodedesc in 1/2/node 1, 3/4/node 2, 5/6/node 3, 7/8/node 4
      draw [underbrace] (eq1-1-x.south west) -- (eq1-1-y.south east) node [below,midway] nodedesc;
      endtikzpicture
      endequation
      enddocument





      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%2f459965%2funderbraced-under-transposed-vector-array%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        5














        You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:



        enter image description here



        documentclassarticle

        usepackagemathtools

        begindocument

        beginequation
        mathbfD_mathrmright^T =
        bigl[~
        underbracemathstrut 0 ~~~ 0_mathclaptextnode 1 ~~
        underbracemathstrut 0 ~~~ 0_mathclaptextnode 2 ~~
        underbracemathstrut U_x ~~~ U_y_textnode 3 ~~
        underbracecos(theta)Delta ~~~ sin(theta)Delta_textnode 4
        ~bigr]
        endequation

        enddocument





        share|improve this answer



























          5














          You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:



          enter image description here



          documentclassarticle

          usepackagemathtools

          begindocument

          beginequation
          mathbfD_mathrmright^T =
          bigl[~
          underbracemathstrut 0 ~~~ 0_mathclaptextnode 1 ~~
          underbracemathstrut 0 ~~~ 0_mathclaptextnode 2 ~~
          underbracemathstrut U_x ~~~ U_y_textnode 3 ~~
          underbracecos(theta)Delta ~~~ sin(theta)Delta_textnode 4
          ~bigr]
          endequation

          enddocument





          share|improve this answer

























            5












            5








            5







            You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:



            enter image description here



            documentclassarticle

            usepackagemathtools

            begindocument

            beginequation
            mathbfD_mathrmright^T =
            bigl[~
            underbracemathstrut 0 ~~~ 0_mathclaptextnode 1 ~~
            underbracemathstrut 0 ~~~ 0_mathclaptextnode 2 ~~
            underbracemathstrut U_x ~~~ U_y_textnode 3 ~~
            underbracecos(theta)Delta ~~~ sin(theta)Delta_textnode 4
            ~bigr]
            endequation

            enddocument





            share|improve this answer













            You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:



            enter image description here



            documentclassarticle

            usepackagemathtools

            begindocument

            beginequation
            mathbfD_mathrmright^T =
            bigl[~
            underbracemathstrut 0 ~~~ 0_mathclaptextnode 1 ~~
            underbracemathstrut 0 ~~~ 0_mathclaptextnode 2 ~~
            underbracemathstrut U_x ~~~ U_y_textnode 3 ~~
            underbracecos(theta)Delta ~~~ sin(theta)Delta_textnode 4
            ~bigr]
            endequation

            enddocument






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 14 '18 at 16:27









            WernerWerner

            445k699801685




            445k699801685





















                5














                I'd recommend nested matrices; for the main one, use array with [t] vertical alignment.



                documentclassarticle
                usepackageamsmath

                begindocument

                beginequation
                mathbfD_mathrmright^T =
                Bigl[
                beginarray[t]@,cccc@,
                underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 1 &
                underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 2 &
                underbracemathstrutbeginmatrix U_x & U_yendmatrix_textnode 3 &
                underbracemathstrut
                beginmatrixcos(theta)Delta & sin(theta)Deltaendmatrix
                _textnode 4
                endarray
                Bigr]
                endequation

                enddocument


                enter image description here






                share|improve this answer



























                  5














                  I'd recommend nested matrices; for the main one, use array with [t] vertical alignment.



                  documentclassarticle
                  usepackageamsmath

                  begindocument

                  beginequation
                  mathbfD_mathrmright^T =
                  Bigl[
                  beginarray[t]@,cccc@,
                  underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 1 &
                  underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 2 &
                  underbracemathstrutbeginmatrix U_x & U_yendmatrix_textnode 3 &
                  underbracemathstrut
                  beginmatrixcos(theta)Delta & sin(theta)Deltaendmatrix
                  _textnode 4
                  endarray
                  Bigr]
                  endequation

                  enddocument


                  enter image description here






                  share|improve this answer

























                    5












                    5








                    5







                    I'd recommend nested matrices; for the main one, use array with [t] vertical alignment.



                    documentclassarticle
                    usepackageamsmath

                    begindocument

                    beginequation
                    mathbfD_mathrmright^T =
                    Bigl[
                    beginarray[t]@,cccc@,
                    underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 1 &
                    underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 2 &
                    underbracemathstrutbeginmatrix U_x & U_yendmatrix_textnode 3 &
                    underbracemathstrut
                    beginmatrixcos(theta)Delta & sin(theta)Deltaendmatrix
                    _textnode 4
                    endarray
                    Bigr]
                    endequation

                    enddocument


                    enter image description here






                    share|improve this answer













                    I'd recommend nested matrices; for the main one, use array with [t] vertical alignment.



                    documentclassarticle
                    usepackageamsmath

                    begindocument

                    beginequation
                    mathbfD_mathrmright^T =
                    Bigl[
                    beginarray[t]@,cccc@,
                    underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 1 &
                    underbracemathstrutbeginmatrix 0 & 0 endmatrix_textnode 2 &
                    underbracemathstrutbeginmatrix U_x & U_yendmatrix_textnode 3 &
                    underbracemathstrut
                    beginmatrixcos(theta)Delta & sin(theta)Deltaendmatrix
                    _textnode 4
                    endarray
                    Bigr]
                    endequation

                    enddocument


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 14 '18 at 18:15









                    egregegreg

                    722k8719143213




                    722k8719143213





















                        0














                        A TikZ solution, although I'm not too sure about its usefulness.



                        What might be advantageous of the Tikz way is the separation of vector elements and the brace markup in the source code. This might be useful when typesetting more complex / longer formulas in the cells.



                        However, this approach requires way more set-up than the other solutions.



                        braces with tikz



                        documentclassscrartcl
                        usepackageamsmath
                        usepackagetikz
                        usetikzlibrarymatrix,decorations.pathreplacing,calc
                        begindocument
                        beginequation
                        mathbfD_right^T =
                        begintikzpicture [baseline,
                        underbrace/.style=decorate,thick,decoration=brace,mirror]
                        matrix (eq1) [nodes=% Control for largest depth in vector
                        % Change argument depth() to "deepest" node in vector
                        text depth=depth("$U_y$")
                        ,
                        anchor=base,
                        matrix of math nodes,
                        left delimiter=lbrack,
                        right delimiter=rbrack,
                        column sep=5mm
                        ]
                        0 & 0 & 0 & 0 & U_x & U_y & cos (theta) Delta & sin (theta) Delta \;
                        % Specify braces in the format "column no where brace star/ closing column / description"
                        foreach x / y / nodedesc in 1/2/node 1, 3/4/node 2, 5/6/node 3, 7/8/node 4
                        draw [underbrace] (eq1-1-x.south west) -- (eq1-1-y.south east) node [below,midway] nodedesc;
                        endtikzpicture
                        endequation
                        enddocument





                        share|improve this answer



























                          0














                          A TikZ solution, although I'm not too sure about its usefulness.



                          What might be advantageous of the Tikz way is the separation of vector elements and the brace markup in the source code. This might be useful when typesetting more complex / longer formulas in the cells.



                          However, this approach requires way more set-up than the other solutions.



                          braces with tikz



                          documentclassscrartcl
                          usepackageamsmath
                          usepackagetikz
                          usetikzlibrarymatrix,decorations.pathreplacing,calc
                          begindocument
                          beginequation
                          mathbfD_right^T =
                          begintikzpicture [baseline,
                          underbrace/.style=decorate,thick,decoration=brace,mirror]
                          matrix (eq1) [nodes=% Control for largest depth in vector
                          % Change argument depth() to "deepest" node in vector
                          text depth=depth("$U_y$")
                          ,
                          anchor=base,
                          matrix of math nodes,
                          left delimiter=lbrack,
                          right delimiter=rbrack,
                          column sep=5mm
                          ]
                          0 & 0 & 0 & 0 & U_x & U_y & cos (theta) Delta & sin (theta) Delta \;
                          % Specify braces in the format "column no where brace star/ closing column / description"
                          foreach x / y / nodedesc in 1/2/node 1, 3/4/node 2, 5/6/node 3, 7/8/node 4
                          draw [underbrace] (eq1-1-x.south west) -- (eq1-1-y.south east) node [below,midway] nodedesc;
                          endtikzpicture
                          endequation
                          enddocument





                          share|improve this answer

























                            0












                            0








                            0







                            A TikZ solution, although I'm not too sure about its usefulness.



                            What might be advantageous of the Tikz way is the separation of vector elements and the brace markup in the source code. This might be useful when typesetting more complex / longer formulas in the cells.



                            However, this approach requires way more set-up than the other solutions.



                            braces with tikz



                            documentclassscrartcl
                            usepackageamsmath
                            usepackagetikz
                            usetikzlibrarymatrix,decorations.pathreplacing,calc
                            begindocument
                            beginequation
                            mathbfD_right^T =
                            begintikzpicture [baseline,
                            underbrace/.style=decorate,thick,decoration=brace,mirror]
                            matrix (eq1) [nodes=% Control for largest depth in vector
                            % Change argument depth() to "deepest" node in vector
                            text depth=depth("$U_y$")
                            ,
                            anchor=base,
                            matrix of math nodes,
                            left delimiter=lbrack,
                            right delimiter=rbrack,
                            column sep=5mm
                            ]
                            0 & 0 & 0 & 0 & U_x & U_y & cos (theta) Delta & sin (theta) Delta \;
                            % Specify braces in the format "column no where brace star/ closing column / description"
                            foreach x / y / nodedesc in 1/2/node 1, 3/4/node 2, 5/6/node 3, 7/8/node 4
                            draw [underbrace] (eq1-1-x.south west) -- (eq1-1-y.south east) node [below,midway] nodedesc;
                            endtikzpicture
                            endequation
                            enddocument





                            share|improve this answer













                            A TikZ solution, although I'm not too sure about its usefulness.



                            What might be advantageous of the Tikz way is the separation of vector elements and the brace markup in the source code. This might be useful when typesetting more complex / longer formulas in the cells.



                            However, this approach requires way more set-up than the other solutions.



                            braces with tikz



                            documentclassscrartcl
                            usepackageamsmath
                            usepackagetikz
                            usetikzlibrarymatrix,decorations.pathreplacing,calc
                            begindocument
                            beginequation
                            mathbfD_right^T =
                            begintikzpicture [baseline,
                            underbrace/.style=decorate,thick,decoration=brace,mirror]
                            matrix (eq1) [nodes=% Control for largest depth in vector
                            % Change argument depth() to "deepest" node in vector
                            text depth=depth("$U_y$")
                            ,
                            anchor=base,
                            matrix of math nodes,
                            left delimiter=lbrack,
                            right delimiter=rbrack,
                            column sep=5mm
                            ]
                            0 & 0 & 0 & 0 & U_x & U_y & cos (theta) Delta & sin (theta) Delta \;
                            % Specify braces in the format "column no where brace star/ closing column / description"
                            foreach x / y / nodedesc in 1/2/node 1, 3/4/node 2, 5/6/node 3, 7/8/node 4
                            draw [underbrace] (eq1-1-x.south west) -- (eq1-1-y.south east) node [below,midway] nodedesc;
                            endtikzpicture
                            endequation
                            enddocument






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 14 '18 at 23:58









                            Felix EmanuelFelix Emanuel

                            44928




                            44928



























                                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%2f459965%2funderbraced-under-transposed-vector-array%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







                                這個網誌中的熱門文章

                                How to read a connectionString WITH PROVIDER in .NET Core?

                                In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

                                Museum of Modern and Contemporary Art of Trento and Rovereto