How to arrange commutative diagrams in displayed form












6















I would like to arrange the following three diagrams



[
begin{tikzcd}
Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
& Xarrow[r, "f"] & Y
end{tikzcd}
]

[
begin{tikzcd}
pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
& Iarrow[r, "u"] & J
end{tikzcd}
]

[
begin{tikzcd}
mathbb{E}arrow[d, "p"]\
mathbb{B}
end{tikzcd}
]


as they are arranged here:
enter image description here



What's the best way to do it?










share|improve this question





























    6















    I would like to arrange the following three diagrams



    [
    begin{tikzcd}
    Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
    & Xarrow[r, "f"] & Y
    end{tikzcd}
    ]

    [
    begin{tikzcd}
    pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
    & Iarrow[r, "u"] & J
    end{tikzcd}
    ]

    [
    begin{tikzcd}
    mathbb{E}arrow[d, "p"]\
    mathbb{B}
    end{tikzcd}
    ]


    as they are arranged here:
    enter image description here



    What's the best way to do it?










    share|improve this question



























      6












      6








      6








      I would like to arrange the following three diagrams



      [
      begin{tikzcd}
      Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
      & Xarrow[r, "f"] & Y
      end{tikzcd}
      ]

      [
      begin{tikzcd}
      pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
      & Iarrow[r, "u"] & J
      end{tikzcd}
      ]

      [
      begin{tikzcd}
      mathbb{E}arrow[d, "p"]\
      mathbb{B}
      end{tikzcd}
      ]


      as they are arranged here:
      enter image description here



      What's the best way to do it?










      share|improve this question
















      I would like to arrange the following three diagrams



      [
      begin{tikzcd}
      Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
      & Xarrow[r, "f"] & Y
      end{tikzcd}
      ]

      [
      begin{tikzcd}
      pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
      & Iarrow[r, "u"] & J
      end{tikzcd}
      ]

      [
      begin{tikzcd}
      mathbb{E}arrow[d, "p"]\
      mathbb{B}
      end{tikzcd}
      ]


      as they are arranged here:
      enter image description here



      What's the best way to do it?







      tikz-cd commutative-diagrams






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 7 at 11:52









      Phelype Oleinik

      23.3k54585




      23.3k54585










      asked Feb 7 at 11:51









      VladimirVladimir

      984




      984






















          2 Answers
          2






          active

          oldest

          votes


















          8














          I'd use an aligned:



          documentclass{article}
          usepackage{amsmath,amssymb,tikz-cd}

          begin{document}

          [
          begin{tikzcd}[row sep=huge]
          mathbb{E}arrow[d, "p"]\
          mathbb{B}
          end{tikzcd}
          qquadqquad
          begin{aligned}
          & begin{tikzcd}
          phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
          & Xarrow[r, "f"] & Y
          end{tikzcd}
          \
          & begin{tikzcd}
          pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
          & Iarrow[r, "u"] & J
          end{tikzcd}
          end{aligned}
          ]

          end{document}


          With phantom{p} in the top right diagram, we ensure similarity with the bottom one.



          enter image description here






          share|improve this answer
























          • Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]

            – Vladimir
            Feb 7 at 17:36






          • 1





            @Vladimir You can adjust the bottom diagram by doing begin{tikzcd}[column sep=6em] (adjust the length to suit).

            – egreg
            Feb 7 at 18:29





















          2














          I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after&to make the gap between the left and the right two diagrams a bit larger. And, of course,mathbb{E}andmathbb{B}` are automatically aligned with the diagrams on the right.



          documentclass{article}
          usepackage{amsmath,amsfonts}
          usepackage{tikz-cd}
          begin{document}
          [
          begin{tikzcd}
          &[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
          mathbb{E}arrow[ddd, "p"] & & & \[-2em]
          & & Xarrow[r, "f"] & Y\
          & pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
          mathbb{B} & & & \[-2em]
          & & Iarrow[r, "u"] & J\
          end{tikzcd}
          ]
          end{document}


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


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473745%2fhow-to-arrange-commutative-diagrams-in-displayed-form%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









            8














            I'd use an aligned:



            documentclass{article}
            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            [
            begin{tikzcd}[row sep=huge]
            mathbb{E}arrow[d, "p"]\
            mathbb{B}
            end{tikzcd}
            qquadqquad
            begin{aligned}
            & begin{tikzcd}
            phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
            & Xarrow[r, "f"] & Y
            end{tikzcd}
            \
            & begin{tikzcd}
            pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
            & Iarrow[r, "u"] & J
            end{tikzcd}
            end{aligned}
            ]

            end{document}


            With phantom{p} in the top right diagram, we ensure similarity with the bottom one.



            enter image description here






            share|improve this answer
























            • Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]

              – Vladimir
              Feb 7 at 17:36






            • 1





              @Vladimir You can adjust the bottom diagram by doing begin{tikzcd}[column sep=6em] (adjust the length to suit).

              – egreg
              Feb 7 at 18:29


















            8














            I'd use an aligned:



            documentclass{article}
            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            [
            begin{tikzcd}[row sep=huge]
            mathbb{E}arrow[d, "p"]\
            mathbb{B}
            end{tikzcd}
            qquadqquad
            begin{aligned}
            & begin{tikzcd}
            phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
            & Xarrow[r, "f"] & Y
            end{tikzcd}
            \
            & begin{tikzcd}
            pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
            & Iarrow[r, "u"] & J
            end{tikzcd}
            end{aligned}
            ]

            end{document}


            With phantom{p} in the top right diagram, we ensure similarity with the bottom one.



            enter image description here






            share|improve this answer
























            • Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]

              – Vladimir
              Feb 7 at 17:36






            • 1





              @Vladimir You can adjust the bottom diagram by doing begin{tikzcd}[column sep=6em] (adjust the length to suit).

              – egreg
              Feb 7 at 18:29
















            8












            8








            8







            I'd use an aligned:



            documentclass{article}
            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            [
            begin{tikzcd}[row sep=huge]
            mathbb{E}arrow[d, "p"]\
            mathbb{B}
            end{tikzcd}
            qquadqquad
            begin{aligned}
            & begin{tikzcd}
            phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
            & Xarrow[r, "f"] & Y
            end{tikzcd}
            \
            & begin{tikzcd}
            pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
            & Iarrow[r, "u"] & J
            end{tikzcd}
            end{aligned}
            ]

            end{document}


            With phantom{p} in the top right diagram, we ensure similarity with the bottom one.



            enter image description here






            share|improve this answer













            I'd use an aligned:



            documentclass{article}
            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            [
            begin{tikzcd}[row sep=huge]
            mathbb{E}arrow[d, "p"]\
            mathbb{B}
            end{tikzcd}
            qquadqquad
            begin{aligned}
            & begin{tikzcd}
            phantom{p}Zarrow[dr, "h", dashed]arrow[drr, "g", bend left]\
            & Xarrow[r, "f"] & Y
            end{tikzcd}
            \
            & begin{tikzcd}
            pZarrow[dr, "w", dashed]arrow[drr, "pg", bend left]\
            & Iarrow[r, "u"] & J
            end{tikzcd}
            end{aligned}
            ]

            end{document}


            With phantom{p} in the top right diagram, we ensure similarity with the bottom one.



            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 7 at 11:58









            egregegreg

            719k8719083206




            719k8719083206













            • Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]

              – Vladimir
              Feb 7 at 17:36






            • 1





              @Vladimir You can adjust the bottom diagram by doing begin{tikzcd}[column sep=6em] (adjust the length to suit).

              – egreg
              Feb 7 at 18:29





















            • Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]

              – Vladimir
              Feb 7 at 17:36






            • 1





              @Vladimir You can adjust the bottom diagram by doing begin{tikzcd}[column sep=6em] (adjust the length to suit).

              – egreg
              Feb 7 at 18:29



















            Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]

            – Vladimir
            Feb 7 at 17:36





            Thank you. How can I make the top right diagram similar to the bottom right in the following case? [ begin{tikzcd}[row sep=huge] mathbb{famst}arrow[d, "p"]\ mathbb{st} end{tikzcd} qquadqquad begin{aligned} begin{tikzcd} {X_i}_{iin I} arrow[r, "f"] & {Y_j}_{jin J}\ & {Z_k}_{kin K}arrow[ul, ""]arrow[u, "g", swap] end{tikzcd} \ begin{tikzcd} I arrow[r, "pf=u"] & J\ & Karrow[ul, ""]arrow[u, "pg=v", swap]. end{tikzcd} end{aligned} ]

            – Vladimir
            Feb 7 at 17:36




            1




            1





            @Vladimir You can adjust the bottom diagram by doing begin{tikzcd}[column sep=6em] (adjust the length to suit).

            – egreg
            Feb 7 at 18:29







            @Vladimir You can adjust the bottom diagram by doing begin{tikzcd}[column sep=6em] (adjust the length to suit).

            – egreg
            Feb 7 at 18:29













            2














            I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after&to make the gap between the left and the right two diagrams a bit larger. And, of course,mathbb{E}andmathbb{B}` are automatically aligned with the diagrams on the right.



            documentclass{article}
            usepackage{amsmath,amsfonts}
            usepackage{tikz-cd}
            begin{document}
            [
            begin{tikzcd}
            &[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
            mathbb{E}arrow[ddd, "p"] & & & \[-2em]
            & & Xarrow[r, "f"] & Y\
            & pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
            mathbb{B} & & & \[-2em]
            & & Iarrow[r, "u"] & J\
            end{tikzcd}
            ]
            end{document}


            enter image description here






            share|improve this answer






























              2














              I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after&to make the gap between the left and the right two diagrams a bit larger. And, of course,mathbb{E}andmathbb{B}` are automatically aligned with the diagrams on the right.



              documentclass{article}
              usepackage{amsmath,amsfonts}
              usepackage{tikz-cd}
              begin{document}
              [
              begin{tikzcd}
              &[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
              mathbb{E}arrow[ddd, "p"] & & & \[-2em]
              & & Xarrow[r, "f"] & Y\
              & pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
              mathbb{B} & & & \[-2em]
              & & Iarrow[r, "u"] & J\
              end{tikzcd}
              ]
              end{document}


              enter image description here






              share|improve this answer




























                2












                2








                2







                I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after&to make the gap between the left and the right two diagrams a bit larger. And, of course,mathbb{E}andmathbb{B}` are automatically aligned with the diagrams on the right.



                documentclass{article}
                usepackage{amsmath,amsfonts}
                usepackage{tikz-cd}
                begin{document}
                [
                begin{tikzcd}
                &[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
                mathbb{E}arrow[ddd, "p"] & & & \[-2em]
                & & Xarrow[r, "f"] & Y\
                & pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
                mathbb{B} & & & \[-2em]
                & & Iarrow[r, "u"] & J\
                end{tikzcd}
                ]
                end{document}


                enter image description here






                share|improve this answer















                I would like to argue that it is much easier if you put things in one diagram. That way you have full and easy control over all dimensions. For instance, I added [3em] after&to make the gap between the left and the right two diagrams a bit larger. And, of course,mathbb{E}andmathbb{B}` are automatically aligned with the diagrams on the right.



                documentclass{article}
                usepackage{amsmath,amsfonts}
                usepackage{tikz-cd}
                begin{document}
                [
                begin{tikzcd}
                &[3em] Zarrow[ddr, "h", dashed]arrow[ddrr, "g", bend left]\[-2em]
                mathbb{E}arrow[ddd, "p"] & & & \[-2em]
                & & Xarrow[r, "f"] & Y\
                & pZarrow[ddr, "w", dashed]arrow[ddrr, "pg", bend left]\[-2em]
                mathbb{B} & & & \[-2em]
                & & Iarrow[r, "u"] & J\
                end{tikzcd}
                ]
                end{document}


                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Feb 8 at 16:54

























                answered Feb 7 at 19:49









                marmotmarmot

                100k4115222




                100k4115222






























                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473745%2fhow-to-arrange-commutative-diagrams-in-displayed-form%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

                    Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                    ComboBox Display Member on multiple fields

                    Is it possible to collect Nectar points via Trainline?