Define functions in a tikzcd diagramHow to draw a diagram using tikzcdRounded arrow in tikzcd with text on itTikzcd: shifted diagramAdjusting arrows in a commutative diagram with tikzcdQuestion with tikzcd - DiagramOpen triangle arrow in TikZcdArrows with tikzcdHow to define multiple functions in the same diagram?rotate wide commutative diagram tikzcdCommutative diagram not working on tikzcd
As a supervisor, what feedback would you expect from a PhD who quits?
Where are the Wazirs?
Can you create a free-floating MASYU puzzle?
How do I talk to my wife about unrealistic expectations?
Is conquering your neighbors to fight a greater enemy a valid strategy?
Passwordless authentication - how and when to invalidate a login code
NOLOCK or Read Uncommitted locking / latching behaviours
Did William Shakespeare hide things in his writings?
How to say "is going" in Russian in "this game is going to perish"
In layman's terms, does the Luckstone just give a passive +1 to all d20 rolls and saves except for death saves?
Diagram with cylinder shapes and rectangles
How was the website able to tell my credit card was wrong before it processed it?
Users forgotting to regenerate PDF before sending it
Does anyone have a method of differentiating informative comments from commented out code?
How can I use my cell phone's light as a reading light?
Why am I getting unevenly-spread results when using $RANDOM?
How did the IEC decide to create kibibytes?
I'm feeling like my character doesn't fit the campaign
E12 LED light bulb flickers when OFF in candelabra
What is the shape of the upper boundary of water hitting a screen?
Can a USB hub be used to access a drive from two devices?
Four ships at the ocean with the same distance
How to evaluate the performance of open source solver?
Interpretation of non-significant results as "trends"
Define functions in a tikzcd diagram
How to draw a diagram using tikzcdRounded arrow in tikzcd with text on itTikzcd: shifted diagramAdjusting arrows in a commutative diagram with tikzcdQuestion with tikzcd - DiagramOpen triangle arrow in TikZcdArrows with tikzcdHow to define multiple functions in the same diagram?rotate wide commutative diagram tikzcdCommutative diagram not working on tikzcd
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have this diagram
begintikzcd
& N arrow[twoheadrightarrow]dpi\
R^bigoplusmathcalI arrowrgamma arrowurbeta & M
endtikzcd
Now I want to define $gamma$ and $beta$ in the diagram. I mean, I want to replace $gamma$ and $beta$ in the diagram by
beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray
and
beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray
Finally, I also want to add this
beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray
(This means preimage, obv $pi$ may not be bijective)Any ideas?(when replacing the arrows, I want to keep the arrow's names
above the arrows). I want this diagram to check that $R^bigoplusmathcalI$ (free module over mathcalI) is a projective module.
tikz-arrows tikz-cd commutative-diagrams
New contributor
|
show 5 more comments
I have this diagram
begintikzcd
& N arrow[twoheadrightarrow]dpi\
R^bigoplusmathcalI arrowrgamma arrowurbeta & M
endtikzcd
Now I want to define $gamma$ and $beta$ in the diagram. I mean, I want to replace $gamma$ and $beta$ in the diagram by
beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray
and
beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray
Finally, I also want to add this
beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray
(This means preimage, obv $pi$ may not be bijective)Any ideas?(when replacing the arrows, I want to keep the arrow's names
above the arrows). I want this diagram to check that $R^bigoplusmathcalI$ (free module over mathcalI) is a projective module.
tikz-arrows tikz-cd commutative-diagrams
New contributor
the images seems to be missing
– Cuniye Datacu
8 hours ago
Welcome to TeX SX! No image is visible. How could someone have an idea?
– Bernard
8 hours ago
edited! now the images are available
– Smm
8 hours ago
Mathematically, what is I? and the direct sul of I?
– Bernard
8 hours ago
$R^bigoplusmathcalI$ is the free $R$-module over the set $mathcalI$.
– Smm
8 hours ago
|
show 5 more comments
I have this diagram
begintikzcd
& N arrow[twoheadrightarrow]dpi\
R^bigoplusmathcalI arrowrgamma arrowurbeta & M
endtikzcd
Now I want to define $gamma$ and $beta$ in the diagram. I mean, I want to replace $gamma$ and $beta$ in the diagram by
beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray
and
beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray
Finally, I also want to add this
beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray
(This means preimage, obv $pi$ may not be bijective)Any ideas?(when replacing the arrows, I want to keep the arrow's names
above the arrows). I want this diagram to check that $R^bigoplusmathcalI$ (free module over mathcalI) is a projective module.
tikz-arrows tikz-cd commutative-diagrams
New contributor
I have this diagram
begintikzcd
& N arrow[twoheadrightarrow]dpi\
R^bigoplusmathcalI arrowrgamma arrowurbeta & M
endtikzcd
Now I want to define $gamma$ and $beta$ in the diagram. I mean, I want to replace $gamma$ and $beta$ in the diagram by
beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray
and
beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray
Finally, I also want to add this
beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray
(This means preimage, obv $pi$ may not be bijective)Any ideas?(when replacing the arrows, I want to keep the arrow's names
above the arrows). I want this diagram to check that $R^bigoplusmathcalI$ (free module over mathcalI) is a projective module.
tikz-arrows tikz-cd commutative-diagrams
tikz-arrows tikz-cd commutative-diagrams
New contributor
New contributor
edited 8 hours ago
Smm
New contributor
asked 8 hours ago
SmmSmm
183 bronze badges
183 bronze badges
New contributor
New contributor
the images seems to be missing
– Cuniye Datacu
8 hours ago
Welcome to TeX SX! No image is visible. How could someone have an idea?
– Bernard
8 hours ago
edited! now the images are available
– Smm
8 hours ago
Mathematically, what is I? and the direct sul of I?
– Bernard
8 hours ago
$R^bigoplusmathcalI$ is the free $R$-module over the set $mathcalI$.
– Smm
8 hours ago
|
show 5 more comments
the images seems to be missing
– Cuniye Datacu
8 hours ago
Welcome to TeX SX! No image is visible. How could someone have an idea?
– Bernard
8 hours ago
edited! now the images are available
– Smm
8 hours ago
Mathematically, what is I? and the direct sul of I?
– Bernard
8 hours ago
$R^bigoplusmathcalI$ is the free $R$-module over the set $mathcalI$.
– Smm
8 hours ago
the images seems to be missing
– Cuniye Datacu
8 hours ago
the images seems to be missing
– Cuniye Datacu
8 hours ago
Welcome to TeX SX! No image is visible. How could someone have an idea?
– Bernard
8 hours ago
Welcome to TeX SX! No image is visible. How could someone have an idea?
– Bernard
8 hours ago
edited! now the images are available
– Smm
8 hours ago
edited! now the images are available
– Smm
8 hours ago
Mathematically, what is I? and the direct sul of I?
– Bernard
8 hours ago
Mathematically, what is I? and the direct sul of I?
– Bernard
8 hours ago
$R^bigoplusmathcalI$ is the free $R$-module over the set $mathcalI$.
– Smm
8 hours ago
$R^bigoplusmathcalI$ is the free $R$-module over the set $mathcalI$.
– Smm
8 hours ago
|
show 5 more comments
3 Answers
3
active
oldest
votes
For fun, a solution with the psmatrix
environment, from pstricks
:
documentclassarticle
usepackageamsmath
usepackagepst-node
begindocument
%
[
everypsboxscriptstyle
pssetarrows=->, arrowinset=0.15, linewidth=0.4pt, nodesep=3pt, labelsep=2pt, rowsep=1.2cm, colsep=1.5cm, shortput=nab
beginpsmatrix
%%%nodes
& [name=N] N \%
R^ oplus mathcalIpnodeR & [name=M] M
endpsmatrix
%%% arrows
ncline2,11,2naput[npos=0.45,labelsep =0pt]beta
ncline2,12,2^gamma
ncline1,22,2_pi
%%%%
psset->,offset =2.5ex
ncline2,11,2
uput4ex[125]45(R)e_i
uput2ex[140]45(N)g_i
%%%
ncline[offset=-2ex]2,12,2
uput1ex[-110]0(R)e_i
uput1ex[-60]0(M)gamma (e_i)
%%%
ncline[linestyle=dashed, arrows=<-|]1,22,2naput[npos=0.43]pi^-1
uput2ex[r]0(N)g_i
]
enddocument
Oh, that's awesome! I hadn't say it, but I need to put it on a beamer, and it seems that it doesn't work. I have the packages and I've written beginframe[fragile] on the top of the frame. What's wrong?
– Smm
4 hours ago
Maybe I need more packages or something...
– Smm
4 hours ago
If you compîle withpdflatex
, it can't work as is, because pdftex doesn't understand thepostscript
language (albeit the pdf format is a subset of postscript). But withxelatex
, it works fine (it's a little longer). Other than that, you can follow the old style way:latex -> dvips -> pstopdf
.
– Bernard
4 hours ago
Perfect! It works with xelatex. Great Job!
– Smm
4 hours ago
Just a final suggestion: maybe it would be faster to compile if such diagrams were compiled alone with thestandalone
class: they will be cropped to their bounding box, and you can insert them as .pdf graphic files in your main document viaincludegraphics
.
– Bernard
4 hours ago
add a comment |
As long as you add an ampersand replacement
you can use these arrays.
documentclassarticle
usepackageamsmath
usepackagetikz-cd
begindocument
begintikzcd[column sep=8em,ampersand replacement=&]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI arrow[r,"beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray" swap]
arrow[ur,"beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray" sloped] & M arrow[u,twoheadrightarrow,bend right=80,"beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray" swap]
endtikzcd
enddocument
add a comment |
Define a macro for the complicated thing:
documentclassarticle
usepackageamsmath
usepackagetikz-cd
newcommandfuncdef[5]%
mboxscriptsize$
beginaligned #1colon #2 & longrightarrow #3 \[-1ex] #4 &longmapsto #5 endaligned
$%
begindocument
begintikzcd[column sep=8em]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI
arrow[r,"funcdefgammaR^bigoplusmathcalIMe_igamma(e_i)"']
arrow[ur,"funcdefbetaR^bigoplusmathcalINe_ig_i" sloped] &
M arrow[u,twoheadrightarrow,bend right=80,"funcdefpi^-1MNgamma(e_i)g_i"']
endtikzcd
enddocument
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
);
);
Smm 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%2f498795%2fdefine-functions-in-a-tikzcd-diagram%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
For fun, a solution with the psmatrix
environment, from pstricks
:
documentclassarticle
usepackageamsmath
usepackagepst-node
begindocument
%
[
everypsboxscriptstyle
pssetarrows=->, arrowinset=0.15, linewidth=0.4pt, nodesep=3pt, labelsep=2pt, rowsep=1.2cm, colsep=1.5cm, shortput=nab
beginpsmatrix
%%%nodes
& [name=N] N \%
R^ oplus mathcalIpnodeR & [name=M] M
endpsmatrix
%%% arrows
ncline2,11,2naput[npos=0.45,labelsep =0pt]beta
ncline2,12,2^gamma
ncline1,22,2_pi
%%%%
psset->,offset =2.5ex
ncline2,11,2
uput4ex[125]45(R)e_i
uput2ex[140]45(N)g_i
%%%
ncline[offset=-2ex]2,12,2
uput1ex[-110]0(R)e_i
uput1ex[-60]0(M)gamma (e_i)
%%%
ncline[linestyle=dashed, arrows=<-|]1,22,2naput[npos=0.43]pi^-1
uput2ex[r]0(N)g_i
]
enddocument
Oh, that's awesome! I hadn't say it, but I need to put it on a beamer, and it seems that it doesn't work. I have the packages and I've written beginframe[fragile] on the top of the frame. What's wrong?
– Smm
4 hours ago
Maybe I need more packages or something...
– Smm
4 hours ago
If you compîle withpdflatex
, it can't work as is, because pdftex doesn't understand thepostscript
language (albeit the pdf format is a subset of postscript). But withxelatex
, it works fine (it's a little longer). Other than that, you can follow the old style way:latex -> dvips -> pstopdf
.
– Bernard
4 hours ago
Perfect! It works with xelatex. Great Job!
– Smm
4 hours ago
Just a final suggestion: maybe it would be faster to compile if such diagrams were compiled alone with thestandalone
class: they will be cropped to their bounding box, and you can insert them as .pdf graphic files in your main document viaincludegraphics
.
– Bernard
4 hours ago
add a comment |
For fun, a solution with the psmatrix
environment, from pstricks
:
documentclassarticle
usepackageamsmath
usepackagepst-node
begindocument
%
[
everypsboxscriptstyle
pssetarrows=->, arrowinset=0.15, linewidth=0.4pt, nodesep=3pt, labelsep=2pt, rowsep=1.2cm, colsep=1.5cm, shortput=nab
beginpsmatrix
%%%nodes
& [name=N] N \%
R^ oplus mathcalIpnodeR & [name=M] M
endpsmatrix
%%% arrows
ncline2,11,2naput[npos=0.45,labelsep =0pt]beta
ncline2,12,2^gamma
ncline1,22,2_pi
%%%%
psset->,offset =2.5ex
ncline2,11,2
uput4ex[125]45(R)e_i
uput2ex[140]45(N)g_i
%%%
ncline[offset=-2ex]2,12,2
uput1ex[-110]0(R)e_i
uput1ex[-60]0(M)gamma (e_i)
%%%
ncline[linestyle=dashed, arrows=<-|]1,22,2naput[npos=0.43]pi^-1
uput2ex[r]0(N)g_i
]
enddocument
Oh, that's awesome! I hadn't say it, but I need to put it on a beamer, and it seems that it doesn't work. I have the packages and I've written beginframe[fragile] on the top of the frame. What's wrong?
– Smm
4 hours ago
Maybe I need more packages or something...
– Smm
4 hours ago
If you compîle withpdflatex
, it can't work as is, because pdftex doesn't understand thepostscript
language (albeit the pdf format is a subset of postscript). But withxelatex
, it works fine (it's a little longer). Other than that, you can follow the old style way:latex -> dvips -> pstopdf
.
– Bernard
4 hours ago
Perfect! It works with xelatex. Great Job!
– Smm
4 hours ago
Just a final suggestion: maybe it would be faster to compile if such diagrams were compiled alone with thestandalone
class: they will be cropped to their bounding box, and you can insert them as .pdf graphic files in your main document viaincludegraphics
.
– Bernard
4 hours ago
add a comment |
For fun, a solution with the psmatrix
environment, from pstricks
:
documentclassarticle
usepackageamsmath
usepackagepst-node
begindocument
%
[
everypsboxscriptstyle
pssetarrows=->, arrowinset=0.15, linewidth=0.4pt, nodesep=3pt, labelsep=2pt, rowsep=1.2cm, colsep=1.5cm, shortput=nab
beginpsmatrix
%%%nodes
& [name=N] N \%
R^ oplus mathcalIpnodeR & [name=M] M
endpsmatrix
%%% arrows
ncline2,11,2naput[npos=0.45,labelsep =0pt]beta
ncline2,12,2^gamma
ncline1,22,2_pi
%%%%
psset->,offset =2.5ex
ncline2,11,2
uput4ex[125]45(R)e_i
uput2ex[140]45(N)g_i
%%%
ncline[offset=-2ex]2,12,2
uput1ex[-110]0(R)e_i
uput1ex[-60]0(M)gamma (e_i)
%%%
ncline[linestyle=dashed, arrows=<-|]1,22,2naput[npos=0.43]pi^-1
uput2ex[r]0(N)g_i
]
enddocument
For fun, a solution with the psmatrix
environment, from pstricks
:
documentclassarticle
usepackageamsmath
usepackagepst-node
begindocument
%
[
everypsboxscriptstyle
pssetarrows=->, arrowinset=0.15, linewidth=0.4pt, nodesep=3pt, labelsep=2pt, rowsep=1.2cm, colsep=1.5cm, shortput=nab
beginpsmatrix
%%%nodes
& [name=N] N \%
R^ oplus mathcalIpnodeR & [name=M] M
endpsmatrix
%%% arrows
ncline2,11,2naput[npos=0.45,labelsep =0pt]beta
ncline2,12,2^gamma
ncline1,22,2_pi
%%%%
psset->,offset =2.5ex
ncline2,11,2
uput4ex[125]45(R)e_i
uput2ex[140]45(N)g_i
%%%
ncline[offset=-2ex]2,12,2
uput1ex[-110]0(R)e_i
uput1ex[-60]0(M)gamma (e_i)
%%%
ncline[linestyle=dashed, arrows=<-|]1,22,2naput[npos=0.43]pi^-1
uput2ex[r]0(N)g_i
]
enddocument
edited 3 hours ago
answered 4 hours ago
BernardBernard
183k7 gold badges83 silver badges216 bronze badges
183k7 gold badges83 silver badges216 bronze badges
Oh, that's awesome! I hadn't say it, but I need to put it on a beamer, and it seems that it doesn't work. I have the packages and I've written beginframe[fragile] on the top of the frame. What's wrong?
– Smm
4 hours ago
Maybe I need more packages or something...
– Smm
4 hours ago
If you compîle withpdflatex
, it can't work as is, because pdftex doesn't understand thepostscript
language (albeit the pdf format is a subset of postscript). But withxelatex
, it works fine (it's a little longer). Other than that, you can follow the old style way:latex -> dvips -> pstopdf
.
– Bernard
4 hours ago
Perfect! It works with xelatex. Great Job!
– Smm
4 hours ago
Just a final suggestion: maybe it would be faster to compile if such diagrams were compiled alone with thestandalone
class: they will be cropped to their bounding box, and you can insert them as .pdf graphic files in your main document viaincludegraphics
.
– Bernard
4 hours ago
add a comment |
Oh, that's awesome! I hadn't say it, but I need to put it on a beamer, and it seems that it doesn't work. I have the packages and I've written beginframe[fragile] on the top of the frame. What's wrong?
– Smm
4 hours ago
Maybe I need more packages or something...
– Smm
4 hours ago
If you compîle withpdflatex
, it can't work as is, because pdftex doesn't understand thepostscript
language (albeit the pdf format is a subset of postscript). But withxelatex
, it works fine (it's a little longer). Other than that, you can follow the old style way:latex -> dvips -> pstopdf
.
– Bernard
4 hours ago
Perfect! It works with xelatex. Great Job!
– Smm
4 hours ago
Just a final suggestion: maybe it would be faster to compile if such diagrams were compiled alone with thestandalone
class: they will be cropped to their bounding box, and you can insert them as .pdf graphic files in your main document viaincludegraphics
.
– Bernard
4 hours ago
Oh, that's awesome! I hadn't say it, but I need to put it on a beamer, and it seems that it doesn't work. I have the packages and I've written beginframe[fragile] on the top of the frame. What's wrong?
– Smm
4 hours ago
Oh, that's awesome! I hadn't say it, but I need to put it on a beamer, and it seems that it doesn't work. I have the packages and I've written beginframe[fragile] on the top of the frame. What's wrong?
– Smm
4 hours ago
Maybe I need more packages or something...
– Smm
4 hours ago
Maybe I need more packages or something...
– Smm
4 hours ago
If you compîle with
pdflatex
, it can't work as is, because pdftex doesn't understand the postscript
language (albeit the pdf format is a subset of postscript). But with xelatex
, it works fine (it's a little longer). Other than that, you can follow the old style way: latex -> dvips -> pstopdf
.– Bernard
4 hours ago
If you compîle with
pdflatex
, it can't work as is, because pdftex doesn't understand the postscript
language (albeit the pdf format is a subset of postscript). But with xelatex
, it works fine (it's a little longer). Other than that, you can follow the old style way: latex -> dvips -> pstopdf
.– Bernard
4 hours ago
Perfect! It works with xelatex. Great Job!
– Smm
4 hours ago
Perfect! It works with xelatex. Great Job!
– Smm
4 hours ago
Just a final suggestion: maybe it would be faster to compile if such diagrams were compiled alone with the
standalone
class: they will be cropped to their bounding box, and you can insert them as .pdf graphic files in your main document via includegraphics
.– Bernard
4 hours ago
Just a final suggestion: maybe it would be faster to compile if such diagrams were compiled alone with the
standalone
class: they will be cropped to their bounding box, and you can insert them as .pdf graphic files in your main document via includegraphics
.– Bernard
4 hours ago
add a comment |
As long as you add an ampersand replacement
you can use these arrays.
documentclassarticle
usepackageamsmath
usepackagetikz-cd
begindocument
begintikzcd[column sep=8em,ampersand replacement=&]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI arrow[r,"beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray" swap]
arrow[ur,"beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray" sloped] & M arrow[u,twoheadrightarrow,bend right=80,"beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray" swap]
endtikzcd
enddocument
add a comment |
As long as you add an ampersand replacement
you can use these arrays.
documentclassarticle
usepackageamsmath
usepackagetikz-cd
begindocument
begintikzcd[column sep=8em,ampersand replacement=&]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI arrow[r,"beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray" swap]
arrow[ur,"beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray" sloped] & M arrow[u,twoheadrightarrow,bend right=80,"beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray" swap]
endtikzcd
enddocument
add a comment |
As long as you add an ampersand replacement
you can use these arrays.
documentclassarticle
usepackageamsmath
usepackagetikz-cd
begindocument
begintikzcd[column sep=8em,ampersand replacement=&]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI arrow[r,"beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray" swap]
arrow[ur,"beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray" sloped] & M arrow[u,twoheadrightarrow,bend right=80,"beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray" swap]
endtikzcd
enddocument
As long as you add an ampersand replacement
you can use these arrays.
documentclassarticle
usepackageamsmath
usepackagetikz-cd
begindocument
begintikzcd[column sep=8em,ampersand replacement=&]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI arrow[r,"beginarrayrcl
gamma colon R^bigoplusmathcalI & longrightarrow & M\
e_i & longmapsto & gamma(e_i)
endarray" swap]
arrow[ur,"beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray" sloped] & M arrow[u,twoheadrightarrow,bend right=80,"beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray" swap]
endtikzcd
enddocument
answered 7 hours ago
marmotmarmot
142k6 gold badges185 silver badges342 bronze badges
142k6 gold badges185 silver badges342 bronze badges
add a comment |
add a comment |
Define a macro for the complicated thing:
documentclassarticle
usepackageamsmath
usepackagetikz-cd
newcommandfuncdef[5]%
mboxscriptsize$
beginaligned #1colon #2 & longrightarrow #3 \[-1ex] #4 &longmapsto #5 endaligned
$%
begindocument
begintikzcd[column sep=8em]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI
arrow[r,"funcdefgammaR^bigoplusmathcalIMe_igamma(e_i)"']
arrow[ur,"funcdefbetaR^bigoplusmathcalINe_ig_i" sloped] &
M arrow[u,twoheadrightarrow,bend right=80,"funcdefpi^-1MNgamma(e_i)g_i"']
endtikzcd
enddocument
add a comment |
Define a macro for the complicated thing:
documentclassarticle
usepackageamsmath
usepackagetikz-cd
newcommandfuncdef[5]%
mboxscriptsize$
beginaligned #1colon #2 & longrightarrow #3 \[-1ex] #4 &longmapsto #5 endaligned
$%
begindocument
begintikzcd[column sep=8em]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI
arrow[r,"funcdefgammaR^bigoplusmathcalIMe_igamma(e_i)"']
arrow[ur,"funcdefbetaR^bigoplusmathcalINe_ig_i" sloped] &
M arrow[u,twoheadrightarrow,bend right=80,"funcdefpi^-1MNgamma(e_i)g_i"']
endtikzcd
enddocument
add a comment |
Define a macro for the complicated thing:
documentclassarticle
usepackageamsmath
usepackagetikz-cd
newcommandfuncdef[5]%
mboxscriptsize$
beginaligned #1colon #2 & longrightarrow #3 \[-1ex] #4 &longmapsto #5 endaligned
$%
begindocument
begintikzcd[column sep=8em]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI
arrow[r,"funcdefgammaR^bigoplusmathcalIMe_igamma(e_i)"']
arrow[ur,"funcdefbetaR^bigoplusmathcalINe_ig_i" sloped] &
M arrow[u,twoheadrightarrow,bend right=80,"funcdefpi^-1MNgamma(e_i)g_i"']
endtikzcd
enddocument
Define a macro for the complicated thing:
documentclassarticle
usepackageamsmath
usepackagetikz-cd
newcommandfuncdef[5]%
mboxscriptsize$
beginaligned #1colon #2 & longrightarrow #3 \[-1ex] #4 &longmapsto #5 endaligned
$%
begindocument
begintikzcd[column sep=8em]
& N arrow[twoheadrightarrow,d,"pi"]\
R^bigoplusmathcalI
arrow[r,"funcdefgammaR^bigoplusmathcalIMe_igamma(e_i)"']
arrow[ur,"funcdefbetaR^bigoplusmathcalINe_ig_i" sloped] &
M arrow[u,twoheadrightarrow,bend right=80,"funcdefpi^-1MNgamma(e_i)g_i"']
endtikzcd
enddocument
answered 4 hours ago
egregegreg
753k90 gold badges1975 silver badges3314 bronze badges
753k90 gold badges1975 silver badges3314 bronze badges
add a comment |
add a comment |
Smm is a new contributor. Be nice, and check out our Code of Conduct.
Smm is a new contributor. Be nice, and check out our Code of Conduct.
Smm is a new contributor. Be nice, and check out our Code of Conduct.
Smm 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.
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%2f498795%2fdefine-functions-in-a-tikzcd-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
the images seems to be missing
– Cuniye Datacu
8 hours ago
Welcome to TeX SX! No image is visible. How could someone have an idea?
– Bernard
8 hours ago
edited! now the images are available
– Smm
8 hours ago
Mathematically, what is I? and the direct sul of I?
– Bernard
8 hours ago
$R^bigoplusmathcalI$ is the free $R$-module over the set $mathcalI$.
– Smm
8 hours ago