How to stretch delimiters to envolve matrices inside of a kbordermatrix? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)eqnarray vs alignHighlight columns in a matrix created with using kbordermatrix packageArrow in the middle of two matrices
C's equality operator on converted pointers
Putting class ranking in CV, but against dept guidelines
Electrolysis of water: Which equations to use? (IB Chem)
Most bit efficient text communication method?
Misunderstanding of Sylow theory
How many time has Arya actually used Needle?
How does light 'choose' between wave and particle behaviour?
What does this say in Elvish?
Concentration's Meaning
How many morphisms from 1 to 1+1 can there be?
If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?
What is the home of the drow in Flanaess?
AppleTVs create a chatty alternate WiFi network
What does 丫 mean? 丫是什么意思?
What to do with repeated rejections for phd position
Can I infer the range of a random variable based on a confidence interval for the mean?
Significance of Cersei's obsession with elephants?
Can a Beast Master ranger change beast companions?
Strange behavior of Object.defineProperty() in JavaScript
Random body shuffle every night—can we still function?
How often does castling occur in grandmaster games?
What does it mean that physics no longer uses mechanical models to describe phenomena?
Is it possible to force a specific program to remain in memory after closing it?
One-one communication
How to stretch delimiters to envolve matrices inside of a kbordermatrix?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)eqnarray vs alignHighlight columns in a matrix created with using kbordermatrix packageArrow in the middle of two matrices
I am putting three matrices inside of a kbordermatrix, but the delimiters do not envolve the inner matrices completely. How can I do to stretch the kbordermatrix delimiters to envolve the inner matrices?
My MWE:
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument
The execution results of aforementioned code:

P.S.: I would like to stretch the delimiters until the red arrows.
kbordermatrix
add a comment |
I am putting three matrices inside of a kbordermatrix, but the delimiters do not envolve the inner matrices completely. How can I do to stretch the kbordermatrix delimiters to envolve the inner matrices?
My MWE:
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument
The execution results of aforementioned code:

P.S.: I would like to stretch the delimiters until the red arrows.
kbordermatrix
What's the purpose of those commas hanging from nowhere?
– egreg
Apr 14 at 9:19
add a comment |
I am putting three matrices inside of a kbordermatrix, but the delimiters do not envolve the inner matrices completely. How can I do to stretch the kbordermatrix delimiters to envolve the inner matrices?
My MWE:
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument
The execution results of aforementioned code:

P.S.: I would like to stretch the delimiters until the red arrows.
kbordermatrix
I am putting three matrices inside of a kbordermatrix, but the delimiters do not envolve the inner matrices completely. How can I do to stretch the kbordermatrix delimiters to envolve the inner matrices?
My MWE:
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument
The execution results of aforementioned code:

P.S.: I would like to stretch the delimiters until the red arrows.
kbordermatrix
kbordermatrix
edited Apr 13 at 22:20
Adriano
asked Apr 13 at 21:53
AdrianoAdriano
454
454
What's the purpose of those commas hanging from nowhere?
– egreg
Apr 14 at 9:19
add a comment |
What's the purpose of those commas hanging from nowhere?
– egreg
Apr 14 at 9:19
What's the purpose of those commas hanging from nowhere?
– egreg
Apr 14 at 9:19
What's the purpose of those commas hanging from nowhere?
– egreg
Apr 14 at 9:19
add a comment |
3 Answers
3
active
oldest
votes
Turn off arraystretch. Then, manually, add the desired space between rows.
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
% renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \[2ex]
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \[2ex]
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \[2ex]
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument

@StevenSegletes, I tested your solution and it worked fine. Thank you by help.
– Adriano
Apr 14 at 0:33
add a comment |
You don't really need kbordermatrix to obtain this layout. However, the matrix in the last column can't have an overbrace, so I added a vphantom of a similar matrix.
I also propose a variant with inner medium-sized matrices, with the mmatrix environment from nccmath. Last, I had to load icomma to have a correct spacing of the decimal comma.
documentclass[brazil]article
usepackageamssymb, array, mathtools
usepackageicomma, nccmath
newenvironmentbmmatrixmedsizebmatrixendbmatrixendmedsize
begindocument
beginalign*
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix, vphantombeginbmatrix, \ ,
endbmatrix
endpmatrix\[2ex]
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmmatrix, vphantombeginbmmatrix, \ ,
endbmmatrix
endpmatrix
endalign*
enddocument

