How to write the block matrix in LaTex? The Next CEO of Stack OverflowAligning equations with text with alignatMatrix environments not workingnewcommand for bmatrix of features using pgffor throws missing endgroup errorLeft align text in equation environment (no use of align environment)How to align cases block to the leftObtaining a properly aligned complex matrixXparse k argument to parse options at end of environmentHow to represent the following border matrix in latex?How to write the following mathematical expression in LaTeX?“Missing '' inserted” and “Missing inserted” with aligned environment
Why don't programming languages automatically manage the synchronous/asynchronous problem?
Calculator final project in Python
How to check if all elements of 1 list are in the *same quantity* and in any order, in the list2?
How to invert MapIndexed on a ragged structure? How to construct a tree from rules?
Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?
Grabbing quick drinks
Why specifically branches as firewood on the Altar?
Why does standard notation not preserve intervals (visually)
Is it convenient to ask the journal's editor for two additional days to complete a review?
Can you be charged for obstruction for refusing to answer questions?
Is it my responsibility to learn a new technology in my own time my employer wants to implement?
Recycling old answers
Dominated convergence theorem - what sequence?
Prepend last line of stdin to entire stdin
Why do airplanes bank sharply to the right after air-to-air refueling?
How did people program for Consoles with multiple CPUs?
Flying from Cape Town to England and return to another province
How to count occurrences of text in a file?
What was the first Unix version to run on a microcomputer?
Is it possible to replace duplicates of a character with one character using tr
What does "Its cash flow is deeply negative" mean?
What did we know about the Kessel run before the prequels?
Does Germany produce more waste than the US?
WOW air has ceased operation, can I get my tickets refunded?
How to write the block matrix in LaTex?
The Next CEO of Stack OverflowAligning equations with text with alignatMatrix environments not workingnewcommand for bmatrix of features using pgffor throws missing endgroup errorLeft align text in equation environment (no use of align environment)How to align cases block to the leftObtaining a properly aligned complex matrixXparse k argument to parse options at end of environmentHow to represent the following border matrix in latex?How to write the following mathematical expression in LaTeX?“Missing '' inserted” and “Missing inserted” with aligned environment
I wish to write the following block matrix in LaTex.
I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following:
beginbmatrix
0 & -1& & & & & 0 & & & &\
1 & 0 & & & & & & & & &\
& & cdot & & & & & & & &\
& & & cdot & & & & & & &\
& & & & cdot & & & & & &\
& & & & & 0 & 1 & & & &\
& & & & &-1 & 0 & & & &\
& & & & & & & cdot & & &\
& & & & & & & & cdot & & \
& & & & & & & & & cdot & \
0 & & & & & & & & & & 0\
endbmatrix
But this is pretty ugly and so any suggestions will be much appreciated.
amsmath
add a comment |
I wish to write the following block matrix in LaTex.
I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following:
beginbmatrix
0 & -1& & & & & 0 & & & &\
1 & 0 & & & & & & & & &\
& & cdot & & & & & & & &\
& & & cdot & & & & & & &\
& & & & cdot & & & & & &\
& & & & & 0 & 1 & & & &\
& & & & &-1 & 0 & & & &\
& & & & & & & cdot & & &\
& & & & & & & & cdot & & \
& & & & & & & & & cdot & \
0 & & & & & & & & & & 0\
endbmatrix
But this is pretty ugly and so any suggestions will be much appreciated.
amsmath
add a comment |
I wish to write the following block matrix in LaTex.
I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following:
beginbmatrix
0 & -1& & & & & 0 & & & &\
1 & 0 & & & & & & & & &\
& & cdot & & & & & & & &\
& & & cdot & & & & & & &\
& & & & cdot & & & & & &\
& & & & & 0 & 1 & & & &\
& & & & &-1 & 0 & & & &\
& & & & & & & cdot & & &\
& & & & & & & & cdot & & \
& & & & & & & & & cdot & \
0 & & & & & & & & & & 0\
endbmatrix
But this is pretty ugly and so any suggestions will be much appreciated.
amsmath
I wish to write the following block matrix in LaTex.
I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following:
beginbmatrix
0 & -1& & & & & 0 & & & &\
1 & 0 & & & & & & & & &\
& & cdot & & & & & & & &\
& & & cdot & & & & & & &\
& & & & cdot & & & & & &\
& & & & & 0 & 1 & & & &\
& & & & &-1 & 0 & & & &\
& & & & & & & cdot & & &\
& & & & & & & & cdot & & \
& & & & & & & & & cdot & \
0 & & & & & & & & & & 0\
endbmatrix
But this is pretty ugly and so any suggestions will be much appreciated.
amsmath
amsmath
edited 2 days ago
model_checker
asked 2 days ago
model_checkermodel_checker
245139
245139
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
Perhaps
$left(beginarraycccccc
left[beginarraycc
0 & 1\
-1 & 0
endarrayright] & & & & & 0\
& ddots\
& & left[beginarraycc
0 & 1\
-1 & 0
endarrayright]\
& & & 0\
& & & & ddots\
0 & & & & & 0
endarrayright)$
2
Thank you so much!
– model_checker
2 days ago
add a comment |
Here there is my proposal as the original picture using bmatx
command that replace a boxed matrix.
documentclassarticle
usepackagemathtools
newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix
begindocument
[
beginpmatrix
, bmatx& & & & & & & 0 \
& ddots& & & & \
& & bmatx & & & & \
& & & ddots& & &\
& & & & 0 & &\
& & & & & & ddots\
0 & & & & & & & 0
endpmatrix
]
enddocument
The best code is provided thanks to the precious comment of @Bernard.
4
In my opinion, you shouldn't add an empty 3rd column in the definition ofbmatx
– Bernard
2 days ago
2
Your comment not is an opinion :-) ...it is truly correct. :-)
– Sebastiano
2 days ago
add a comment |
Just for the fun of it! :-)
documentclassarticle
usepackageamsmath,array
begindocument
[
beginpmatrix
newcommandlr[1]multicolumn1#1
newcommandrr[1]multicolumn1c#1
;
beginarray@*10c@
cline1-2
lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
lr-1 & rr0 \
cline1-2
&& ddots \
cline4-5
&&& lr0 & rr1 \
&&& lr-1 & rr0 \
cline4-5
&&&&& 0 \[-1ex]
&&&&&& ddots \
&&&&&&& 0 \[-1ex]
&&&&&&&& ddots \
multicolumn2c0 &&&&&&&& 0
endarray
;;
endpmatrix
]
enddocument
2
You guys are the best!
– model_checker
2 days ago
1
@model_checker I'm certainly not the best. Here is world excellence.
– Sebastiano
2 days ago
2
I am sorry! Last I checked there was an objection to your answer. But it's also great!
– model_checker
2 days ago
2
@model_checker Don't worry. I have put two&
in addition. :-) but now it is correct.
– Sebastiano
2 days ago
add a comment |
Here's another solution. It uses a pmatrix
environment for the overall matrix and a custom macro called blockmat
for the 2x2 inner matrices.
documentclassarticle
usepackagearray,amsmath
newcommandblockmat%
beginarray
hline 0 & 1^mathstrut \ -1 & 0 \ hline
endarray
begindocument
[
beginpmatrix
blockmat & & & & & 0 \
& ddots & & & & \
& & blockmat & & & \
& & & 0 & & \
& & & & ddots & \
0 & & & & & 0 \
endpmatrix
]
enddocument
1
Thank you for writing this answer!
– model_checker
2 days ago
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%2f481978%2fhow-to-write-the-block-matrix-in-latex%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Perhaps
$left(beginarraycccccc
left[beginarraycc
0 & 1\
-1 & 0
endarrayright] & & & & & 0\
& ddots\
& & left[beginarraycc
0 & 1\
-1 & 0
endarrayright]\
& & & 0\
& & & & ddots\
0 & & & & & 0
endarrayright)$
2
Thank you so much!
– model_checker
2 days ago
add a comment |
Perhaps
$left(beginarraycccccc
left[beginarraycc
0 & 1\
-1 & 0
endarrayright] & & & & & 0\
& ddots\
& & left[beginarraycc
0 & 1\
-1 & 0
endarrayright]\
& & & 0\
& & & & ddots\
0 & & & & & 0
endarrayright)$
2
Thank you so much!
– model_checker
2 days ago
add a comment |
Perhaps
$left(beginarraycccccc
left[beginarraycc
0 & 1\
-1 & 0
endarrayright] & & & & & 0\
& ddots\
& & left[beginarraycc
0 & 1\
-1 & 0
endarrayright]\
& & & 0\
& & & & ddots\
0 & & & & & 0
endarrayright)$
Perhaps
$left(beginarraycccccc
left[beginarraycc
0 & 1\
-1 & 0
endarrayright] & & & & & 0\
& ddots\
& & left[beginarraycc
0 & 1\
-1 & 0
endarrayright]\
& & & 0\
& & & & ddots\
0 & & & & & 0
endarrayright)$
answered 2 days ago


