Making diagrams











up vote
8
down vote

favorite












I'm interested in making a type diagram:



enter image description here



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:
enter image description here



What should I change to do the first diagram?



Thanks










share|improve this question









New contributor




Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3




    Hint: you need 3 columns, 2 rows. C should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
    – Sigur
    yesterday








  • 1




    Why not use tikz-cd?
    – murray
    yesterday















up vote
8
down vote

favorite












I'm interested in making a type diagram:



enter image description here



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:
enter image description here



What should I change to do the first diagram?



Thanks










share|improve this question









New contributor




Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3




    Hint: you need 3 columns, 2 rows. C should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
    – Sigur
    yesterday








  • 1




    Why not use tikz-cd?
    – murray
    yesterday













up vote
8
down vote

favorite









up vote
8
down vote

favorite











I'm interested in making a type diagram:



enter image description here



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:
enter image description here



What should I change to do the first diagram?



Thanks










share|improve this question









New contributor




Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm interested in making a type diagram:



enter image description here



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:
enter image description here



What should I change to do the first diagram?



Thanks







diagrams






share|improve this question









New contributor




Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









Sigur

23k353134




23k353134






New contributor




Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Manoel

1434




1434




New contributor




Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Manoel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 3




    Hint: you need 3 columns, 2 rows. C should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
    – Sigur
    yesterday








  • 1




    Why not use tikz-cd?
    – murray
    yesterday














  • 3




    Hint: you need 3 columns, 2 rows. C should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
    – Sigur
    yesterday








  • 1




    Why not use tikz-cd?
    – murray
    yesterday








3




3




Hint: you need 3 columns, 2 rows. C should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
– Sigur
yesterday






Hint: you need 3 columns, 2 rows. C should be in the 2nd row, 2nd column. Then, change the arrow directions accordingly.
– Sigur
yesterday






1




1




Why not use tikz-cd?
– murray
yesterday




Why not use tikz-cd?
– murray
yesterday










2 Answers
2






active

oldest

votes

















up vote
12
down vote



accepted










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}


enter image description here



EDIT: switched to relativistic ;-) units, big thanks to @egreg.






share|improve this answer























  • I'm not a fan of absolute length such as 1.2cm, for these cases.
    – egreg
    yesterday










  • @egreg Morally I agree but do you really want to add an empty line instead?
    – marmot
    yesterday






  • 1




    I suggest using relative units such as em or ex.
    – egreg
    yesterday


















up vote
6
down vote













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.



enter image description here



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}





share|improve this answer



















  • 1




    It is not necessary to use @{->} since it is the standard arrow style.
    – Sigur
    5 hours ago






  • 1




    Why empty 3rd line in the second example?
    – Sigur
    5 hours ago






  • 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
    5 hours ago










  • 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
    5 hours ago








  • 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
    5 hours ago













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',
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
});


}
});






Manoel is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















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








up vote
12
down vote



accepted










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}


enter image description here



EDIT: switched to relativistic ;-) units, big thanks to @egreg.






share|improve this answer























  • I'm not a fan of absolute length such as 1.2cm, for these cases.
    – egreg
    yesterday










  • @egreg Morally I agree but do you really want to add an empty line instead?
    – marmot
    yesterday






  • 1




    I suggest using relative units such as em or ex.
    – egreg
    yesterday















up vote
12
down vote



accepted










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}


enter image description here



EDIT: switched to relativistic ;-) units, big thanks to @egreg.






share|improve this answer























  • I'm not a fan of absolute length such as 1.2cm, for these cases.
    – egreg
    yesterday










  • @egreg Morally I agree but do you really want to add an empty line instead?
    – marmot
    yesterday






  • 1




    I suggest using relative units such as em or ex.
    – egreg
    yesterday













up vote
12
down vote



accepted







up vote
12
down vote



accepted






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}


enter image description here



EDIT: switched to relativistic ;-) units, big thanks to @egreg.






share|improve this answer














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}


enter image description here



EDIT: switched to relativistic ;-) units, big thanks to @egreg.







share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday

























answered yesterday









marmot

75.7k486160




75.7k486160












  • I'm not a fan of absolute length such as 1.2cm, for these cases.
    – egreg
    yesterday










  • @egreg Morally I agree but do you really want to add an empty line instead?
    – marmot
    yesterday






  • 1




    I suggest using relative units such as em or ex.
    – egreg
    yesterday


















  • I'm not a fan of absolute length such as 1.2cm, for these cases.
    – egreg
    yesterday










  • @egreg Morally I agree but do you really want to add an empty line instead?
    – marmot
    yesterday






  • 1




    I suggest using relative units such as em or ex.
    – egreg
    yesterday
















I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
yesterday




I'm not a fan of absolute length such as 1.2cm, for these cases.
– egreg
yesterday












@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
yesterday




@egreg Morally I agree but do you really want to add an empty line instead?
– marmot
yesterday




1




1




I suggest using relative units such as em or ex.
– egreg
yesterday




I suggest using relative units such as em or ex.
– egreg
yesterday










up vote
6
down vote













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.



enter image description here



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}





share|improve this answer



















  • 1




    It is not necessary to use @{->} since it is the standard arrow style.
    – Sigur
    5 hours ago






  • 1




    Why empty 3rd line in the second example?
    – Sigur
    5 hours ago






  • 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
    5 hours ago










  • 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
    5 hours ago








  • 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
    5 hours ago

















up vote
6
down vote













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.



enter image description here



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}





share|improve this answer



















  • 1




    It is not necessary to use @{->} since it is the standard arrow style.
    – Sigur
    5 hours ago






  • 1




    Why empty 3rd line in the second example?
    – Sigur
    5 hours ago






  • 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
    5 hours ago










  • 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
    5 hours ago








  • 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
    5 hours ago















up vote
6
down vote










up vote
6
down vote









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.



enter image description here



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}





share|improve this answer














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.



enter image description here



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}






share|improve this answer














share|improve this answer



share|improve this answer








edited 5 hours ago

























answered 13 hours ago









Sebastiano

8,29541754




8,29541754








  • 1




    It is not necessary to use @{->} since it is the standard arrow style.
    – Sigur
    5 hours ago






  • 1




    Why empty 3rd line in the second example?
    – Sigur
    5 hours ago






  • 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
    5 hours ago










  • 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
    5 hours ago








  • 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
    5 hours ago
















  • 1




    It is not necessary to use @{->} since it is the standard arrow style.
    – Sigur
    5 hours ago






  • 1




    Why empty 3rd line in the second example?
    – Sigur
    5 hours ago






  • 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
    5 hours ago










  • 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
    5 hours ago








  • 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
    5 hours ago










1




1




It is not necessary to use @{->} since it is the standard arrow style.
– Sigur
5 hours ago




It is not necessary to use @{->} since it is the standard arrow style.
– Sigur
5 hours ago




1




1




Why empty 3rd line in the second example?
– Sigur
5 hours ago




Why empty 3rd line in the second example?
– Sigur
5 hours ago




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
5 hours ago




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
5 hours ago












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
5 hours ago






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
5 hours ago






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
5 hours ago






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
5 hours ago












Manoel is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Manoel is a new contributor. Be nice, and check out our Code of Conduct.













Manoel is a new contributor. Be nice, and check out our Code of Conduct.












Manoel is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














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





















































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

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

Origin of the phrase “under your belt”?