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










3















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:



enter image description here



P.S.: I would like to stretch the delimiters until the red arrows.










share|improve this question
























  • What's the purpose of those commas hanging from nowhere?

    – egreg
    Apr 14 at 9:19















3















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:



enter image description here



P.S.: I would like to stretch the delimiters until the red arrows.










share|improve this question
























  • What's the purpose of those commas hanging from nowhere?

    – egreg
    Apr 14 at 9:19













3












3








3








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:



enter image description here



P.S.: I would like to stretch the delimiters until the red arrows.










share|improve this question
















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:



enter image description here



P.S.: I would like to stretch the delimiters until the red arrows.







kbordermatrix






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










3 Answers
3






active

oldest

votes


















3














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


enter image description here






share|improve this answer























  • @StevenSegletes, I tested your solution and it worked fine. Thank you by help.

    – Adriano
    Apr 14 at 0:33


















3














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


enter image description here






share|improve this answer

























  • 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











  • 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


















1














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


enter image description here






share|improve this answer























  • 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











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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









3














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


enter image description here






share|improve this answer























  • @StevenSegletes, I tested your solution and it worked fine. Thank you by help.

    – Adriano
    Apr 14 at 0:33















3














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


enter image description here






share|improve this answer























  • @StevenSegletes, I tested your solution and it worked fine. Thank you by help.

    – Adriano
    Apr 14 at 0:33













3












3








3







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


enter image description here






share|improve this answer













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


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • @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











3














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


enter image description here






share|improve this answer

























  • 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











  • 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















3














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


enter image description here






share|improve this answer

























  • 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











  • 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













3












3








3







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


enter image description here






share|improve this answer















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


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








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











  • @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











  • 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











  • @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











1














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


enter image description here






share|improve this answer























  • 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















1














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


enter image description here






share|improve this answer























  • 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













1












1








1







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


enter image description here






share|improve this answer













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


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484713%2fhow-to-stretch-delimiters-to-envolve-matrices-inside-of-a-kbordermatrix%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos