Underbraced under transposed vector/array
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 |
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 '18 at 15:55
add a comment |
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 '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
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 '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
add a comment |
3 Answers
3
active
oldest
votes
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}
add a comment |
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 |
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 |
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
});
}
});
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
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
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}
add a comment |
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}
add a comment |
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 '18 at 16:27
WernerWerner
444k699791681
444k699791681
add a comment |
add a comment |
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 |
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 |
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 '18 at 18:15
egregegreg
720k8719093208
720k8719093208
add a comment |
add a comment |
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 |
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 |
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 '18 at 23:58
Felix EmanuelFelix Emanuel
44928
44928
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.
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 '18 at 15:55