I really wanted to work with kbordermatrix, but your solution is interesting. I did not understand why you used the negthickspace and the smash commands.
– Adriano
Apr 14 at 3:24
The negthickspace is just for æsthetic reasons – so it's only a matter of personal taste. As tosmash[t], it is to ensure the three braces are above the external parentheses.
– Bernard
Apr 14 at 8:54
You should compensate thesmashwith avphantom, or the braces would not be taken into consideration for vertical spacing.
– egreg
Apr 14 at 9:20
@egreg: That's right, but I have no context. If it's a new line in a multiline equation, a simple\[2ex], for instance, might do the trick.
– Bernard
Apr 14 at 9:24
add a comment |
My opinion is that kbordermatrix is the wrong tool for the job.
I suggest using siunitx for numeric tables.
Here the trick is to use a phantom two-line array in order to set the left and right delimiters. The definitions are made inside [...], so they are local to it.
If you have an alignment, the local definitions should be arranged differently, but it depends on what you're trying to achieve.
In any case, never use eqnarray (see eqnarray vs align).
documentclassarticle
usepackageamsfonts,amssymb,array,mathtools
usepackagesiunitx
usepackagelipsum % for context
sisetupoutput-decimal-marker=,
newcolumntypeT[1]S[table-format=#1]
newenvironmentnmatrix[1]
beginbmatrixbegintabular@#1@
endtabularendbmatrix
begindocument
lipsum*[3]
[
renewcommandtabcolsep2.5pt
renewcommandarraystretch1.2
newcommandLEFT%
left(vphantombeginbmatrix1\1endbmatrixright.
newcommandRIGHT%
left.vphantombeginbmatrix1\1endbmatrixright)
%% Now the real job
mathbfA=
LEFT
overbrace
beginnmatrixT1.4T-1.4
0,9960 & -0,0037 \
0,0111 & 0,9867
endnmatrix
;,;
overbrace
beginnmatrixT1.4T-1.4
0,9961 & -0,0059 \
0,0715 & 1,0423
endnmatrix
;,;
overbrace
beginnmatrixT1.4T1.4
1,0034 & 0,0009 \
0,0098 & 0,9696
endnmatrix
RIGHT
]
lipsum[3]
enddocument

I really would like to use the kbordermatrix, because this package has the left and upper sides options to use as explainations of lines and columns. I know bordermatrix, but I read in kborderdermatrix documentation that kbordermatrix is an improvement version to bordermatrix. Is there any alternative as simmilar as kbordermatrix?
– Adriano
Apr 15 at 19:33
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%2f484713%2fhow-to-stretch-delimiters-to-envolve-matrices-inside-of-a-kbordermatrix%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
Turn off arraystretch. Then, manually, add the desired space between rows.
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
% renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \[2ex]
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \[2ex]
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \[2ex]
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument

@StevenSegletes, I tested your solution and it worked fine. Thank you by help.
– Adriano
Apr 14 at 0:33
add a comment |
Turn off arraystretch. Then, manually, add the desired space between rows.
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
% renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \[2ex]
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \[2ex]
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \[2ex]
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument

@StevenSegletes, I tested your solution and it worked fine. Thank you by help.
– Adriano
Apr 14 at 0:33
add a comment |
Turn off arraystretch. Then, manually, add the desired space between rows.
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
% renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \[2ex]
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \[2ex]
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \[2ex]
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument

Turn off arraystretch. Then, manually, add the desired space between rows.
documentclass[brazil]article
usepackageamsfonts,amssymb,array,mathtools
usepackagekbordermatrix
begindocument
begineqnarray
mathbfA & = &
setlengthkbrowsep2pt
setlengthkbcolsep0pt
% renewcommandarraystretch1.5
renewcommandkbldelim(
renewcommandkbrdelim)
kbordermatrix
omit & & , & & , & cr
omit & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9960 & -0,0037 \[2ex]
0,0111 & 0,9867
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
0,9961 & -0,0059 \[2ex]
0,0715 & 1,0423
endbmatrix
endgroup & , & overbracebegingroup
setlengtharraycolsep2.5pt
beginbmatrix
1,0034 & 0,0009 \[2ex]
0,0098 & 0,9696
endbmatrix
endgroup
nonumber
endeqnarray
enddocument

answered Apr 13 at 22:27
Steven B. SegletesSteven B. Segletes
163k9207419
163k9207419
@StevenSegletes, I tested your solution and it worked fine. Thank you by help.
– Adriano
Apr 14 at 0:33
add a comment |
@StevenSegletes, I tested your solution and it worked fine. Thank you by help.
– Adriano
Apr 14 at 0:33
@StevenSegletes, I tested your solution and it worked fine. Thank you by help.
– Adriano
Apr 14 at 0:33
@StevenSegletes, I tested your solution and it worked fine. Thank you by help.
– Adriano
Apr 14 at 0:33
add a comment |
You don't really need kbordermatrix to obtain this layout. However, the matrix in the last column can't have an overbrace, so I added a vphantom of a similar matrix.
I also propose a variant with inner medium-sized matrices, with the mmatrix environment from nccmath. Last, I had to load icomma to have a correct spacing of the decimal comma.
documentclass[brazil]article
usepackageamssymb, array, mathtools
usepackageicomma, nccmath
newenvironmentbmmatrixmedsizebmatrixendbmatrixendmedsize
begindocument
beginalign*
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix, vphantombeginbmatrix, \ ,
endbmatrix
endpmatrix\[2ex]
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmmatrix, vphantombeginbmmatrix, \ ,
endbmmatrix
endpmatrix
endalign*
enddocument

I really wanted to work with kbordermatrix, but your solution is interesting. I did not understand why you used the negthickspace and the smash commands.
– Adriano
Apr 14 at 3:24
The negthickspace is just for æsthetic reasons – so it's only a matter of personal taste. As tosmash[t], it is to ensure the three braces are above the external parentheses.
– Bernard
Apr 14 at 8:54
You should compensate thesmashwith avphantom, or the braces would not be taken into consideration for vertical spacing.
– egreg
Apr 14 at 9:20
@egreg: That's right, but I have no context. If it's a new line in a multiline equation, a simple\[2ex], for instance, might do the trick.
– Bernard
Apr 14 at 9:24
add a comment |
You don't really need kbordermatrix to obtain this layout. However, the matrix in the last column can't have an overbrace, so I added a vphantom of a similar matrix.
I also propose a variant with inner medium-sized matrices, with the mmatrix environment from nccmath. Last, I had to load icomma to have a correct spacing of the decimal comma.
documentclass[brazil]article
usepackageamssymb, array, mathtools
usepackageicomma, nccmath
newenvironmentbmmatrixmedsizebmatrixendbmatrixendmedsize
begindocument
beginalign*
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix, vphantombeginbmatrix, \ ,
endbmatrix
endpmatrix\[2ex]
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmmatrix, vphantombeginbmmatrix, \ ,
endbmmatrix
endpmatrix
endalign*
enddocument

I really wanted to work with kbordermatrix, but your solution is interesting. I did not understand why you used the negthickspace and the smash commands.
– Adriano
Apr 14 at 3:24
The negthickspace is just for æsthetic reasons – so it's only a matter of personal taste. As tosmash[t], it is to ensure the three braces are above the external parentheses.
– Bernard
Apr 14 at 8:54
You should compensate thesmashwith avphantom, or the braces would not be taken into consideration for vertical spacing.
– egreg
Apr 14 at 9:20
@egreg: That's right, but I have no context. If it's a new line in a multiline equation, a simple\[2ex], for instance, might do the trick.
– Bernard
Apr 14 at 9:24
add a comment |
You don't really need kbordermatrix to obtain this layout. However, the matrix in the last column can't have an overbrace, so I added a vphantom of a similar matrix.
I also propose a variant with inner medium-sized matrices, with the mmatrix environment from nccmath. Last, I had to load icomma to have a correct spacing of the decimal comma.
documentclass[brazil]article
usepackageamssymb, array, mathtools
usepackageicomma, nccmath
newenvironmentbmmatrixmedsizebmatrixendbmatrixendmedsize
begindocument
beginalign*
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix, vphantombeginbmatrix, \ ,
endbmatrix
endpmatrix\[2ex]
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmmatrix, vphantombeginbmmatrix, \ ,
endbmmatrix
endpmatrix
endalign*
enddocument

You don't really need kbordermatrix to obtain this layout. However, the matrix in the last column can't have an overbrace, so I added a vphantom of a similar matrix.
I also propose a variant with inner medium-sized matrices, with the mmatrix environment from nccmath. Last, I had to load icomma to have a correct spacing of the decimal comma.
documentclass[brazil]article
usepackageamssymb, array, mathtools
usepackageicomma, nccmath
newenvironmentbmmatrixmedsizebmatrixendbmatrixendmedsize
begindocument
beginalign*
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmatrix, vphantombeginbmatrix, \ ,
endbmatrix
endpmatrix\[2ex]
mathbfA & = renewcommandarraystretch1.5
beginpmatrix
,smash[t]overbracebeginbmmatrix
0,9960 & -0,0037 \
0,0111 & 0,9867
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbracebeginbmmatrix
0,9961 & -0,0059 \
0,0715 & 1,0423
endbmmatrix
&negthickspace,negthickspace! &
smash[t]overbrace%
beginbmmatrix
1,0034 & 0,0009 \
0,0098 & 0,9696
endbmmatrix, vphantombeginbmmatrix, \ ,
endbmmatrix
endpmatrix
endalign*
enddocument

edited Apr 14 at 8:56
answered Apr 13 at 23:33
BernardBernard
176k778210
176k778210
I really wanted to work with kbordermatrix, but your solution is interesting. I did not understand why you used the negthickspace and the smash commands.
– Adriano
Apr 14 at 3:24
The negthickspace is just for æsthetic reasons – so it's only a matter of personal taste. As tosmash[t], it is to ensure the three braces are above the external parentheses.
– Bernard
Apr 14 at 8:54
You should compensate thesmashwith avphantom, or the braces would not be taken into consideration for vertical spacing.
– egreg
Apr 14 at 9:20
@egreg: That's right, but I have no context. If it's a new line in a multiline equation, a simple\[2ex], for instance, might do the trick.
– Bernard
Apr 14 at 9:24
add a comment |
I really wanted to work with kbordermatrix, but your solution is interesting. I did not understand why you used the negthickspace and the smash commands.
– Adriano
Apr 14 at 3:24
The negthickspace is just for æsthetic reasons – so it's only a matter of personal taste. As tosmash[t], it is to ensure the three braces are above the external parentheses.
– Bernard
Apr 14 at 8:54
You should compensate thesmashwith avphantom, or the braces would not be taken into consideration for vertical spacing.
– egreg
Apr 14 at 9:20
@egreg: That's right, but I have no context. If it's a new line in a multiline equation, a simple\[2ex], for instance, might do the trick.
– Bernard
Apr 14 at 9:24
I really wanted to work with kbordermatrix, but your solution is interesting. I did not understand why you used the negthickspace and the smash commands.
– Adriano
Apr 14 at 3:24
I really wanted to work with kbordermatrix, but your solution is interesting. I did not understand why you used the negthickspace and the smash commands.
– Adriano
Apr 14 at 3:24
The negthickspace is just for æsthetic reasons – so it's only a matter of personal taste. As to
smash[t], it is to ensure the three braces are above the external parentheses.– Bernard
Apr 14 at 8:54
The negthickspace is just for æsthetic reasons – so it's only a matter of personal taste. As to
smash[t], it is to ensure the three braces are above the external parentheses.– Bernard
Apr 14 at 8:54
You should compensate the
smash with a vphantom, or the braces would not be taken into consideration for vertical spacing.– egreg
Apr 14 at 9:20
You should compensate the
smash with a vphantom, or the braces would not be taken into consideration for vertical spacing.– egreg
Apr 14 at 9:20
@egreg: That's right, but I have no context. If it's a new line in a multiline equation, a simple
\[2ex], for instance, might do the trick.– Bernard
Apr 14 at 9:24
@egreg: That's right, but I have no context. If it's a new line in a multiline equation, a simple
\[2ex], for instance, might do the trick.– Bernard
Apr 14 at 9:24
add a comment |
My opinion is that kbordermatrix is the wrong tool for the job.
I suggest using siunitx for numeric tables.
Here the trick is to use a phantom two-line array in order to set the left and right delimiters. The definitions are made inside [...], so they are local to it.
If you have an alignment, the local definitions should be arranged differently, but it depends on what you're trying to achieve.
In any case, never use eqnarray (see eqnarray vs align).
documentclassarticle
usepackageamsfonts,amssymb,array,mathtools
usepackagesiunitx
usepackagelipsum % for context
sisetupoutput-decimal-marker=,
newcolumntypeT[1]S[table-format=#1]
newenvironmentnmatrix[1]
beginbmatrixbegintabular@#1@
endtabularendbmatrix
begindocument
lipsum*[3]
[
renewcommandtabcolsep2.5pt
renewcommandarraystretch1.2
newcommandLEFT%
left(vphantombeginbmatrix1\1endbmatrixright.
newcommandRIGHT%
left.vphantombeginbmatrix1\1endbmatrixright)
%% Now the real job
mathbfA=
LEFT
overbrace
beginnmatrixT1.4T-1.4
0,9960 & -0,0037 \
0,0111 & 0,9867
endnmatrix
;,;
overbrace
beginnmatrixT1.4T-1.4
0,9961 & -0,0059 \
0,0715 & 1,0423
endnmatrix
;,;
overbrace
beginnmatrixT1.4T1.4
1,0034 & 0,0009 \
0,0098 & 0,9696
endnmatrix
RIGHT
]
lipsum[3]
enddocument

I really would like to use the kbordermatrix, because this package has the left and upper sides options to use as explainations of lines and columns. I know bordermatrix, but I read in kborderdermatrix documentation that kbordermatrix is an improvement version to bordermatrix. Is there any alternative as simmilar as kbordermatrix?
– Adriano
Apr 15 at 19:33
add a comment |
My opinion is that kbordermatrix is the wrong tool for the job.
I suggest using siunitx for numeric tables.
Here the trick is to use a phantom two-line array in order to set the left and right delimiters. The definitions are made inside [...], so they are local to it.
If you have an alignment, the local definitions should be arranged differently, but it depends on what you're trying to achieve.
In any case, never use eqnarray (see eqnarray vs align).
documentclassarticle
usepackageamsfonts,amssymb,array,mathtools
usepackagesiunitx
usepackagelipsum % for context
sisetupoutput-decimal-marker=,
newcolumntypeT[1]S[table-format=#1]
newenvironmentnmatrix[1]
beginbmatrixbegintabular@#1@
endtabularendbmatrix
begindocument
lipsum*[3]
[
renewcommandtabcolsep2.5pt
renewcommandarraystretch1.2
newcommandLEFT%
left(vphantombeginbmatrix1\1endbmatrixright.
newcommandRIGHT%
left.vphantombeginbmatrix1\1endbmatrixright)
%% Now the real job
mathbfA=
LEFT
overbrace
beginnmatrixT1.4T-1.4
0,9960 & -0,0037 \
0,0111 & 0,9867
endnmatrix
;,;
overbrace
beginnmatrixT1.4T-1.4
0,9961 & -0,0059 \
0,0715 & 1,0423
endnmatrix
;,;
overbrace
beginnmatrixT1.4T1.4
1,0034 & 0,0009 \
0,0098 & 0,9696
endnmatrix
RIGHT
]
lipsum[3]
enddocument

I really would like to use the kbordermatrix, because this package has the left and upper sides options to use as explainations of lines and columns. I know bordermatrix, but I read in kborderdermatrix documentation that kbordermatrix is an improvement version to bordermatrix. Is there any alternative as simmilar as kbordermatrix?
– Adriano
Apr 15 at 19:33
add a comment |
My opinion is that kbordermatrix is the wrong tool for the job.
I suggest using siunitx for numeric tables.
Here the trick is to use a phantom two-line array in order to set the left and right delimiters. The definitions are made inside [...], so they are local to it.
If you have an alignment, the local definitions should be arranged differently, but it depends on what you're trying to achieve.
In any case, never use eqnarray (see eqnarray vs align).
documentclassarticle
usepackageamsfonts,amssymb,array,mathtools
usepackagesiunitx
usepackagelipsum % for context
sisetupoutput-decimal-marker=,
newcolumntypeT[1]S[table-format=#1]
newenvironmentnmatrix[1]
beginbmatrixbegintabular@#1@
endtabularendbmatrix
begindocument
lipsum*[3]
[
renewcommandtabcolsep2.5pt
renewcommandarraystretch1.2
newcommandLEFT%
left(vphantombeginbmatrix1\1endbmatrixright.
newcommandRIGHT%
left.vphantombeginbmatrix1\1endbmatrixright)
%% Now the real job
mathbfA=
LEFT
overbrace
beginnmatrixT1.4T-1.4
0,9960 & -0,0037 \
0,0111 & 0,9867
endnmatrix
;,;
overbrace
beginnmatrixT1.4T-1.4
0,9961 & -0,0059 \
0,0715 & 1,0423
endnmatrix
;,;
overbrace
beginnmatrixT1.4T1.4
1,0034 & 0,0009 \
0,0098 & 0,9696
endnmatrix
RIGHT
]
lipsum[3]
enddocument

My opinion is that kbordermatrix is the wrong tool for the job.
I suggest using siunitx for numeric tables.
Here the trick is to use a phantom two-line array in order to set the left and right delimiters. The definitions are made inside [...], so they are local to it.
If you have an alignment, the local definitions should be arranged differently, but it depends on what you're trying to achieve.
In any case, never use eqnarray (see eqnarray vs align).
documentclassarticle
usepackageamsfonts,amssymb,array,mathtools
usepackagesiunitx
usepackagelipsum % for context
sisetupoutput-decimal-marker=,
newcolumntypeT[1]S[table-format=#1]
newenvironmentnmatrix[1]
beginbmatrixbegintabular@#1@
endtabularendbmatrix
begindocument
lipsum*[3]
[
renewcommandtabcolsep2.5pt
renewcommandarraystretch1.2
newcommandLEFT%
left(vphantombeginbmatrix1\1endbmatrixright.
newcommandRIGHT%
left.vphantombeginbmatrix1\1endbmatrixright)
%% Now the real job
mathbfA=
LEFT
overbrace
beginnmatrixT1.4T-1.4
0,9960 & -0,0037 \
0,0111 & 0,9867
endnmatrix
;,;
overbrace
beginnmatrixT1.4T-1.4
0,9961 & -0,0059 \
0,0715 & 1,0423
endnmatrix
;,;
overbrace
beginnmatrixT1.4T1.4
1,0034 & 0,0009 \
0,0098 & 0,9696
endnmatrix
RIGHT
]
lipsum[3]
enddocument

answered Apr 14 at 9:48
egregegreg
735k8919343259
735k8919343259
I really would like to use the kbordermatrix, because this package has the left and upper sides options to use as explainations of lines and columns. I know bordermatrix, but I read in kborderdermatrix documentation that kbordermatrix is an improvement version to bordermatrix. Is there any alternative as simmilar as kbordermatrix?
– Adriano
Apr 15 at 19:33
add a comment |
I really would like to use the kbordermatrix, because this package has the left and upper sides options to use as explainations of lines and columns. I know bordermatrix, but I read in kborderdermatrix documentation that kbordermatrix is an improvement version to bordermatrix. Is there any alternative as simmilar as kbordermatrix?
– Adriano
Apr 15 at 19:33
I really would like to use the kbordermatrix, because this package has the left and upper sides options to use as explainations of lines and columns. I know bordermatrix, but I read in kborderdermatrix documentation that kbordermatrix is an improvement version to bordermatrix. Is there any alternative as simmilar as kbordermatrix?
– Adriano
Apr 15 at 19:33
I really would like to use the kbordermatrix, because this package has the left and upper sides options to use as explainations of lines and columns. I know bordermatrix, but I read in kborderdermatrix documentation that kbordermatrix is an improvement version to bordermatrix. Is there any alternative as simmilar as kbordermatrix?
– Adriano
Apr 15 at 19:33
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%2f484713%2fhow-to-stretch-delimiters-to-envolve-matrices-inside-of-a-kbordermatrix%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
What's the purpose of those commas hanging from nowhere?
– egreg
Apr 14 at 9:19