reshaping a commutative diagram
I have this diagram
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
$$
&&xymatrix{
&&&&&Xtimes Ytimes Ztimes Tar[ld]ar[rd]ar[ld]ar[lllldd]ar[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar[rrrrrdd]ar[lllldd]&&Xtimes Ztimes Tar[ld]ar[llllldd]ar[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&Ytimes Ztimes Tar[lllld]ar[d]ar[rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T\
}
$$
end{document}
and I have an issue: the first one is that the diagram doesn't fit the page, and the right side of the page won't display in the created pdf. Besides, I want to color some specific arrow
diagrams xymatrix
New contributor
add a comment |
I have this diagram
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
$$
&&xymatrix{
&&&&&Xtimes Ytimes Ztimes Tar[ld]ar[rd]ar[ld]ar[lllldd]ar[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar[rrrrrdd]ar[lllldd]&&Xtimes Ztimes Tar[ld]ar[llllldd]ar[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&Ytimes Ztimes Tar[lllld]ar[d]ar[rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T\
}
$$
end{document}
and I have an issue: the first one is that the diagram doesn't fit the page, and the right side of the page won't display in the created pdf. Besides, I want to color some specific arrow
diagrams xymatrix
New contributor
1
Welcome to TeX S.E. ! Please edit your MWE : put four spaces at the beginning of each line and, above all, make it fully compiliable. A simple copy paste should be sufficient, we should'nt have to add a preamble, especially since you are using custom package.
– sztruks
1 hour ago
thanks @sztruks for the comment. Do you mean I should add someusepackage{ xymatrix}
?
– user2478159
1 hour ago
Yes you should, and all thedocumentclass
,begin{document}
lines and so on.
– sztruks
1 hour ago
@sztruks ok I added the right header. Thanks for help
– user2478159
52 mins ago
add a comment |
I have this diagram
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
$$
&&xymatrix{
&&&&&Xtimes Ytimes Ztimes Tar[ld]ar[rd]ar[ld]ar[lllldd]ar[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar[rrrrrdd]ar[lllldd]&&Xtimes Ztimes Tar[ld]ar[llllldd]ar[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&Ytimes Ztimes Tar[lllld]ar[d]ar[rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T\
}
$$
end{document}
and I have an issue: the first one is that the diagram doesn't fit the page, and the right side of the page won't display in the created pdf. Besides, I want to color some specific arrow
diagrams xymatrix
New contributor
I have this diagram
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
$$
&&xymatrix{
&&&&&Xtimes Ytimes Ztimes Tar[ld]ar[rd]ar[ld]ar[lllldd]ar[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar[rrrrrdd]ar[lllldd]&&Xtimes Ztimes Tar[ld]ar[llllldd]ar[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&Ytimes Ztimes Tar[lllld]ar[d]ar[rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T\
}
$$
end{document}
and I have an issue: the first one is that the diagram doesn't fit the page, and the right side of the page won't display in the created pdf. Besides, I want to color some specific arrow
diagrams xymatrix
diagrams xymatrix
New contributor
New contributor
edited 53 mins ago
New contributor
asked 1 hour ago
user2478159
233
233
New contributor
New contributor
1
Welcome to TeX S.E. ! Please edit your MWE : put four spaces at the beginning of each line and, above all, make it fully compiliable. A simple copy paste should be sufficient, we should'nt have to add a preamble, especially since you are using custom package.
– sztruks
1 hour ago
thanks @sztruks for the comment. Do you mean I should add someusepackage{ xymatrix}
?
– user2478159
1 hour ago
Yes you should, and all thedocumentclass
,begin{document}
lines and so on.
– sztruks
1 hour ago
@sztruks ok I added the right header. Thanks for help
– user2478159
52 mins ago
add a comment |
1
Welcome to TeX S.E. ! Please edit your MWE : put four spaces at the beginning of each line and, above all, make it fully compiliable. A simple copy paste should be sufficient, we should'nt have to add a preamble, especially since you are using custom package.
– sztruks
1 hour ago
thanks @sztruks for the comment. Do you mean I should add someusepackage{ xymatrix}
?
– user2478159
1 hour ago
Yes you should, and all thedocumentclass
,begin{document}
lines and so on.
– sztruks
1 hour ago
@sztruks ok I added the right header. Thanks for help
– user2478159
52 mins ago
1
1
Welcome to TeX S.E. ! Please edit your MWE : put four spaces at the beginning of each line and, above all, make it fully compiliable. A simple copy paste should be sufficient, we should'nt have to add a preamble, especially since you are using custom package.
– sztruks
1 hour ago
Welcome to TeX S.E. ! Please edit your MWE : put four spaces at the beginning of each line and, above all, make it fully compiliable. A simple copy paste should be sufficient, we should'nt have to add a preamble, especially since you are using custom package.
– sztruks
1 hour ago
thanks @sztruks for the comment. Do you mean I should add some
usepackage{ xymatrix}
?– user2478159
1 hour ago
thanks @sztruks for the comment. Do you mean I should add some
usepackage{ xymatrix}
?– user2478159
1 hour ago
Yes you should, and all the
documentclass
, begin{document}
lines and so on.– sztruks
1 hour ago
Yes you should, and all the
documentclass
, begin{document}
lines and so on.– sztruks
1 hour ago
@sztruks ok I added the right header. Thanks for help
– user2478159
52 mins ago
@sztruks ok I added the right header. Thanks for help
– user2478159
52 mins ago
add a comment |
1 Answer
1
active
oldest
votes
I'd use bending arrows:
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
[
xymatrix@C-2.5pc@R+2pc{
&&&&&Xtimes Ytimes Ztimes Tar[ld] ar@[red][rd]
ar@/_3pc/[lllldd]ar@/^3pc/[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar@/^1pc/[rrrrrdd]ar@/_3pc/[lllldd]&&
Xtimes Ztimes Tar[ld]ar@/_1pc/[llllldd]ar@/^3pc/[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&
Ytimes Ztimes Tar[lllld]ar[d]ar@[red][rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T
}
]
end{document}
I also colored a couple of arrows, just to show how it can be done.
I removed the duplicate ar[ld]
from the first row.
Similarly, with tikz-cd
:
documentclass{article}
usepackage{amsmath}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[column sep=-0.6em,row sep=huge]
&&& Xtimes Ytimes Ztimes Tarrow[ld] arrow[rd,color=red]
arrow[lldd,bend right=40] arrow[rrdd,bend left=40]
\
&& Xtimes Ytimes T arrow[rd] arrow[lldd,bend right=40] arrow[rrrdd,bend left]
&& Xtimes Ztimes T arrow[ld] arrow[llldd,bend right] arrow[rrdd,bend left=40]
\
& Xtimes Ytimes Z arrow[ld] arrow[d] ar[rrd]
&& Xtimes T
&& Ytimes Ztimes Tarrow[lld] arrow[d] arrow[rd,color=red]
\
Xtimes Y & Xtimes Z && Ytimes Z && Ytimes T& Ztimes T
end{tikzcd}
]
end{document}
thank you very much !
– user2478159
54 mins ago
1
@user2478159 You're welcome. I added thetikz-cd
version. You have a duplicatear[ld]
arrow in your code (first row). Never use$$
in LaTeX.
– egreg
32 mins 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
});
}
});
user2478159 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f468013%2freshaping-a-commutative-diagram%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'd use bending arrows:
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
[
xymatrix@C-2.5pc@R+2pc{
&&&&&Xtimes Ytimes Ztimes Tar[ld] ar@[red][rd]
ar@/_3pc/[lllldd]ar@/^3pc/[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar@/^1pc/[rrrrrdd]ar@/_3pc/[lllldd]&&
Xtimes Ztimes Tar[ld]ar@/_1pc/[llllldd]ar@/^3pc/[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&
Ytimes Ztimes Tar[lllld]ar[d]ar@[red][rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T
}
]
end{document}
I also colored a couple of arrows, just to show how it can be done.
I removed the duplicate ar[ld]
from the first row.
Similarly, with tikz-cd
:
documentclass{article}
usepackage{amsmath}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[column sep=-0.6em,row sep=huge]
&&& Xtimes Ytimes Ztimes Tarrow[ld] arrow[rd,color=red]
arrow[lldd,bend right=40] arrow[rrdd,bend left=40]
\
&& Xtimes Ytimes T arrow[rd] arrow[lldd,bend right=40] arrow[rrrdd,bend left]
&& Xtimes Ztimes T arrow[ld] arrow[llldd,bend right] arrow[rrdd,bend left=40]
\
& Xtimes Ytimes Z arrow[ld] arrow[d] ar[rrd]
&& Xtimes T
&& Ytimes Ztimes Tarrow[lld] arrow[d] arrow[rd,color=red]
\
Xtimes Y & Xtimes Z && Ytimes Z && Ytimes T& Ztimes T
end{tikzcd}
]
end{document}
thank you very much !
– user2478159
54 mins ago
1
@user2478159 You're welcome. I added thetikz-cd
version. You have a duplicatear[ld]
arrow in your code (first row). Never use$$
in LaTeX.
– egreg
32 mins ago
add a comment |
I'd use bending arrows:
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
[
xymatrix@C-2.5pc@R+2pc{
&&&&&Xtimes Ytimes Ztimes Tar[ld] ar@[red][rd]
ar@/_3pc/[lllldd]ar@/^3pc/[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar@/^1pc/[rrrrrdd]ar@/_3pc/[lllldd]&&
Xtimes Ztimes Tar[ld]ar@/_1pc/[llllldd]ar@/^3pc/[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&
Ytimes Ztimes Tar[lllld]ar[d]ar@[red][rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T
}
]
end{document}
I also colored a couple of arrows, just to show how it can be done.
I removed the duplicate ar[ld]
from the first row.
Similarly, with tikz-cd
:
documentclass{article}
usepackage{amsmath}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[column sep=-0.6em,row sep=huge]
&&& Xtimes Ytimes Ztimes Tarrow[ld] arrow[rd,color=red]
arrow[lldd,bend right=40] arrow[rrdd,bend left=40]
\
&& Xtimes Ytimes T arrow[rd] arrow[lldd,bend right=40] arrow[rrrdd,bend left]
&& Xtimes Ztimes T arrow[ld] arrow[llldd,bend right] arrow[rrdd,bend left=40]
\
& Xtimes Ytimes Z arrow[ld] arrow[d] ar[rrd]
&& Xtimes T
&& Ytimes Ztimes Tarrow[lld] arrow[d] arrow[rd,color=red]
\
Xtimes Y & Xtimes Z && Ytimes Z && Ytimes T& Ztimes T
end{tikzcd}
]
end{document}
thank you very much !
– user2478159
54 mins ago
1
@user2478159 You're welcome. I added thetikz-cd
version. You have a duplicatear[ld]
arrow in your code (first row). Never use$$
in LaTeX.
– egreg
32 mins ago
add a comment |
I'd use bending arrows:
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
[
xymatrix@C-2.5pc@R+2pc{
&&&&&Xtimes Ytimes Ztimes Tar[ld] ar@[red][rd]
ar@/_3pc/[lllldd]ar@/^3pc/[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar@/^1pc/[rrrrrdd]ar@/_3pc/[lllldd]&&
Xtimes Ztimes Tar[ld]ar@/_1pc/[llllldd]ar@/^3pc/[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&
Ytimes Ztimes Tar[lllld]ar[d]ar@[red][rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T
}
]
end{document}
I also colored a couple of arrows, just to show how it can be done.
I removed the duplicate ar[ld]
from the first row.
Similarly, with tikz-cd
:
documentclass{article}
usepackage{amsmath}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[column sep=-0.6em,row sep=huge]
&&& Xtimes Ytimes Ztimes Tarrow[ld] arrow[rd,color=red]
arrow[lldd,bend right=40] arrow[rrdd,bend left=40]
\
&& Xtimes Ytimes T arrow[rd] arrow[lldd,bend right=40] arrow[rrrdd,bend left]
&& Xtimes Ztimes T arrow[ld] arrow[llldd,bend right] arrow[rrdd,bend left=40]
\
& Xtimes Ytimes Z arrow[ld] arrow[d] ar[rrd]
&& Xtimes T
&& Ytimes Ztimes Tarrow[lld] arrow[d] arrow[rd,color=red]
\
Xtimes Y & Xtimes Z && Ytimes Z && Ytimes T& Ztimes T
end{tikzcd}
]
end{document}
I'd use bending arrows:
documentclass{article}
usepackage{amsmath}
usepackage{xcolor}
usepackage[all,cmtip,color]{xy}
begin{document}
[
xymatrix@C-2.5pc@R+2pc{
&&&&&Xtimes Ytimes Ztimes Tar[ld] ar@[red][rd]
ar@/_3pc/[lllldd]ar@/^3pc/[rrrrdd]&&&&&\
&&&&Xtimes Ytimes Tar[rd]ar@/^1pc/[rrrrrdd]ar@/_3pc/[lllldd]&&
Xtimes Ztimes Tar[ld]ar@/_1pc/[llllldd]ar@/^3pc/[rrrrdd]&&&&\
&Xtimes Ytimes Zar[ld]ar[d]ar[rrrrd]&&&&Xtimes T&&&&
Ytimes Ztimes Tar[lllld]ar[d]ar@[red][rd]&\
Xtimes Y&Xtimes Z&&&&Ytimes Z&&&&Ytimes T&Ztimes T
}
]
end{document}
I also colored a couple of arrows, just to show how it can be done.
I removed the duplicate ar[ld]
from the first row.
Similarly, with tikz-cd
:
documentclass{article}
usepackage{amsmath}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[column sep=-0.6em,row sep=huge]
&&& Xtimes Ytimes Ztimes Tarrow[ld] arrow[rd,color=red]
arrow[lldd,bend right=40] arrow[rrdd,bend left=40]
\
&& Xtimes Ytimes T arrow[rd] arrow[lldd,bend right=40] arrow[rrrdd,bend left]
&& Xtimes Ztimes T arrow[ld] arrow[llldd,bend right] arrow[rrdd,bend left=40]
\
& Xtimes Ytimes Z arrow[ld] arrow[d] ar[rrd]
&& Xtimes T
&& Ytimes Ztimes Tarrow[lld] arrow[d] arrow[rd,color=red]
\
Xtimes Y & Xtimes Z && Ytimes Z && Ytimes T& Ztimes T
end{tikzcd}
]
end{document}
edited 33 mins ago
answered 1 hour ago
egreg
708k8618823164
708k8618823164
thank you very much !
– user2478159
54 mins ago
1
@user2478159 You're welcome. I added thetikz-cd
version. You have a duplicatear[ld]
arrow in your code (first row). Never use$$
in LaTeX.
– egreg
32 mins ago
add a comment |
thank you very much !
– user2478159
54 mins ago
1
@user2478159 You're welcome. I added thetikz-cd
version. You have a duplicatear[ld]
arrow in your code (first row). Never use$$
in LaTeX.
– egreg
32 mins ago
thank you very much !
– user2478159
54 mins ago
thank you very much !
– user2478159
54 mins ago
1
1
@user2478159 You're welcome. I added the
tikz-cd
version. You have a duplicate ar[ld]
arrow in your code (first row). Never use $$
in LaTeX.– egreg
32 mins ago
@user2478159 You're welcome. I added the
tikz-cd
version. You have a duplicate ar[ld]
arrow in your code (first row). Never use $$
in LaTeX.– egreg
32 mins ago
add a comment |
user2478159 is a new contributor. Be nice, and check out our Code of Conduct.
user2478159 is a new contributor. Be nice, and check out our Code of Conduct.
user2478159 is a new contributor. Be nice, and check out our Code of Conduct.
user2478159 is a new contributor. Be nice, and check out our Code of Conduct.
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f468013%2freshaping-a-commutative-diagram%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Welcome to TeX S.E. ! Please edit your MWE : put four spaces at the beginning of each line and, above all, make it fully compiliable. A simple copy paste should be sufficient, we should'nt have to add a preamble, especially since you are using custom package.
– sztruks
1 hour ago
thanks @sztruks for the comment. Do you mean I should add some
usepackage{ xymatrix}
?– user2478159
1 hour ago
Yes you should, and all the
documentclass
,begin{document}
lines and so on.– sztruks
1 hour ago
@sztruks ok I added the right header. Thanks for help
– user2478159
52 mins ago