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

Uniform initialization by tuple

Possibility to correct pitch from digital versions of records with the hole not centered

How can I review my manager, who is fine?

force:lightningQuickAction . Will implementing this open the component as modalpop up directly?

Is conquering your neighbors to fight a greater enemy a valid strategy?

Attach a visible light telescope to the outside of the ISS

As a supervisor, what feedback would you expect from a PhD who quits?

Why do people prefer metropolitan areas, considering monsters and villains?

What purpose does mercury dichloride have in fireworks?

Taking my Ph.D. advisor out for dinner after graduation

Quotients of a ring of integers

What was the nature of the known bugs in the Space Shuttle software?

Can one block with a protection from color creature?

Tesco's Burger Relish Best Before End date number

How did the IEC decide to create kibibytes?

When do flights get cancelled due to fog?

Examples of fluid (including air) being used to transmit digital data?

This LM317 diagram doesn't make any sense to me

What is the meaning of "prairie-dog" in this sentence?

What does "spinning upon the shoals" mean?

Define functions in a tikzcd diagram

Why SQL does not use the indexed view?

QR codes, do people use them?

Can you create a free-floating MASYU puzzle?



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;








3















I have this diagram



 begintikzcd
& N arrow[twoheadrightarrow]dpi\
R^bigoplusmathcalI arrowrgamma arrowurbeta & M
endtikzcd


enter image description here



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


enter image description here



and



beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray


enter image description here



Finally, I also want to add this



beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray


enter image description here



(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.










share|improve this question









New contributor



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



















  • 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

















3















I have this diagram



 begintikzcd
& N arrow[twoheadrightarrow]dpi\
R^bigoplusmathcalI arrowrgamma arrowurbeta & M
endtikzcd


enter image description here



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


enter image description here



and



beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray


enter image description here



Finally, I also want to add this



beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray


enter image description here



(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.










share|improve this question









New contributor



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



















  • 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













3












3








3


1






I have this diagram



 begintikzcd
& N arrow[twoheadrightarrow]dpi\
R^bigoplusmathcalI arrowrgamma arrowurbeta & M
endtikzcd


enter image description here



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


enter image description here



and



beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray


enter image description here



Finally, I also want to add this



beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray


enter image description here



(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.










share|improve this question









New contributor



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











I have this diagram



 begintikzcd
& N arrow[twoheadrightarrow]dpi\
R^bigoplusmathcalI arrowrgamma arrowurbeta & M
endtikzcd


enter image description here



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


enter image description here



and



beginarrayrcl
beta colon R^bigoplusmathcalI & longrightarrow & N\
e_i & longmapsto & g_i
endarray


enter image description here



Finally, I also want to add this



beginarrayrcl
pi^-1 colon M & longrightarrow & N\
gamma(e_i) & longmapsto & g_i
endarray


enter image description here



(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






share|improve this question









New contributor



Smm 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



Smm 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 8 hours ago







Smm













New contributor



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








asked 8 hours ago









SmmSmm

183 bronze badges




183 bronze badges




New contributor



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




New contributor




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














  • 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











  • 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










3 Answers
3






active

oldest

votes


















2














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


enter image description here






share|improve this answer

























  • 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 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











  • 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


















3














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


enter image description here






share|improve this answer






























    2














    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


    enter image description here






    share|improve this answer

























      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.









      draft saved

      draft discarded


















      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









      2














      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


      enter image description here






      share|improve this answer

























      • 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 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











      • 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















      2














      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


      enter image description here






      share|improve this answer

























      • 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 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











      • 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













      2












      2








      2







      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


      enter image description here






      share|improve this answer















      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


      enter image description here







      share|improve this answer














      share|improve this answer



      share|improve this answer








      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 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











      • 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

















      • 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 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











      • 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
















      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













      3














      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


      enter image description here






      share|improve this answer



























        3














        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


        enter image description here






        share|improve this answer

























          3












          3








          3







          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


          enter image description here






          share|improve this answer













          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


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 7 hours ago









          marmotmarmot

          142k6 gold badges185 silver badges342 bronze badges




          142k6 gold badges185 silver badges342 bronze badges





















              2














              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


              enter image description here






              share|improve this answer



























                2














                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


                enter image description here






                share|improve this answer

























                  2












                  2








                  2







                  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


                  enter image description here






                  share|improve this answer













                  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


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 4 hours ago









                  egregegreg

                  753k90 gold badges1975 silver badges3314 bronze badges




                  753k90 gold badges1975 silver badges3314 bronze badges




















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









                      draft saved

                      draft discarded


















                      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.




                      draft saved


                      draft discarded














                      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





















































                      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

                      Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                      Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                      199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單