riccs_0xriccs_0x
2005
2005
2
Thank you so much!
– model_checker
2 days ago
add a comment |
2
Thank you so much!
– model_checker
2 days ago
2
2
Thank you so much!
– model_checker
2 days ago
Thank you so much!
– model_checker
2 days ago
add a comment |
Here there is my proposal as the original picture using bmatx
command that replace a boxed matrix.
documentclassarticle
usepackagemathtools
newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix
begindocument
[
beginpmatrix
, bmatx& & & & & & & 0 \
& ddots& & & & \
& & bmatx & & & & \
& & & ddots& & &\
& & & & 0 & &\
& & & & & & ddots\
0 & & & & & & & 0
endpmatrix
]
enddocument
The best code is provided thanks to the precious comment of @Bernard.
4
In my opinion, you shouldn't add an empty 3rd column in the definition ofbmatx
– Bernard
2 days ago
2
Your comment not is an opinion :-) ...it is truly correct. :-)
– Sebastiano
2 days ago
add a comment |
Here there is my proposal as the original picture using bmatx
command that replace a boxed matrix.
documentclassarticle
usepackagemathtools
newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix
begindocument
[
beginpmatrix
, bmatx& & & & & & & 0 \
& ddots& & & & \
& & bmatx & & & & \
& & & ddots& & &\
& & & & 0 & &\
& & & & & & ddots\
0 & & & & & & & 0
endpmatrix
]
enddocument
The best code is provided thanks to the precious comment of @Bernard.
4
In my opinion, you shouldn't add an empty 3rd column in the definition ofbmatx
– Bernard
2 days ago
2
Your comment not is an opinion :-) ...it is truly correct. :-)
– Sebastiano
2 days ago
add a comment |
Here there is my proposal as the original picture using bmatx
command that replace a boxed matrix.
documentclassarticle
usepackagemathtools
newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix
begindocument
[
beginpmatrix
, bmatx& & & & & & & 0 \
& ddots& & & & \
& & bmatx & & & & \
& & & ddots& & &\
& & & & 0 & &\
& & & & & & ddots\
0 & & & & & & & 0
endpmatrix
]
enddocument
The best code is provided thanks to the precious comment of @Bernard.
Here there is my proposal as the original picture using bmatx
command that replace a boxed matrix.
documentclassarticle
usepackagemathtools
newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix
begindocument
[
beginpmatrix
, bmatx& & & & & & & 0 \
& ddots& & & & \
& & bmatx & & & & \
& & & ddots& & &\
& & & & 0 & &\
& & & & & & ddots\
0 & & & & & & & 0
endpmatrix
]
enddocument
The best code is provided thanks to the precious comment of @Bernard.
edited 2 days ago
answered 2 days ago
SebastianoSebastiano
11.4k42164
11.4k42164
4
In my opinion, you shouldn't add an empty 3rd column in the definition ofbmatx
– Bernard
2 days ago
2
Your comment not is an opinion :-) ...it is truly correct. :-)
– Sebastiano
2 days ago
add a comment |
4
In my opinion, you shouldn't add an empty 3rd column in the definition ofbmatx
– Bernard
2 days ago
2
Your comment not is an opinion :-) ...it is truly correct. :-)
– Sebastiano
2 days ago
4
4
In my opinion, you shouldn't add an empty 3rd column in the definition of
bmatx
– Bernard
2 days ago
In my opinion, you shouldn't add an empty 3rd column in the definition of
bmatx
– Bernard
2 days ago
2
2
Your comment not is an opinion :-) ...it is truly correct. :-)
– Sebastiano
2 days ago
Your comment not is an opinion :-) ...it is truly correct. :-)
– Sebastiano
2 days ago
add a comment |
Just for the fun of it! :-)
documentclassarticle
usepackageamsmath,array
begindocument
[
beginpmatrix
newcommandlr[1]multicolumn1#1
newcommandrr[1]multicolumn1c#1
;
beginarray@*10c@
cline1-2
lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
lr-1 & rr0 \
cline1-2
&& ddots \
cline4-5
&&& lr0 & rr1 \
&&& lr-1 & rr0 \
cline4-5
&&&&& 0 \[-1ex]
&&&&&& ddots \
&&&&&&& 0 \[-1ex]
&&&&&&&& ddots \
multicolumn2c0 &&&&&&&& 0
endarray
;;
endpmatrix
]
enddocument
2
You guys are the best!
– model_checker
2 days ago
1
@model_checker I'm certainly not the best. Here is world excellence.
– Sebastiano
2 days ago
2
I am sorry! Last I checked there was an objection to your answer. But it's also great!
– model_checker
2 days ago
2
@model_checker Don't worry. I have put two&
in addition. :-) but now it is correct.
– Sebastiano
2 days ago
add a comment |
Just for the fun of it! :-)
documentclassarticle
usepackageamsmath,array
begindocument
[
beginpmatrix
newcommandlr[1]multicolumn1#1
newcommandrr[1]multicolumn1c#1
;
beginarray@*10c@
cline1-2
lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
lr-1 & rr0 \
cline1-2
&& ddots \
cline4-5
&&& lr0 & rr1 \
&&& lr-1 & rr0 \
cline4-5
&&&&& 0 \[-1ex]
&&&&&& ddots \
&&&&&&& 0 \[-1ex]
&&&&&&&& ddots \
multicolumn2c0 &&&&&&&& 0
endarray
;;
endpmatrix
]
enddocument
2
You guys are the best!
– model_checker
2 days ago
1
@model_checker I'm certainly not the best. Here is world excellence.
– Sebastiano
2 days ago
2
I am sorry! Last I checked there was an objection to your answer. But it's also great!
– model_checker
2 days ago
2
@model_checker Don't worry. I have put two&
in addition. :-) but now it is correct.
– Sebastiano
2 days ago
add a comment |
Just for the fun of it! :-)
documentclassarticle
usepackageamsmath,array
begindocument
[
beginpmatrix
newcommandlr[1]multicolumn1#1
newcommandrr[1]multicolumn1c#1
;
beginarray@*10c@
cline1-2
lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
lr-1 & rr0 \
cline1-2
&& ddots \
cline4-5
&&& lr0 & rr1 \
&&& lr-1 & rr0 \
cline4-5
&&&&& 0 \[-1ex]
&&&&&& ddots \
&&&&&&& 0 \[-1ex]
&&&&&&&& ddots \
multicolumn2c0 &&&&&&&& 0
endarray
;;
endpmatrix
]
enddocument
Just for the fun of it! :-)
documentclassarticle
usepackageamsmath,array
begindocument
[
beginpmatrix
newcommandlr[1]multicolumn1#1
newcommandrr[1]multicolumn1c#1
;
beginarray@*10c@
cline1-2
lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
lr-1 & rr0 \
cline1-2
&& ddots \
cline4-5
&&& lr0 & rr1 \
&&& lr-1 & rr0 \
cline4-5
&&&&& 0 \[-1ex]
&&&&&& ddots \
&&&&&&& 0 \[-1ex]
&&&&&&&& ddots \
multicolumn2c0 &&&&&&&& 0
endarray
;;
endpmatrix
]
enddocument
answered 2 days ago


