Making diagrams
I'm interested in making a type diagram:
I have the following commands:
begin{equation*}
xymatrix@C+1em@R+1em{
A ar[r]^-{f} ar[d]_-{g} & B \
C ar[ur]_-{h}}
end{equation*}
Who provided me with:
What should I change to do the first diagram?
Thanks
diagrams
add a comment |
I'm interested in making a type diagram:
I have the following commands:
begin{equation*}
xymatrix@C+1em@R+1em{
A ar[r]^-{f} ar[d]_-{g} & B \
C ar[ur]_-{h}}
end{equation*}
Who provided me with:
What should I change to do the first diagram?
Thanks
diagrams
4
Hint: you need 3 columns, 2 rows.C
should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
– Sigur
Nov 16 '18 at 17:53
1
Why not usetikz-cd
?
– murray
Nov 16 '18 at 20:39
add a comment |
I'm interested in making a type diagram:
I have the following commands:
begin{equation*}
xymatrix@C+1em@R+1em{
A ar[r]^-{f} ar[d]_-{g} & B \
C ar[ur]_-{h}}
end{equation*}
Who provided me with:
What should I change to do the first diagram?
Thanks
diagrams
I'm interested in making a type diagram:
I have the following commands:
begin{equation*}
xymatrix@C+1em@R+1em{
A ar[r]^-{f} ar[d]_-{g} & B \
C ar[ur]_-{h}}
end{equation*}
Who provided me with:
What should I change to do the first diagram?
Thanks
diagrams
diagrams
edited Nov 16 '18 at 17:54
Sigur
26.3k457142
26.3k457142
asked Nov 16 '18 at 17:51
ManoelManoel
1434
1434
4
Hint: you need 3 columns, 2 rows.C
should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
– Sigur
Nov 16 '18 at 17:53
1
Why not usetikz-cd
?
– murray
Nov 16 '18 at 20:39
add a comment |
4
Hint: you need 3 columns, 2 rows.C
should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
– Sigur
Nov 16 '18 at 17:53
1
Why not usetikz-cd
?
– murray
Nov 16 '18 at 20:39
4
4
Hint: you need 3 columns, 2 rows.
C
should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.– Sigur
Nov 16 '18 at 17:53
Hint: you need 3 columns, 2 rows.
C
should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.– Sigur
Nov 16 '18 at 17:53
1
1
Why not use
tikz-cd
?– murray
Nov 16 '18 at 20:39
Why not use
tikz-cd
?– murray
Nov 16 '18 at 20:39
add a comment |
2 Answers
2
active
oldest
votes
Welcome to TeX.SE! If you are not insisting on xymatrix
, you could try
documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=4em]
A arrow[rr, "f"] arrow[rd, "g"swap]& & B\
& C arrow[ur, "h"swap] &
end{tikzcd}
]
end{document}
EDIT: switched to relativistic ;-) units, big thanks to @egreg.
I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
Nov 16 '18 at 18:29
@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
Nov 16 '18 at 18:30
1
I suggest using relative units such asem
orex
.
– egreg
Nov 16 '18 at 21:06
Sorry for the basic question, but isn't the relative unit convertible to cm for example in the end?
– Diaa
Nov 18 '18 at 6:00
add a comment |
Using the xymatrix
package you can see an example of little guide for this package: https://www.jmilne.org/not/Mxymatrix.pdf. I have created with this package, for your request, a simple code.
Picture with equilateral triangle.
documentclass[a4paper,12pt]{article}
usepackage[all]{xy}
begin{document}
xymatrix@C-=0.5cm{
A
ar@{->}[rr]^f ar@{->}[rd]_g & & B ar@{<-}[ld]^h\
&C&\
&&
}
end{document}
1
It is not necessary to use@{->}
since it is the standard arrow style.
– Sigur
Nov 17 '18 at 21:00
1
Why empty 3rd line in the second example?
– Sigur
Nov 17 '18 at 21:01
1
Although it is not wrong, it is not so natural to insert an arrow fromB
toC
with reversed tip at the starting point. It is easier to read the code if the arrow starts fromC
.
– Sigur
Nov 17 '18 at 21:11
I've done a lot of rehearsals reading the guide. And to have an equilateral triangle with no errors in the compilation I have inserted the third empty line and I must necessarily use@{->}
. I have tried to do my best, I can assure you.
– Sebastiano
Nov 17 '18 at 21:11
2
I don't know the difference between@C
and@C-
. Also, if you use column distance equal to half centimeter, you have to be sure that the diagonal arrows also have such length. There is@R
also.
– Sigur
Nov 17 '18 at 21:16
|
show 1 more 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%2f460349%2fmaking-diagrams%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
Welcome to TeX.SE! If you are not insisting on xymatrix
, you could try
documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=4em]
A arrow[rr, "f"] arrow[rd, "g"swap]& & B\
& C arrow[ur, "h"swap] &
end{tikzcd}
]
end{document}
EDIT: switched to relativistic ;-) units, big thanks to @egreg.
I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
Nov 16 '18 at 18:29
@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
Nov 16 '18 at 18:30
1
I suggest using relative units such asem
orex
.
– egreg
Nov 16 '18 at 21:06
Sorry for the basic question, but isn't the relative unit convertible to cm for example in the end?
– Diaa
Nov 18 '18 at 6:00
add a comment |
Welcome to TeX.SE! If you are not insisting on xymatrix
, you could try
documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=4em]
A arrow[rr, "f"] arrow[rd, "g"swap]& & B\
& C arrow[ur, "h"swap] &
end{tikzcd}
]
end{document}
EDIT: switched to relativistic ;-) units, big thanks to @egreg.
I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
Nov 16 '18 at 18:29
@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
Nov 16 '18 at 18:30
1
I suggest using relative units such asem
orex
.
– egreg
Nov 16 '18 at 21:06
Sorry for the basic question, but isn't the relative unit convertible to cm for example in the end?
– Diaa
Nov 18 '18 at 6:00
add a comment |
Welcome to TeX.SE! If you are not insisting on xymatrix
, you could try
documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=4em]
A arrow[rr, "f"] arrow[rd, "g"swap]& & B\
& C arrow[ur, "h"swap] &
end{tikzcd}
]
end{document}
EDIT: switched to relativistic ;-) units, big thanks to @egreg.
Welcome to TeX.SE! If you are not insisting on xymatrix
, you could try
documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[row sep=4em]
A arrow[rr, "f"] arrow[rd, "g"swap]& & B\
& C arrow[ur, "h"swap] &
end{tikzcd}
]
end{document}
EDIT: switched to relativistic ;-) units, big thanks to @egreg.
edited Nov 16 '18 at 21:09
answered Nov 16 '18 at 17:56
marmotmarmot
118k6152286
118k6152286
I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
Nov 16 '18 at 18:29
@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
Nov 16 '18 at 18:30
1
I suggest using relative units such asem
orex
.
– egreg
Nov 16 '18 at 21:06
Sorry for the basic question, but isn't the relative unit convertible to cm for example in the end?
– Diaa
Nov 18 '18 at 6:00
add a comment |
I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
Nov 16 '18 at 18:29
@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
Nov 16 '18 at 18:30
1
I suggest using relative units such asem
orex
.
– egreg
Nov 16 '18 at 21:06
Sorry for the basic question, but isn't the relative unit convertible to cm for example in the end?
– Diaa
Nov 18 '18 at 6:00
I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
Nov 16 '18 at 18:29
I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
Nov 16 '18 at 18:29
@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
Nov 16 '18 at 18:30
@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
Nov 16 '18 at 18:30
1
1
I suggest using relative units such as
em
or ex
.– egreg
Nov 16 '18 at 21:06
I suggest using relative units such as
em
or ex
.– egreg
Nov 16 '18 at 21:06
Sorry for the basic question, but isn't the relative unit convertible to cm for example in the end?
– Diaa
Nov 18 '18 at 6:00
Sorry for the basic question, but isn't the relative unit convertible to cm for example in the end?
– Diaa
Nov 18 '18 at 6:00
add a comment |
Using the xymatrix
package you can see an example of little guide for this package: https://www.jmilne.org/not/Mxymatrix.pdf. I have created with this package, for your request, a simple code.
Picture with equilateral triangle.
documentclass[a4paper,12pt]{article}
usepackage[all]{xy}
begin{document}
xymatrix@C-=0.5cm{
A
ar@{->}[rr]^f ar@{->}[rd]_g & & B ar@{<-}[ld]^h\
&C&\
&&
}
end{document}
1
It is not necessary to use@{->}
since it is the standard arrow style.
– Sigur
Nov 17 '18 at 21:00
1
Why empty 3rd line in the second example?
– Sigur
Nov 17 '18 at 21:01
1
Although it is not wrong, it is not so natural to insert an arrow fromB
toC
with reversed tip at the starting point. It is easier to read the code if the arrow starts fromC
.
– Sigur
Nov 17 '18 at 21:11
I've done a lot of rehearsals reading the guide. And to have an equilateral triangle with no errors in the compilation I have inserted the third empty line and I must necessarily use@{->}
. I have tried to do my best, I can assure you.
– Sebastiano
Nov 17 '18 at 21:11
2
I don't know the difference between@C
and@C-
. Also, if you use column distance equal to half centimeter, you have to be sure that the diagonal arrows also have such length. There is@R
also.
– Sigur
Nov 17 '18 at 21:16
|
show 1 more comment
Using the xymatrix
package you can see an example of little guide for this package: https://www.jmilne.org/not/Mxymatrix.pdf. I have created with this package, for your request, a simple code.
Picture with equilateral triangle.
documentclass[a4paper,12pt]{article}
usepackage[all]{xy}
begin{document}
xymatrix@C-=0.5cm{
A
ar@{->}[rr]^f ar@{->}[rd]_g & & B ar@{<-}[ld]^h\
&C&\
&&
}
end{document}
1
It is not necessary to use@{->}
since it is the standard arrow style.
– Sigur
Nov 17 '18 at 21:00
1
Why empty 3rd line in the second example?
– Sigur
Nov 17 '18 at 21:01
1
Although it is not wrong, it is not so natural to insert an arrow fromB
toC
with reversed tip at the starting point. It is easier to read the code if the arrow starts fromC
.
– Sigur
Nov 17 '18 at 21:11
I've done a lot of rehearsals reading the guide. And to have an equilateral triangle with no errors in the compilation I have inserted the third empty line and I must necessarily use@{->}
. I have tried to do my best, I can assure you.
– Sebastiano
Nov 17 '18 at 21:11
2
I don't know the difference between@C
and@C-
. Also, if you use column distance equal to half centimeter, you have to be sure that the diagonal arrows also have such length. There is@R
also.
– Sigur
Nov 17 '18 at 21:16
|
show 1 more comment
Using the xymatrix
package you can see an example of little guide for this package: https://www.jmilne.org/not/Mxymatrix.pdf. I have created with this package, for your request, a simple code.
Picture with equilateral triangle.
documentclass[a4paper,12pt]{article}
usepackage[all]{xy}
begin{document}
xymatrix@C-=0.5cm{
A
ar@{->}[rr]^f ar@{->}[rd]_g & & B ar@{<-}[ld]^h\
&C&\
&&
}
end{document}
Using the xymatrix
package you can see an example of little guide for this package: https://www.jmilne.org/not/Mxymatrix.pdf. I have created with this package, for your request, a simple code.
Picture with equilateral triangle.
documentclass[a4paper,12pt]{article}
usepackage[all]{xy}
begin{document}
xymatrix@C-=0.5cm{
A
ar@{->}[rr]^f ar@{->}[rd]_g & & B ar@{<-}[ld]^h\
&C&\
&&
}
end{document}
edited Nov 17 '18 at 21:08
answered Nov 17 '18 at 13:00
SebastianoSebastiano
11.3k42266
11.3k42266
1
It is not necessary to use@{->}
since it is the standard arrow style.
– Sigur
Nov 17 '18 at 21:00
1
Why empty 3rd line in the second example?
– Sigur
Nov 17 '18 at 21:01
1
Although it is not wrong, it is not so natural to insert an arrow fromB
toC
with reversed tip at the starting point. It is easier to read the code if the arrow starts fromC
.
– Sigur
Nov 17 '18 at 21:11
I've done a lot of rehearsals reading the guide. And to have an equilateral triangle with no errors in the compilation I have inserted the third empty line and I must necessarily use@{->}
. I have tried to do my best, I can assure you.
– Sebastiano
Nov 17 '18 at 21:11
2
I don't know the difference between@C
and@C-
. Also, if you use column distance equal to half centimeter, you have to be sure that the diagonal arrows also have such length. There is@R
also.
– Sigur
Nov 17 '18 at 21:16
|
show 1 more comment
1
It is not necessary to use@{->}
since it is the standard arrow style.
– Sigur
Nov 17 '18 at 21:00
1
Why empty 3rd line in the second example?
– Sigur
Nov 17 '18 at 21:01
1
Although it is not wrong, it is not so natural to insert an arrow fromB
toC
with reversed tip at the starting point. It is easier to read the code if the arrow starts fromC
.
– Sigur
Nov 17 '18 at 21:11
I've done a lot of rehearsals reading the guide. And to have an equilateral triangle with no errors in the compilation I have inserted the third empty line and I must necessarily use@{->}
. I have tried to do my best, I can assure you.
– Sebastiano
Nov 17 '18 at 21:11
2
I don't know the difference between@C
and@C-
. Also, if you use column distance equal to half centimeter, you have to be sure that the diagonal arrows also have such length. There is@R
also.
– Sigur
Nov 17 '18 at 21:16
1
1
It is not necessary to use
@{->}
since it is the standard arrow style.– Sigur
Nov 17 '18 at 21:00
It is not necessary to use
@{->}
since it is the standard arrow style.– Sigur
Nov 17 '18 at 21:00
1
1
Why empty 3rd line in the second example?
– Sigur
Nov 17 '18 at 21:01
Why empty 3rd line in the second example?
– Sigur
Nov 17 '18 at 21:01
1
1
Although it is not wrong, it is not so natural to insert an arrow from
B
to C
with reversed tip at the starting point. It is easier to read the code if the arrow starts from C
.– Sigur
Nov 17 '18 at 21:11
Although it is not wrong, it is not so natural to insert an arrow from
B
to C
with reversed tip at the starting point. It is easier to read the code if the arrow starts from C
.– Sigur
Nov 17 '18 at 21:11
I've done a lot of rehearsals reading the guide. And to have an equilateral triangle with no errors in the compilation I have inserted the third empty line and I must necessarily use
@{->}
. I have tried to do my best, I can assure you.– Sebastiano
Nov 17 '18 at 21:11
I've done a lot of rehearsals reading the guide. And to have an equilateral triangle with no errors in the compilation I have inserted the third empty line and I must necessarily use
@{->}
. I have tried to do my best, I can assure you.– Sebastiano
Nov 17 '18 at 21:11
2
2
I don't know the difference between
@C
and @C-
. Also, if you use column distance equal to half centimeter, you have to be sure that the diagonal arrows also have such length. There is @R
also.– Sigur
Nov 17 '18 at 21:16
I don't know the difference between
@C
and @C-
. Also, if you use column distance equal to half centimeter, you have to be sure that the diagonal arrows also have such length. There is @R
also.– Sigur
Nov 17 '18 at 21:16
|
show 1 more 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%2f460349%2fmaking-diagrams%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
4
Hint: you need 3 columns, 2 rows.
C
should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.– Sigur
Nov 16 '18 at 17:53
1
Why not use
tikz-cd
?– murray
Nov 16 '18 at 20:39