Underbraced under transposed vector/array
up vote
9
down vote
favorite
How do i insert an underbraced under a transposed vector that spans over 2 elements in vector?

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
add a comment |
up vote
9
down vote
favorite
How do i insert an underbraced under a transposed vector that spans over 2 elements in vector?

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
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 at 15:55
add a comment |
up vote
9
down vote
favorite
up vote
9
down vote
favorite
How do i insert an underbraced under a transposed vector that spans over 2 elements in vector?

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
How do i insert an underbraced under a transposed vector that spans over 2 elements in vector?

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
math-mode amsmath
edited Nov 14 at 16:03
asked Nov 14 at 15:50
Marc 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 at 15:55
add a comment |
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 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 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 at 15:55
add a comment |
3 Answers
3
active
oldest
votes
up vote
5
down vote
You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:

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}
sweet ! Thanks!
– Marc Morbelli-Zinck
Nov 14 at 16:30
add a comment |
up vote
5
down vote
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}

add a comment |
up vote
0
down vote
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.

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}
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:

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}
sweet ! Thanks!
– Marc Morbelli-Zinck
Nov 14 at 16:30
add a comment |
up vote
5
down vote
You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:

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}
sweet ! Thanks!
– Marc Morbelli-Zinck
Nov 14 at 16:30
add a comment |
up vote
5
down vote
up vote
5
down vote
You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:

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}
You can do without an array here, since you're working with a single vector. Use ties (spaces, ~) to stretch out the elements:

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}
answered Nov 14 at 16:27
Werner
434k619531639
434k619531639
sweet ! Thanks!
– Marc Morbelli-Zinck
Nov 14 at 16:30
add a comment |
sweet ! Thanks!
– Marc Morbelli-Zinck
Nov 14 at 16:30
sweet ! Thanks!
– Marc Morbelli-Zinck
Nov 14 at 16:30
sweet ! Thanks!
– Marc Morbelli-Zinck
Nov 14 at 16:30
add a comment |
up vote
5
down vote
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}

add a comment |
up vote
5
down vote
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}

add a comment |
up vote
5
down vote
up vote
5
down vote
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}

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}

answered Nov 14 at 18:15
egreg
704k8618753154
704k8618753154
add a comment |
add a comment |
up vote
0
down vote
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.

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}
add a comment |
up vote
0
down vote
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.

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}
add a comment |
up vote
0
down vote
up vote
0
down vote
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.

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}
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.

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}
answered Nov 14 at 23:58
Felix Emanuel
40727
40727
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 at 15:55