egregegreg
730k8819293242
730k8819293242
2
You guys are the best!
– model_checker
2 days ago
1
@model_checker I'm certainly not the best. Here is world excellence.
– Sebastiano
2 days ago
2
I am sorry! Last I checked there was an objection to your answer. But it's also great!
– model_checker
2 days ago
2
@model_checker Don't worry. I have put two&
in addition. :-) but now it is correct.
– Sebastiano
2 days ago
add a comment |
2
You guys are the best!
– model_checker
2 days ago
1
@model_checker I'm certainly not the best. Here is world excellence.
– Sebastiano
2 days ago
2
I am sorry! Last I checked there was an objection to your answer. But it's also great!
– model_checker
2 days ago
2
@model_checker Don't worry. I have put two&
in addition. :-) but now it is correct.
– Sebastiano
2 days ago
2
2
You guys are the best!
– model_checker
2 days ago
You guys are the best!
– model_checker
2 days ago
1
1
@model_checker I'm certainly not the best. Here is world excellence.
– Sebastiano
2 days ago
@model_checker I'm certainly not the best. Here is world excellence.
– Sebastiano
2 days ago
2
2
I am sorry! Last I checked there was an objection to your answer. But it's also great!
– model_checker
2 days ago
I am sorry! Last I checked there was an objection to your answer. But it's also great!
– model_checker
2 days ago
2
2
@model_checker Don't worry. I have put two
&
in addition. :-) but now it is correct.– Sebastiano
2 days ago
@model_checker Don't worry. I have put two
&
in addition. :-) but now it is correct.– Sebastiano
2 days ago
add a comment |
Here's another solution. It uses a pmatrix
environment for the overall matrix and a custom macro called blockmat
for the 2x2 inner matrices.
documentclassarticle
usepackagearray,amsmath
newcommandblockmat%
beginarray
hline 0 & 1^mathstrut \ -1 & 0 \ hline
endarray
begindocument
[
beginpmatrix
blockmat & & & & & 0 \
& ddots & & & & \
& & blockmat & & & \
& & & 0 & & \
& & & & ddots & \
0 & & & & & 0 \
endpmatrix
]
enddocument
1
Thank you for writing this answer!
– model_checker
2 days ago
add a comment |
Here's another solution. It uses a pmatrix
environment for the overall matrix and a custom macro called blockmat
for the 2x2 inner matrices.
documentclassarticle
usepackagearray,amsmath
newcommandblockmat%
beginarray
hline 0 & 1^mathstrut \ -1 & 0 \ hline
endarray
begindocument
[
beginpmatrix
blockmat & & & & & 0 \
& ddots & & & & \
& & blockmat & & & \
& & & 0 & & \
& & & & ddots & \
0 & & & & & 0 \
endpmatrix
]
enddocument
1
Thank you for writing this answer!
– model_checker
2 days ago
add a comment |
Here's another solution. It uses a pmatrix
environment for the overall matrix and a custom macro called blockmat
for the 2x2 inner matrices.
documentclassarticle
usepackagearray,amsmath
newcommandblockmat%
beginarray
hline 0 & 1^mathstrut \ -1 & 0 \ hline
endarray
begindocument
[
beginpmatrix
blockmat & & & & & 0 \
& ddots & & & & \
& & blockmat & & & \
& & & 0 & & \
& & & & ddots & \
0 & & & & & 0 \
endpmatrix
]
enddocument
Here's another solution. It uses a pmatrix
environment for the overall matrix and a custom macro called blockmat
for the 2x2 inner matrices.
documentclassarticle
usepackagearray,amsmath
newcommandblockmat%
beginarray
hline 0 & 1^mathstrut \ -1 & 0 \ hline
endarray
begindocument
[
beginpmatrix
blockmat & & & & & 0 \
& ddots & & & & \
& & blockmat & & & \
& & & 0 & & \
& & & & ddots & \
0 & & & & & 0 \
endpmatrix
]
enddocument
edited 2 days ago
samcarter
93.1k7105301
93.1k7105301
answered 2 days ago


MicoMico
284k31388778
284k31388778
1
Thank you for writing this answer!
– model_checker
2 days ago
add a comment |
1
Thank you for writing this answer!
– model_checker
2 days ago
1
1
Thank you for writing this answer!
– model_checker
2 days ago
Thank you for writing this answer!
– model_checker
2 days ago
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%2f481978%2fhow-to-write-the-block-matrix-in-latex%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