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:



documentclass{standalone}
usepackage{amsmath}

begin{equation}
mathbf{D}_{right}^T = left[ begin {array}{cccccccc} underbrace{0}_text{node 1} & underbrace{0}_text{node 1} & underbrace{0}_text{node 2} & underbrace{0}_text{node 2} & underbrace{ U_{x}}_text{node 3} & underbrace{ U_{y}}_text{node 3} & underbrace{cos left(theta right) Delta}_text{node 4} & underbrace{sin left(theta right) Delta}_text{node 4} end {array}
right]
end{equation}









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:



documentclass{standalone}
usepackage{amsmath}

begin{equation}
mathbf{D}_{right}^T = left[ begin {array}{cccccccc} underbrace{0}_text{node 1} & underbrace{0}_text{node 1} & underbrace{0}_text{node 2} & underbrace{0}_text{node 2} & underbrace{ U_{x}}_text{node 3} & underbrace{ U_{y}}_text{node 3} & underbrace{cos left(theta right) Delta}_text{node 4} & underbrace{sin left(theta right) Delta}_text{node 4} end {array}
right]
end{equation}









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:



documentclass{standalone}
usepackage{amsmath}

begin{equation}
mathbf{D}_{right}^T = left[ begin {array}{cccccccc} underbrace{0}_text{node 1} & underbrace{0}_text{node 1} & underbrace{0}_text{node 2} & underbrace{0}_text{node 2} & underbrace{ U_{x}}_text{node 3} & underbrace{ U_{y}}_text{node 3} & underbrace{cos left(theta right) Delta}_text{node 4} & underbrace{sin left(theta right) Delta}_text{node 4} end {array}
right]
end{equation}









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:



documentclass{standalone}
usepackage{amsmath}

begin{equation}
mathbf{D}_{right}^T = left[ begin {array}{cccccccc} underbrace{0}_text{node 1} & underbrace{0}_text{node 1} & underbrace{0}_text{node 2} & underbrace{0}_text{node 2} & underbrace{ U_{x}}_text{node 3} & underbrace{ U_{y}}_text{node 3} & underbrace{cos left(theta right) Delta}_text{node 4} & underbrace{sin left(theta right) Delta}_text{node 4} end {array}
right]
end{equation}






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



documentclass{article}

usepackage{mathtools}

begin{document}

begin{equation}
mathbf{D}_{mathrm{right}}^T =
bigl[~
underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 1}}} ~~
underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 2}}} ~~
underbrace{mathstrut U_x ~~~ U_y}_{text{node 3}} ~~
underbrace{cos(theta)Delta ~~~ sin(theta)Delta}_{text{node 4}}
~bigr]
end{equation}

end{document}





