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:
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
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:
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
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:
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
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:
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
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:
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
add a comment |
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
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.
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
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:
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
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:
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
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:
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
You can do without an array
here, since you're working with a single vector. Use ties (spaces, ~
) to stretch out the elements:
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
answered Nov 14 '18 at 16:27
WernerWerner
445k699801685
445k699801685
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Nov 14 '18 at 18:15
egregegreg
722k8719143213
722k8719143213
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.
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
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.
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
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.
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
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.
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
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