How to arrange commutative diagrams in displayed form
I would like to arrange the following three diagrams
[
begin{tikzcd}
Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
]
[
begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
]
[
begin{tikzcd}
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
]
as they are arranged here:
What's the best way to do it?
tikz-cd commutative-diagrams
add a comment |
I would like to arrange the following three diagrams
[
begin{tikzcd}
Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
]
[
begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
]
[
begin{tikzcd}
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
]
as they are arranged here:
What's the best way to do it?
tikz-cd commutative-diagrams
add a comment |
I would like to arrange the following three diagrams
[
begin{tikzcd}
Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
]
[
begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
]
[
begin{tikzcd}
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
]
as they are arranged here:
What's the best way to do it?
tikz-cd commutative-diagrams
I would like to arrange the following three diagrams
[
begin{tikzcd}
Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
]
[
begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
]
[
begin{tikzcd}
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
]
as they are arranged here:
What's the best way to do it?
tikz-cd commutative-diagrams
tikz-cd commutative-diagrams
edited Feb 7 at 11:52
Phelype Oleinik
23.3k54585
23.3k54585
asked Feb 7 at 11:51
VladimirVladimir
984
984
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I'd use an aligned
:
documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=huge]
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
qquadqquad
begin{aligned}
& begin{tikzcd}
phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
\
& begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
end{aligned}
]
end{document}
With phantom{p}
in the top right diagram, we ensure similarity with the bottom one.
Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]
– Vladimir
Feb 7 at 17:36
1
@Vladimir You can adjust the bottom diagram by doingbegin{tikzcd}[column sep=6em]
(adjust the length to suit).
– egreg
Feb 7 at 18:29
add a comment |
I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after
&to make the gap between the left and the right two diagrams a bit larger. And, of course,
mathbb{E}and
mathbb{B}` are automatically aligned with the diagrams on the right.
documentclass{article}
usepackage{amsmath,amsfonts}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
&[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
mathbb{E}arrow[ddd, "p"] & & & \[-2em]
& & Xarrow[r, "f"] & Y\
& pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
mathbb{B} & & & \[-2em]
& & Iarrow[r, "u"] & J\
end{tikzcd}
]
end{document}
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%2f473745%2fhow-to-arrange-commutative-diagrams-in-displayed-form%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'd use an aligned
:
documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=huge]
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
qquadqquad
begin{aligned}
& begin{tikzcd}
phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
\
& begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
end{aligned}
]
end{document}
With phantom{p}
in the top right diagram, we ensure similarity with the bottom one.
Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]
– Vladimir
Feb 7 at 17:36
1
@Vladimir You can adjust the bottom diagram by doingbegin{tikzcd}[column sep=6em]
(adjust the length to suit).
– egreg
Feb 7 at 18:29
add a comment |
I'd use an aligned
:
documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=huge]
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
qquadqquad
begin{aligned}
& begin{tikzcd}
phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
\
& begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
end{aligned}
]
end{document}
With phantom{p}
in the top right diagram, we ensure similarity with the bottom one.
Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]
– Vladimir
Feb 7 at 17:36
1
@Vladimir You can adjust the bottom diagram by doingbegin{tikzcd}[column sep=6em]
(adjust the length to suit).
– egreg
Feb 7 at 18:29
add a comment |
I'd use an aligned
:
documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=huge]
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
qquadqquad
begin{aligned}
& begin{tikzcd}
phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
\
& begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
end{aligned}
]
end{document}
With phantom{p}
in the top right diagram, we ensure similarity with the bottom one.
I'd use an aligned
:
documentclass{article}
usepackage{amsmath,amssymb,tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=huge]
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
qquadqquad
begin{aligned}
& begin{tikzcd}
phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
\
& begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
end{aligned}
]
end{document}
With phantom{p}
in the top right diagram, we ensure similarity with the bottom one.
answered Feb 7 at 11:58
egregegreg
719k8719083206
719k8719083206
Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]
– Vladimir
Feb 7 at 17:36
1
@Vladimir You can adjust the bottom diagram by doingbegin{tikzcd}[column sep=6em]
(adjust the length to suit).
– egreg
Feb 7 at 18:29
add a comment |
Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]
– Vladimir
Feb 7 at 17:36
1
@Vladimir You can adjust the bottom diagram by doingbegin{tikzcd}[column sep=6em]
(adjust the length to suit).
– egreg
Feb 7 at 18:29
Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]
– Vladimir
Feb 7 at 17:36
Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]
– Vladimir
Feb 7 at 17:36
1
1
@Vladimir You can adjust the bottom diagram by doing
begin{tikzcd}[column sep=6em]
(adjust the length to suit).– egreg
Feb 7 at 18:29
@Vladimir You can adjust the bottom diagram by doing
begin{tikzcd}[column sep=6em]
(adjust the length to suit).– egreg
Feb 7 at 18:29
add a comment |
I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after
&to make the gap between the left and the right two diagrams a bit larger. And, of course,
mathbb{E}and
mathbb{B}` are automatically aligned with the diagrams on the right.
documentclass{article}
usepackage{amsmath,amsfonts}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
&[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
mathbb{E}arrow[ddd, "p"] & & & \[-2em]
& & Xarrow[r, "f"] & Y\
& pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
mathbb{B} & & & \[-2em]
& & Iarrow[r, "u"] & J\
end{tikzcd}
]
end{document}
add a comment |
I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after
&to make the gap between the left and the right two diagrams a bit larger. And, of course,
mathbb{E}and
mathbb{B}` are automatically aligned with the diagrams on the right.
documentclass{article}
usepackage{amsmath,amsfonts}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
&[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
mathbb{E}arrow[ddd, "p"] & & & \[-2em]
& & Xarrow[r, "f"] & Y\
& pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
mathbb{B} & & & \[-2em]
& & Iarrow[r, "u"] & J\
end{tikzcd}
]
end{document}
add a comment |
I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after
&to make the gap between the left and the right two diagrams a bit larger. And, of course,
mathbb{E}and
mathbb{B}` are automatically aligned with the diagrams on the right.
documentclass{article}
usepackage{amsmath,amsfonts}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
&[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
mathbb{E}arrow[ddd, "p"] & & & \[-2em]
& & Xarrow[r, "f"] & Y\
& pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
mathbb{B} & & & \[-2em]
& & Iarrow[r, "u"] & J\
end{tikzcd}
]
end{document}
I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after
&to make the gap between the left and the right two diagrams a bit larger. And, of course,
mathbb{E}and
mathbb{B}` are automatically aligned with the diagrams on the right.
documentclass{article}
usepackage{amsmath,amsfonts}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
&[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
mathbb{E}arrow[ddd, "p"] & & & \[-2em]
& & Xarrow[r, "f"] & Y\
& pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
mathbb{B} & & & \[-2em]
& & Iarrow[r, "u"] & J\
end{tikzcd}
]
end{document}
edited Feb 8 at 16:54
answered Feb 7 at 19:49
marmotmarmot
100k4115222
100k4115222
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473745%2fhow-to-arrange-commutative-diagrams-in-displayed-form%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