How to modify a tikz-cd diagram by changing the placement and length of arrows











up vote
3
down vote

favorite












Consider the following code for a commutative diagram, followed by the output.



documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
A arrow[r, leftrightarrow, "alpha"] arrow[d, "int^a_b", swap] & Cquad(subseteq S) arrow[d, "int^c_d"]\
B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
end{tikzcd}
]
end{document}


A commutative diagram



I'd appreciate help modifying the output in the following ways.




  1. The right downward arrow should be moved left so it seems to connect C to D.

  2. The downward arrows should be longer.

  3. The integral symbols should be longer.










share|improve this question






















  • Why don't you simply use TikZ instead of tikz-cd?
    – Dũng Vũ
    2 days ago












  • @DũngVũ: I guess I could. The only reason I use tikz-cd is because the package manual contains examples that I can very easily repurpose for my needs. If I can get the same results with tikz, it would be an acceptable solution.
    – Evan Aad
    2 days ago

















up vote
3
down vote

favorite












Consider the following code for a commutative diagram, followed by the output.



documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
A arrow[r, leftrightarrow, "alpha"] arrow[d, "int^a_b", swap] & Cquad(subseteq S) arrow[d, "int^c_d"]\
B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
end{tikzcd}
]
end{document}


A commutative diagram



I'd appreciate help modifying the output in the following ways.




  1. The right downward arrow should be moved left so it seems to connect C to D.

  2. The downward arrows should be longer.

  3. The integral symbols should be longer.










share|improve this question






















  • Why don't you simply use TikZ instead of tikz-cd?
    – Dũng Vũ
    2 days ago












  • @DũngVũ: I guess I could. The only reason I use tikz-cd is because the package manual contains examples that I can very easily repurpose for my needs. If I can get the same results with tikz, it would be an acceptable solution.
    – Evan Aad
    2 days ago















up vote
3
down vote

favorite









up vote
3
down vote

favorite











Consider the following code for a commutative diagram, followed by the output.



documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
A arrow[r, leftrightarrow, "alpha"] arrow[d, "int^a_b", swap] & Cquad(subseteq S) arrow[d, "int^c_d"]\
B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
end{tikzcd}
]
end{document}


A commutative diagram



I'd appreciate help modifying the output in the following ways.




  1. The right downward arrow should be moved left so it seems to connect C to D.

  2. The downward arrows should be longer.

  3. The integral symbols should be longer.










share|improve this question













Consider the following code for a commutative diagram, followed by the output.



documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}
A arrow[r, leftrightarrow, "alpha"] arrow[d, "int^a_b", swap] & Cquad(subseteq S) arrow[d, "int^c_d"]\
B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
end{tikzcd}
]
end{document}


A commutative diagram



I'd appreciate help modifying the output in the following ways.




  1. The right downward arrow should be moved left so it seems to connect C to D.

  2. The downward arrows should be longer.

  3. The integral symbols should be longer.







tikz-cd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









Evan Aad

3,66511328




3,66511328












  • Why don't you simply use TikZ instead of tikz-cd?
    – Dũng Vũ
    2 days ago












  • @DũngVũ: I guess I could. The only reason I use tikz-cd is because the package manual contains examples that I can very easily repurpose for my needs. If I can get the same results with tikz, it would be an acceptable solution.
    – Evan Aad
    2 days ago




















  • Why don't you simply use TikZ instead of tikz-cd?
    – Dũng Vũ
    2 days ago












  • @DũngVũ: I guess I could. The only reason I use tikz-cd is because the package manual contains examples that I can very easily repurpose for my needs. If I can get the same results with tikz, it would be an acceptable solution.
    – Evan Aad
    2 days ago


















Why don't you simply use TikZ instead of tikz-cd?
– Dũng Vũ
2 days ago






Why don't you simply use TikZ instead of tikz-cd?
– Dũng Vũ
2 days ago














