Tikz-cd arrow bending and loop for indicating that portion of diagram commutes











up vote
1
down vote

favorite












I am trying to get the arrow from $R$ to $R[x]$ to cooperate with me and go alongside the LHS of the picture.



Here is my MWE:



begin{tikzcd}
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] arrow["i", hook', bend right=135]{dd} & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}


I'd also like to know how to get the spiral that indicates that the diagram commutes inside the top left and bottom right triangles. See, for example, the below.



Desired result










share|improve this question
























  • Could you include a picture of the kind of figure you want to produce?
    – zyy
    Dec 4 at 17:38






  • 1




    I have made this edit for you, @zyy.
    – nick5435
    Dec 4 at 17:47










  • Thanks for adding the screen shot. I did not read the question carefully enough, sorry!
    – marmot
    Dec 4 at 18:11















up vote
1
down vote

favorite












I am trying to get the arrow from $R$ to $R[x]$ to cooperate with me and go alongside the LHS of the picture.



Here is my MWE:



begin{tikzcd}
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] arrow["i", hook', bend right=135]{dd} & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}


I'd also like to know how to get the spiral that indicates that the diagram commutes inside the top left and bottom right triangles. See, for example, the below.



Desired result










share|improve this question
























  • Could you include a picture of the kind of figure you want to produce?
    – zyy
    Dec 4 at 17:38






  • 1




    I have made this edit for you, @zyy.
    – nick5435
    Dec 4 at 17:47










  • Thanks for adding the screen shot. I did not read the question carefully enough, sorry!
    – marmot
    Dec 4 at 18:11













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am trying to get the arrow from $R$ to $R[x]$ to cooperate with me and go alongside the LHS of the picture.



Here is my MWE:



begin{tikzcd}
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] arrow["i", hook', bend right=135]{dd} & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}


I'd also like to know how to get the spiral that indicates that the diagram commutes inside the top left and bottom right triangles. See, for example, the below.



Desired result










share|improve this question















I am trying to get the arrow from $R$ to $R[x]$ to cooperate with me and go alongside the LHS of the picture.



Here is my MWE:



begin{tikzcd}
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] arrow["i", hook', bend right=135]{dd} & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}


I'd also like to know how to get the spiral that indicates that the diagram commutes inside the top left and bottom right triangles. See, for example, the below.



Desired result







tikz-cd commutative-diagrams






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 4 at 17:47

























asked Dec 4 at 17:17









nick5435

84




84












  • Could you include a picture of the kind of figure you want to produce?
    – zyy
    Dec 4 at 17:38






  • 1




    I have made this edit for you, @zyy.
    – nick5435
    Dec 4 at 17:47










  • Thanks for adding the screen shot. I did not read the question carefully enough, sorry!
    – marmot
    Dec 4 at 18:11


















  • Could you include a picture of the kind of figure you want to produce?
    – zyy
    Dec 4 at 17:38






  • 1




    I have made this edit for you, @zyy.
    – nick5435
    Dec 4 at 17:47










  • Thanks for adding the screen shot. I did not read the question carefully enough, sorry!
    – marmot
    Dec 4 at 18:11
















Could you include a picture of the kind of figure you want to produce?
– zyy
Dec 4 at 17:38




Could you include a picture of the kind of figure you want to produce?
– zyy
Dec 4 at 17:38




1




1




I have made this edit for you, @zyy.
– nick5435
Dec 4 at 17:47




I have made this edit for you, @zyy.
– nick5435
Dec 4 at 17:47












Thanks for adding the screen shot. I did not read the question carefully enough, sorry!
– marmot
Dec 4 at 18:11




Thanks for adding the screen shot. I did not read the question carefully enough, sorry!
– marmot
Dec 4 at 18:11










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










After seeing your figure (sorry did not read carefully enough! it is very dark in our burrow;-).



documentclass{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzcd}[execute at end picture={
draw[{Hooks[width=+0pt 10.8,length=+0pt 3.6,harpoon,line cap=round]}->]
(tikzcdmatrixname-1-2) to[out=175,in=185,looseness=3]
node[midway,left]{$i$} (tikzcdmatrixname-3-2);
draw[-{Latex[bend]},thick] ([xshift=-0.35cm,yshift=0.45cm]tikzcdmatrixname-2-2)
arc(0:340:0.2);
draw[-{Latex[bend]},thick] ([xshift=-0.45cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
draw[-{Latex[bend]},thick] ([xshift=0.55cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
}]
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}
end{document}


enter image description here






share|improve this answer























  • @nick5435 I added a hook (which I looked up in tikzlibrarycd.code.tex). Is this the hook you're after?
    – marmot
    Dec 4 at 17:39






  • 1




    This did the trick: draw[left hook->] (tikzcdmatrixname-1-2) to[out=150,in=185,looseness=3] node[midway,left]{$i$} (tikzcdmatrixname-3-2);}] Just had to do usetikzlibrary{arrows}
    – nick5435
    Dec 4 at 17:40













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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463185%2ftikz-cd-arrow-bending-and-loop-for-indicating-that-portion-of-diagram-commutes%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








up vote
1
down vote



accepted










After seeing your figure (sorry did not read carefully enough! it is very dark in our burrow;-).



documentclass{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzcd}[execute at end picture={
draw[{Hooks[width=+0pt 10.8,length=+0pt 3.6,harpoon,line cap=round]}->]
(tikzcdmatrixname-1-2) to[out=175,in=185,looseness=3]
node[midway,left]{$i$} (tikzcdmatrixname-3-2);
draw[-{Latex[bend]},thick] ([xshift=-0.35cm,yshift=0.45cm]tikzcdmatrixname-2-2)
arc(0:340:0.2);
draw[-{Latex[bend]},thick] ([xshift=-0.45cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
draw[-{Latex[bend]},thick] ([xshift=0.55cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
}]
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}
end{document}


enter image description here






share|improve this answer























  • @nick5435 I added a hook (which I looked up in tikzlibrarycd.code.tex). Is this the hook you're after?
    – marmot
    Dec 4 at 17:39






  • 1




    This did the trick: draw[left hook->] (tikzcdmatrixname-1-2) to[out=150,in=185,looseness=3] node[midway,left]{$i$} (tikzcdmatrixname-3-2);}] Just had to do usetikzlibrary{arrows}
    – nick5435
    Dec 4 at 17:40

















up vote
1
down vote



accepted










After seeing your figure (sorry did not read carefully enough! it is very dark in our burrow;-).



documentclass{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzcd}[execute at end picture={
draw[{Hooks[width=+0pt 10.8,length=+0pt 3.6,harpoon,line cap=round]}->]
(tikzcdmatrixname-1-2) to[out=175,in=185,looseness=3]
node[midway,left]{$i$} (tikzcdmatrixname-3-2);
draw[-{Latex[bend]},thick] ([xshift=-0.35cm,yshift=0.45cm]tikzcdmatrixname-2-2)
arc(0:340:0.2);
draw[-{Latex[bend]},thick] ([xshift=-0.45cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
draw[-{Latex[bend]},thick] ([xshift=0.55cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
}]
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}
end{document}


enter image description here






share|improve this answer























  • @nick5435 I added a hook (which I looked up in tikzlibrarycd.code.tex). Is this the hook you're after?
    – marmot
    Dec 4 at 17:39






  • 1




    This did the trick: draw[left hook->] (tikzcdmatrixname-1-2) to[out=150,in=185,looseness=3] node[midway,left]{$i$} (tikzcdmatrixname-3-2);}] Just had to do usetikzlibrary{arrows}
    – nick5435
    Dec 4 at 17:40















up vote
1
down vote



accepted







up vote
1
down vote



accepted






After seeing your figure (sorry did not read carefully enough! it is very dark in our burrow;-).



documentclass{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzcd}[execute at end picture={
draw[{Hooks[width=+0pt 10.8,length=+0pt 3.6,harpoon,line cap=round]}->]
(tikzcdmatrixname-1-2) to[out=175,in=185,looseness=3]
node[midway,left]{$i$} (tikzcdmatrixname-3-2);
draw[-{Latex[bend]},thick] ([xshift=-0.35cm,yshift=0.45cm]tikzcdmatrixname-2-2)
arc(0:340:0.2);
draw[-{Latex[bend]},thick] ([xshift=-0.45cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
draw[-{Latex[bend]},thick] ([xshift=0.55cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
}]
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}
end{document}


enter image description here






share|improve this answer














After seeing your figure (sorry did not read carefully enough! it is very dark in our burrow;-).



documentclass{article}
usepackage{tikz-cd,amsmath}
usetikzlibrary{arrows.meta,bending}
begin{document}
begin{tikzcd}[execute at end picture={
draw[{Hooks[width=+0pt 10.8,length=+0pt 3.6,harpoon,line cap=round]}->]
(tikzcdmatrixname-1-2) to[out=175,in=185,looseness=3]
node[midway,left]{$i$} (tikzcdmatrixname-3-2);
draw[-{Latex[bend]},thick] ([xshift=-0.35cm,yshift=0.45cm]tikzcdmatrixname-2-2)
arc(0:340:0.2);
draw[-{Latex[bend]},thick] ([xshift=-0.45cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
draw[-{Latex[bend]},thick] ([xshift=0.55cm,yshift=-0.45cm]tikzcdmatrixname-2-2)
arc(20:360:0.2);
}]
& R arrow[d, "f"] arrow[ld, "phi"', hook'] arrow[rd, "phi", hook] & \
Rleftlbrackfrac{1}{r}rightrbrack arrow[r, "exists!F", two heads, dashed, hook] & {frac{R[x]}{(rx-1)}} arrow[r, "exists!G", two heads, dashed, hook] & Rleftlbrackfrac{1}{r}rightrbrack \
& {R[x]} arrow[u, "pi", two heads] arrow[ru, "g"'] &
end{tikzcd}
end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 4 at 18:10

























answered Dec 4 at 17:35









marmot

82.3k493176




82.3k493176












  • @nick5435 I added a hook (which I looked up in tikzlibrarycd.code.tex). Is this the hook you're after?
    – marmot
    Dec 4 at 17:39






  • 1




    This did the trick: draw[left hook->] (tikzcdmatrixname-1-2) to[out=150,in=185,looseness=3] node[midway,left]{$i$} (tikzcdmatrixname-3-2);}] Just had to do usetikzlibrary{arrows}
    – nick5435
    Dec 4 at 17:40




















  • @nick5435 I added a hook (which I looked up in tikzlibrarycd.code.tex). Is this the hook you're after?
    – marmot
    Dec 4 at 17:39






  • 1




    This did the trick: draw[left hook->] (tikzcdmatrixname-1-2) to[out=150,in=185,looseness=3] node[midway,left]{$i$} (tikzcdmatrixname-3-2);}] Just had to do usetikzlibrary{arrows}
    – nick5435
    Dec 4 at 17:40


















@nick5435 I added a hook (which I looked up in tikzlibrarycd.code.tex). Is this the hook you're after?
– marmot
Dec 4 at 17:39




@nick5435 I added a hook (which I looked up in tikzlibrarycd.code.tex). Is this the hook you're after?
– marmot
Dec 4 at 17:39




1




1




This did the trick: draw[left hook->] (tikzcdmatrixname-1-2) to[out=150,in=185,looseness=3] node[midway,left]{$i$} (tikzcdmatrixname-3-2);}] Just had to do usetikzlibrary{arrows}
– nick5435
Dec 4 at 17:40






This did the trick: draw[left hook->] (tikzcdmatrixname-1-2) to[out=150,in=185,looseness=3] node[midway,left]{$i$} (tikzcdmatrixname-3-2);}] Just had to do usetikzlibrary{arrows}
– nick5435
Dec 4 at 17:40




















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463185%2ftikz-cd-arrow-bending-and-loop-for-indicating-that-portion-of-diagram-commutes%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

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?