share|improve this answer































    5














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



    documentclass{article}
    usepackage{amsmath}

    begin{document}

    begin{equation}
    mathbf{D}_{mathrm{right}}^T =
    Bigl[
    begin{array}[t]{@{,}cccc@{,}}
    underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 1}} &
    underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 2}} &
    underbrace{mathstrutbegin{matrix} U_{x} & U_{y}end{matrix}}_{text{node 3}} &
    underbrace{mathstrut
    begin{matrix}cos(theta)Delta & sin(theta)Deltaend{matrix}
    }_{text{node 4}}
    end{array}
    Bigr]
    end{equation}

    end{document}


    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



      documentclass{scrartcl}
      usepackage{amsmath}
      usepackage{tikz}
      usetikzlibrary{matrix,decorations.pathreplacing,calc}
      begin{document}
      begin{equation}
      mathbf{D}_{right}^T =
      begin{tikzpicture} [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};
      end{tikzpicture}
      end{equation}
      end{document}





      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



        documentclass{article}

        usepackage{mathtools}

        begin{document}

        begin{equation}
        mathbf{D}_{mathrm{right}}^T =
        bigl[~
        underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 1}}} ~~
        underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 2}}} ~~
        underbrace{mathstrut U_x ~~~ U_y}_{text{node 3}} ~~
        underbrace{cos(theta)Delta ~~~ sin(theta)Delta}_{text{node 4}}
        ~bigr]
        end{equation}

        end{document}





        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



          documentclass{article}

          usepackage{mathtools}

          begin{document}

          begin{equation}
          mathbf{D}_{mathrm{right}}^T =
          bigl[~
          underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 1}}} ~~
          underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 2}}} ~~
          underbrace{mathstrut U_x ~~~ U_y}_{text{node 3}} ~~
          underbrace{cos(theta)Delta ~~~ sin(theta)Delta}_{text{node 4}}
          ~bigr]
          end{equation}

          end{document}





          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



            documentclass{article}

            usepackage{mathtools}

            begin{document}

            begin{equation}
            mathbf{D}_{mathrm{right}}^T =
            bigl[~
            underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 1}}} ~~
            underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 2}}} ~~
            underbrace{mathstrut U_x ~~~ U_y}_{text{node 3}} ~~
            underbrace{cos(theta)Delta ~~~ sin(theta)Delta}_{text{node 4}}
            ~bigr]
            end{equation}

            end{document}





            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



            documentclass{article}

            usepackage{mathtools}

            begin{document}

            begin{equation}
            mathbf{D}_{mathrm{right}}^T =
            bigl[~
            underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 1}}} ~~
            underbrace{mathstrut 0 ~~~ 0}_{mathclap{text{node 2}}} ~~
            underbrace{mathstrut U_x ~~~ U_y}_{text{node 3}} ~~
            underbrace{cos(theta)Delta ~~~ sin(theta)Delta}_{text{node 4}}
            ~bigr]
            end{equation}

            end{document}






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 14 '18 at 16:27









            WernerWerner

            444k699791681




            444k699791681























                5














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



                documentclass{article}
                usepackage{amsmath}

                begin{document}

                begin{equation}
                mathbf{D}_{mathrm{right}}^T =
                Bigl[
                begin{array}[t]{@{,}cccc@{,}}
                underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 1}} &
                underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 2}} &
                underbrace{mathstrutbegin{matrix} U_{x} & U_{y}end{matrix}}_{text{node 3}} &
                underbrace{mathstrut
                begin{matrix}cos(theta)Delta & sin(theta)Deltaend{matrix}
                }_{text{node 4}}
                end{array}
                Bigr]
                end{equation}

                end{document}


                enter image description here






                share|improve this answer




























                  5














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



                  documentclass{article}
                  usepackage{amsmath}

                  begin{document}

                  begin{equation}
                  mathbf{D}_{mathrm{right}}^T =
                  Bigl[
                  begin{array}[t]{@{,}cccc@{,}}
                  underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 1}} &
                  underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 2}} &
                  underbrace{mathstrutbegin{matrix} U_{x} & U_{y}end{matrix}}_{text{node 3}} &
                  underbrace{mathstrut
                  begin{matrix}cos(theta)Delta & sin(theta)Deltaend{matrix}
                  }_{text{node 4}}
                  end{array}
                  Bigr]
                  end{equation}

                  end{document}


                  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.



                    documentclass{article}
                    usepackage{amsmath}

                    begin{document}

                    begin{equation}
                    mathbf{D}_{mathrm{right}}^T =
                    Bigl[
                    begin{array}[t]{@{,}cccc@{,}}
                    underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 1}} &
                    underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 2}} &
                    underbrace{mathstrutbegin{matrix} U_{x} & U_{y}end{matrix}}_{text{node 3}} &
                    underbrace{mathstrut
                    begin{matrix}cos(theta)Delta & sin(theta)Deltaend{matrix}
                    }_{text{node 4}}
                    end{array}
                    Bigr]
                    end{equation}

                    end{document}


                    enter image description here






                    share|improve this answer













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



                    documentclass{article}
                    usepackage{amsmath}

                    begin{document}

                    begin{equation}
                    mathbf{D}_{mathrm{right}}^T =
                    Bigl[
                    begin{array}[t]{@{,}cccc@{,}}
                    underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 1}} &
                    underbrace{mathstrutbegin{matrix} 0 & 0 end{matrix}}_{text{node 2}} &
                    underbrace{mathstrutbegin{matrix} U_{x} & U_{y}end{matrix}}_{text{node 3}} &
                    underbrace{mathstrut
                    begin{matrix}cos(theta)Delta & sin(theta)Deltaend{matrix}
                    }_{text{node 4}}
                    end{array}
                    Bigr]
                    end{equation}

                    end{document}


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 14 '18 at 18:15









                    egregegreg

                    720k8719093208




                    720k8719093208























                        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



                        documentclass{scrartcl}
                        usepackage{amsmath}
                        usepackage{tikz}
                        usetikzlibrary{matrix,decorations.pathreplacing,calc}
                        begin{document}
                        begin{equation}
                        mathbf{D}_{right}^T =
                        begin{tikzpicture} [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};
                        end{tikzpicture}
                        end{equation}
                        end{document}





                        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



                          documentclass{scrartcl}
                          usepackage{amsmath}
                          usepackage{tikz}
                          usetikzlibrary{matrix,decorations.pathreplacing,calc}
                          begin{document}
                          begin{equation}
                          mathbf{D}_{right}^T =
                          begin{tikzpicture} [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};
                          end{tikzpicture}
                          end{equation}
                          end{document}





                          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



                            documentclass{scrartcl}
                            usepackage{amsmath}
                            usepackage{tikz}
                            usetikzlibrary{matrix,decorations.pathreplacing,calc}
                            begin{document}
                            begin{equation}
                            mathbf{D}_{right}^T =
                            begin{tikzpicture} [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};
                            end{tikzpicture}
                            end{equation}
                            end{document}





                            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



                            documentclass{scrartcl}
                            usepackage{amsmath}
                            usepackage{tikz}
                            usetikzlibrary{matrix,decorations.pathreplacing,calc}
                            begin{document}
                            begin{equation}
                            mathbf{D}_{right}^T =
                            begin{tikzpicture} [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};
                            end{tikzpicture}
                            end{equation}
                            end{document}






                            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







                                Popular posts from this blog

                                Bressuire

                                Vorschmack

                                Quarantine