@DũngVũ: I guess I could. The only reason I use tikz-cd is because the package manual contains examples that I can very easily repurpose for my needs. If I can get the same results with tikz, it would be an acceptable solution.
– Evan Aad
2 days ago






@DũngVũ: I guess I could. The only reason I use tikz-cd is because the package manual contains examples that I can very easily repurpose for my needs. If I can get the same results with tikz, it would be an acceptable solution.
– Evan Aad
2 days ago












3 Answers
3






active

oldest

votes

















up vote
4
down vote



accepted










You can




  1. put C and (subseteq S) in separate cells,

  2. change the distances between columns and rows,

  3. add displaystyle to the integrals.


to get



documentclass{amsart}
usepackage{tikz-cd}
begin{document}
[
begin{tikzcd}[column sep={8mm,between origins},row sep=1.2cm]
A arrow[rr, leftrightarrow, "alpha"] arrow[d, "displaystyleint^a_b", swap]
&& C arrow[d, "displaystyleint^c_d"] &(subseteq S) \
B arrow[rr, leftrightarrow, "beta", swap] && D &(subseteq T)
end{tikzcd}
]
end{document}


enter image description here






share|improve this answer




























    up vote
    3
    down vote













    I am not so skillful in TikZ, but hope that the following solves your first two questions



    documentclass{amsart}
    usepackage{tikz}
    begin{document}
    begin{tikzpicture}
    draw (0,0) node {$A$};
    draw (1.5,0) node {$C$};
    draw (0,-1.5) node {$B$};
    draw (1.5,-1.5) node {$D$};
    draw (2.5,0) node {$(subseteq S)$};
    draw (2.5,-1.5) node {$(subseteq T)$};
    draw[<->] (0.2,0) -- (1.3,0);
    draw[<->] (0.2,-1.5) -- (1.3,-1.5);
    draw[->] (0,-0.2) -- (0,-1.3);
    draw[->] (1.5,-0.2) -- (1.5,-1.3);
    begin{scriptsize}
    draw (0.75,0) node[above] {$alpha$};
    draw (0.75,-1.5) node[below] {$beta$};
    draw (0,-0.75) node[left] {$int_b^a$};
    draw (1.5,-0.75) node[right] {$int_d^c$};
    end{scriptsize}
    end{tikzpicture}
    end{document}


    enter image description here



    For question 3: From my point of view, the integral symbol will look a bit worse if you lengthen the symbol because it doesn't suit the a, b, etc. However, if you really want to lengthen the symbol, I suggest enlarging the whole symbol:



    documentclass{amsart}
    usepackage{tikz}
    begin{document}
    begin{tikzpicture}
    draw (0,0) node {$A$};
    draw (1.5,0) node {$C$};
    draw (0,-1.5) node {$B$};
    draw (1.5,-1.5) node {$D$};
    draw (2.5,0) node {$(subseteq S)$};
    draw (2.5,-1.5) node {$(subseteq T)$};
    draw[<->] (0.2,0) -- (1.3,0);
    draw[<->] (0.2,-1.5) -- (1.3,-1.5);
    draw[->] (0,-0.2) -- (0,-1.3);
    draw[->] (1.5,-0.2) -- (1.5,-1.3);
    begin{scriptsize}
    draw (0.75,0) node[above] {$alpha$};
    draw (0.75,-1.5) node[below] {$beta$};
    end{scriptsize}
    %begin{small}
    draw (0,-0.75) node[left] {$int_b^a$};
    draw (1.5,-0.75) node[right] {$int_d^c$};
    %end{small}
    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer




























      up vote
      2
      down vote














      1. Reposition the arrow using the shift right option. (See tikz-cd manual.)

      2. Extend the downward pointing arrows using the row sep option. (See tikz-cd manual.)

      3. Stretch the integral symbols using the scalerel package, as discussed here.


      Additionally,




      1. The distance between an arrow and its label can be adjusted using the outer sep option, as discussed here.

      2. The arrow tips can be changed using, e.g., arrow style=tikz, >=Latex. (See tikz-cd manual.)


      The revised code is as follows.



      documentclass{amsart}
      usepackage{tikz-cd}
      usepackage{scalerel}
      defstretchint#1{vcenter{hbox{stretchto[440]{displaystyleint}{#1}}}}
      begin{document}
      [
      begin{tikzcd}[row sep = huge, column sep = large, outer sep = 1mm, arrow style=tikz, >=Latex]
      A arrow[r, leftrightarrow, "alpha"] arrow[d, "stretchint{3ex}^a_{hspace{-1.5mm}b}", swap] & Cquad(subseteq S) arrow[d, "stretchint{3ex}^c_{hspace{-1.5mm}d}", shift right = .6cm]\
      B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
      end{tikzcd}
      ]
      end{document}


      Formatted diagram






      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',
        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%2f460272%2fhow-to-modify-a-tikz-cd-diagram-by-changing-the-placement-and-length-of-arrows%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








        up vote
        4
        down vote



        accepted










        You can




        1. put C and (subseteq S) in separate cells,

        2. change the distances between columns and rows,

        3. add displaystyle to the integrals.


        to get



        documentclass{amsart}
        usepackage{tikz-cd}
        begin{document}
        [
        begin{tikzcd}[column sep={8mm,between origins},row sep=1.2cm]
        A arrow[rr, leftrightarrow, "alpha"] arrow[d, "displaystyleint^a_b", swap]
        && C arrow[d, "displaystyleint^c_d"] &(subseteq S) \
        B arrow[rr, leftrightarrow, "beta", swap] && D &(subseteq T)
        end{tikzcd}
        ]
        end{document}


        enter image description here






        share|improve this answer

























          up vote
          4
          down vote



          accepted










          You can




          1. put C and (subseteq S) in separate cells,

          2. change the distances between columns and rows,

          3. add displaystyle to the integrals.


          to get



          documentclass{amsart}
          usepackage{tikz-cd}
          begin{document}
          [
          begin{tikzcd}[column sep={8mm,between origins},row sep=1.2cm]
          A arrow[rr, leftrightarrow, "alpha"] arrow[d, "displaystyleint^a_b", swap]
          && C arrow[d, "displaystyleint^c_d"] &(subseteq S) \
          B arrow[rr, leftrightarrow, "beta", swap] && D &(subseteq T)
          end{tikzcd}
          ]
          end{document}


          enter image description here






          share|improve this answer























            up vote
            4
            down vote



            accepted







            up vote
            4
            down vote



            accepted






            You can




            1. put C and (subseteq S) in separate cells,

            2. change the distances between columns and rows,

            3. add displaystyle to the integrals.


            to get



            documentclass{amsart}
            usepackage{tikz-cd}
            begin{document}
            [
            begin{tikzcd}[column sep={8mm,between origins},row sep=1.2cm]
            A arrow[rr, leftrightarrow, "alpha"] arrow[d, "displaystyleint^a_b", swap]
            && C arrow[d, "displaystyleint^c_d"] &(subseteq S) \
            B arrow[rr, leftrightarrow, "beta", swap] && D &(subseteq T)
            end{tikzcd}
            ]
            end{document}


            enter image description here






            share|improve this answer












            You can




            1. put C and (subseteq S) in separate cells,

            2. change the distances between columns and rows,

            3. add displaystyle to the integrals.


            to get



            documentclass{amsart}
            usepackage{tikz-cd}
            begin{document}
            [
            begin{tikzcd}[column sep={8mm,between origins},row sep=1.2cm]
            A arrow[rr, leftrightarrow, "alpha"] arrow[d, "displaystyleint^a_b", swap]
            && C arrow[d, "displaystyleint^c_d"] &(subseteq S) \
            B arrow[rr, leftrightarrow, "beta", swap] && D &(subseteq T)
            end{tikzcd}
            ]
            end{document}


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 2 days ago









            marmot

            76k486160




            76k486160






















                up vote
                3
                down vote













                I am not so skillful in TikZ, but hope that the following solves your first two questions



                documentclass{amsart}
                usepackage{tikz}
                begin{document}
                begin{tikzpicture}
                draw (0,0) node {$A$};
                draw (1.5,0) node {$C$};
                draw (0,-1.5) node {$B$};
                draw (1.5,-1.5) node {$D$};
                draw (2.5,0) node {$(subseteq S)$};
                draw (2.5,-1.5) node {$(subseteq T)$};
                draw[<->] (0.2,0) -- (1.3,0);
                draw[<->] (0.2,-1.5) -- (1.3,-1.5);
                draw[->] (0,-0.2) -- (0,-1.3);
                draw[->] (1.5,-0.2) -- (1.5,-1.3);
                begin{scriptsize}
                draw (0.75,0) node[above] {$alpha$};
                draw (0.75,-1.5) node[below] {$beta$};
                draw (0,-0.75) node[left] {$int_b^a$};
                draw (1.5,-0.75) node[right] {$int_d^c$};
                end{scriptsize}
                end{tikzpicture}
                end{document}


                enter image description here



                For question 3: From my point of view, the integral symbol will look a bit worse if you lengthen the symbol because it doesn't suit the a, b, etc. However, if you really want to lengthen the symbol, I suggest enlarging the whole symbol:



                documentclass{amsart}
                usepackage{tikz}
                begin{document}
                begin{tikzpicture}
                draw (0,0) node {$A$};
                draw (1.5,0) node {$C$};
                draw (0,-1.5) node {$B$};
                draw (1.5,-1.5) node {$D$};
                draw (2.5,0) node {$(subseteq S)$};
                draw (2.5,-1.5) node {$(subseteq T)$};
                draw[<->] (0.2,0) -- (1.3,0);
                draw[<->] (0.2,-1.5) -- (1.3,-1.5);
                draw[->] (0,-0.2) -- (0,-1.3);
                draw[->] (1.5,-0.2) -- (1.5,-1.3);
                begin{scriptsize}
                draw (0.75,0) node[above] {$alpha$};
                draw (0.75,-1.5) node[below] {$beta$};
                end{scriptsize}
                %begin{small}
                draw (0,-0.75) node[left] {$int_b^a$};
                draw (1.5,-0.75) node[right] {$int_d^c$};
                %end{small}
                end{tikzpicture}
                end{document}


                enter image description here






                share|improve this answer

























                  up vote
                  3
                  down vote













                  I am not so skillful in TikZ, but hope that the following solves your first two questions



                  documentclass{amsart}
                  usepackage{tikz}
                  begin{document}
                  begin{tikzpicture}
                  draw (0,0) node {$A$};
                  draw (1.5,0) node {$C$};
                  draw (0,-1.5) node {$B$};
                  draw (1.5,-1.5) node {$D$};
                  draw (2.5,0) node {$(subseteq S)$};
                  draw (2.5,-1.5) node {$(subseteq T)$};
                  draw[<->] (0.2,0) -- (1.3,0);
                  draw[<->] (0.2,-1.5) -- (1.3,-1.5);
                  draw[->] (0,-0.2) -- (0,-1.3);
                  draw[->] (1.5,-0.2) -- (1.5,-1.3);
                  begin{scriptsize}
                  draw (0.75,0) node[above] {$alpha$};
                  draw (0.75,-1.5) node[below] {$beta$};
                  draw (0,-0.75) node[left] {$int_b^a$};
                  draw (1.5,-0.75) node[right] {$int_d^c$};
                  end{scriptsize}
                  end{tikzpicture}
                  end{document}


                  enter image description here



                  For question 3: From my point of view, the integral symbol will look a bit worse if you lengthen the symbol because it doesn't suit the a, b, etc. However, if you really want to lengthen the symbol, I suggest enlarging the whole symbol:



                  documentclass{amsart}
                  usepackage{tikz}
                  begin{document}
                  begin{tikzpicture}
                  draw (0,0) node {$A$};
                  draw (1.5,0) node {$C$};
                  draw (0,-1.5) node {$B$};
                  draw (1.5,-1.5) node {$D$};
                  draw (2.5,0) node {$(subseteq S)$};
                  draw (2.5,-1.5) node {$(subseteq T)$};
                  draw[<->] (0.2,0) -- (1.3,0);
                  draw[<->] (0.2,-1.5) -- (1.3,-1.5);
                  draw[->] (0,-0.2) -- (0,-1.3);
                  draw[->] (1.5,-0.2) -- (1.5,-1.3);
                  begin{scriptsize}
                  draw (0.75,0) node[above] {$alpha$};
                  draw (0.75,-1.5) node[below] {$beta$};
                  end{scriptsize}
                  %begin{small}
                  draw (0,-0.75) node[left] {$int_b^a$};
                  draw (1.5,-0.75) node[right] {$int_d^c$};
                  %end{small}
                  end{tikzpicture}
                  end{document}


                  enter image description here






                  share|improve this answer























                    up vote
                    3
                    down vote










                    up vote
                    3
                    down vote









                    I am not so skillful in TikZ, but hope that the following solves your first two questions



                    documentclass{amsart}
                    usepackage{tikz}
                    begin{document}
                    begin{tikzpicture}
                    draw (0,0) node {$A$};
                    draw (1.5,0) node {$C$};
                    draw (0,-1.5) node {$B$};
                    draw (1.5,-1.5) node {$D$};
                    draw (2.5,0) node {$(subseteq S)$};
                    draw (2.5,-1.5) node {$(subseteq T)$};
                    draw[<->] (0.2,0) -- (1.3,0);
                    draw[<->] (0.2,-1.5) -- (1.3,-1.5);
                    draw[->] (0,-0.2) -- (0,-1.3);
                    draw[->] (1.5,-0.2) -- (1.5,-1.3);
                    begin{scriptsize}
                    draw (0.75,0) node[above] {$alpha$};
                    draw (0.75,-1.5) node[below] {$beta$};
                    draw (0,-0.75) node[left] {$int_b^a$};
                    draw (1.5,-0.75) node[right] {$int_d^c$};
                    end{scriptsize}
                    end{tikzpicture}
                    end{document}


                    enter image description here



                    For question 3: From my point of view, the integral symbol will look a bit worse if you lengthen the symbol because it doesn't suit the a, b, etc. However, if you really want to lengthen the symbol, I suggest enlarging the whole symbol:



                    documentclass{amsart}
                    usepackage{tikz}
                    begin{document}
                    begin{tikzpicture}
                    draw (0,0) node {$A$};
                    draw (1.5,0) node {$C$};
                    draw (0,-1.5) node {$B$};
                    draw (1.5,-1.5) node {$D$};
                    draw (2.5,0) node {$(subseteq S)$};
                    draw (2.5,-1.5) node {$(subseteq T)$};
                    draw[<->] (0.2,0) -- (1.3,0);
                    draw[<->] (0.2,-1.5) -- (1.3,-1.5);
                    draw[->] (0,-0.2) -- (0,-1.3);
                    draw[->] (1.5,-0.2) -- (1.5,-1.3);
                    begin{scriptsize}
                    draw (0.75,0) node[above] {$alpha$};
                    draw (0.75,-1.5) node[below] {$beta$};
                    end{scriptsize}
                    %begin{small}
                    draw (0,-0.75) node[left] {$int_b^a$};
                    draw (1.5,-0.75) node[right] {$int_d^c$};
                    %end{small}
                    end{tikzpicture}
                    end{document}


                    enter image description here






                    share|improve this answer












                    I am not so skillful in TikZ, but hope that the following solves your first two questions



                    documentclass{amsart}
                    usepackage{tikz}
                    begin{document}
                    begin{tikzpicture}
                    draw (0,0) node {$A$};
                    draw (1.5,0) node {$C$};
                    draw (0,-1.5) node {$B$};
                    draw (1.5,-1.5) node {$D$};
                    draw (2.5,0) node {$(subseteq S)$};
                    draw (2.5,-1.5) node {$(subseteq T)$};
                    draw[<->] (0.2,0) -- (1.3,0);
                    draw[<->] (0.2,-1.5) -- (1.3,-1.5);
                    draw[->] (0,-0.2) -- (0,-1.3);
                    draw[->] (1.5,-0.2) -- (1.5,-1.3);
                    begin{scriptsize}
                    draw (0.75,0) node[above] {$alpha$};
                    draw (0.75,-1.5) node[below] {$beta$};
                    draw (0,-0.75) node[left] {$int_b^a$};
                    draw (1.5,-0.75) node[right] {$int_d^c$};
                    end{scriptsize}
                    end{tikzpicture}
                    end{document}


                    enter image description here



                    For question 3: From my point of view, the integral symbol will look a bit worse if you lengthen the symbol because it doesn't suit the a, b, etc. However, if you really want to lengthen the symbol, I suggest enlarging the whole symbol:



                    documentclass{amsart}
                    usepackage{tikz}
                    begin{document}
                    begin{tikzpicture}
                    draw (0,0) node {$A$};
                    draw (1.5,0) node {$C$};
                    draw (0,-1.5) node {$B$};
                    draw (1.5,-1.5) node {$D$};
                    draw (2.5,0) node {$(subseteq S)$};
                    draw (2.5,-1.5) node {$(subseteq T)$};
                    draw[<->] (0.2,0) -- (1.3,0);
                    draw[<->] (0.2,-1.5) -- (1.3,-1.5);
                    draw[->] (0,-0.2) -- (0,-1.3);
                    draw[->] (1.5,-0.2) -- (1.5,-1.3);
                    begin{scriptsize}
                    draw (0.75,0) node[above] {$alpha$};
                    draw (0.75,-1.5) node[below] {$beta$};
                    end{scriptsize}
                    %begin{small}
                    draw (0,-0.75) node[left] {$int_b^a$};
                    draw (1.5,-0.75) node[right] {$int_d^c$};
                    %end{small}
                    end{tikzpicture}
                    end{document}


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 2 days ago









                    Dũng Vũ

                    1,04918




                    1,04918






















                        up vote
                        2
                        down vote














                        1. Reposition the arrow using the shift right option. (See tikz-cd manual.)

                        2. Extend the downward pointing arrows using the row sep option. (See tikz-cd manual.)

                        3. Stretch the integral symbols using the scalerel package, as discussed here.


                        Additionally,




                        1. The distance between an arrow and its label can be adjusted using the outer sep option, as discussed here.

                        2. The arrow tips can be changed using, e.g., arrow style=tikz, >=Latex. (See tikz-cd manual.)


                        The revised code is as follows.



                        documentclass{amsart}
                        usepackage{tikz-cd}
                        usepackage{scalerel}
                        defstretchint#1{vcenter{hbox{stretchto[440]{displaystyleint}{#1}}}}
                        begin{document}
                        [
                        begin{tikzcd}[row sep = huge, column sep = large, outer sep = 1mm, arrow style=tikz, >=Latex]
                        A arrow[r, leftrightarrow, "alpha"] arrow[d, "stretchint{3ex}^a_{hspace{-1.5mm}b}", swap] & Cquad(subseteq S) arrow[d, "stretchint{3ex}^c_{hspace{-1.5mm}d}", shift right = .6cm]\
                        B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
                        end{tikzcd}
                        ]
                        end{document}


                        Formatted diagram






                        share|improve this answer



























                          up vote
                          2
                          down vote














                          1. Reposition the arrow using the shift right option. (See tikz-cd manual.)

                          2. Extend the downward pointing arrows using the row sep option. (See tikz-cd manual.)

                          3. Stretch the integral symbols using the scalerel package, as discussed here.


                          Additionally,




                          1. The distance between an arrow and its label can be adjusted using the outer sep option, as discussed here.

                          2. The arrow tips can be changed using, e.g., arrow style=tikz, >=Latex. (See tikz-cd manual.)


                          The revised code is as follows.



                          documentclass{amsart}
                          usepackage{tikz-cd}
                          usepackage{scalerel}
                          defstretchint#1{vcenter{hbox{stretchto[440]{displaystyleint}{#1}}}}
                          begin{document}
                          [
                          begin{tikzcd}[row sep = huge, column sep = large, outer sep = 1mm, arrow style=tikz, >=Latex]
                          A arrow[r, leftrightarrow, "alpha"] arrow[d, "stretchint{3ex}^a_{hspace{-1.5mm}b}", swap] & Cquad(subseteq S) arrow[d, "stretchint{3ex}^c_{hspace{-1.5mm}d}", shift right = .6cm]\
                          B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
                          end{tikzcd}
                          ]
                          end{document}


                          Formatted diagram






                          share|improve this answer

























                            up vote
                            2
                            down vote










                            up vote
                            2
                            down vote










                            1. Reposition the arrow using the shift right option. (See tikz-cd manual.)

                            2. Extend the downward pointing arrows using the row sep option. (See tikz-cd manual.)

                            3. Stretch the integral symbols using the scalerel package, as discussed here.


                            Additionally,




                            1. The distance between an arrow and its label can be adjusted using the outer sep option, as discussed here.

                            2. The arrow tips can be changed using, e.g., arrow style=tikz, >=Latex. (See tikz-cd manual.)


                            The revised code is as follows.



                            documentclass{amsart}
                            usepackage{tikz-cd}
                            usepackage{scalerel}
                            defstretchint#1{vcenter{hbox{stretchto[440]{displaystyleint}{#1}}}}
                            begin{document}
                            [
                            begin{tikzcd}[row sep = huge, column sep = large, outer sep = 1mm, arrow style=tikz, >=Latex]
                            A arrow[r, leftrightarrow, "alpha"] arrow[d, "stretchint{3ex}^a_{hspace{-1.5mm}b}", swap] & Cquad(subseteq S) arrow[d, "stretchint{3ex}^c_{hspace{-1.5mm}d}", shift right = .6cm]\
                            B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
                            end{tikzcd}
                            ]
                            end{document}


                            Formatted diagram






                            share|improve this answer















                            1. Reposition the arrow using the shift right option. (See tikz-cd manual.)

                            2. Extend the downward pointing arrows using the row sep option. (See tikz-cd manual.)

                            3. Stretch the integral symbols using the scalerel package, as discussed here.


                            Additionally,




                            1. The distance between an arrow and its label can be adjusted using the outer sep option, as discussed here.

                            2. The arrow tips can be changed using, e.g., arrow style=tikz, >=Latex. (See tikz-cd manual.)


                            The revised code is as follows.



                            documentclass{amsart}
                            usepackage{tikz-cd}
                            usepackage{scalerel}
                            defstretchint#1{vcenter{hbox{stretchto[440]{displaystyleint}{#1}}}}
                            begin{document}
                            [
                            begin{tikzcd}[row sep = huge, column sep = large, outer sep = 1mm, arrow style=tikz, >=Latex]
                            A arrow[r, leftrightarrow, "alpha"] arrow[d, "stretchint{3ex}^a_{hspace{-1.5mm}b}", swap] & Cquad(subseteq S) arrow[d, "stretchint{3ex}^c_{hspace{-1.5mm}d}", shift right = .6cm]\
                            B arrow[r, leftrightarrow, "beta", swap] & Dquad(subseteq T)
                            end{tikzcd}
                            ]
                            end{document}


                            Formatted diagram







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited 2 days ago

























                            answered 2 days ago









                            Evan Aad

                            3,66511328




                            3,66511328






























                                 

                                draft saved


                                draft discarded



















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460272%2fhow-to-modify-a-tikz-cd-diagram-by-changing-the-placement-and-length-of-arrows%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

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

                                Alcedinidae

                                RAC Tourist Trophy