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












3















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?

    – JouleV
    Nov 16 '18 at 11:05













  • @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
    Nov 16 '18 at 11:07


















3















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?

    – JouleV
    Nov 16 '18 at 11:05













  • @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
    Nov 16 '18 at 11:07
















3












3








3








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 Nov 16 '18 at 10:43









Evan AadEvan Aad

3,73511330




3,73511330













  • Why don't you simply use TikZ instead of tikz-cd?

    – JouleV
    Nov 16 '18 at 11:05













  • @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
    Nov 16 '18 at 11:07





















  • Why don't you simply use TikZ instead of tikz-cd?

    – JouleV
    Nov 16 '18 at 11:05













  • @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
    Nov 16 '18 at 11:07



















Why don't you simply use TikZ instead of tikz-cd?

– JouleV
Nov 16 '18 at 11:05







Why don't you simply use TikZ instead of tikz-cd?

– JouleV
Nov 16 '18 at 11:05















@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
Nov 16 '18 at 11:07







@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
Nov 16 '18 at 11:07












3 Answers
3






active

oldest

votes


















4














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































    3














    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































      2















      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',
        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%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









        4














        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




























          4














          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


























            4












            4








            4







            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 Nov 16 '18 at 13:54









            marmotmarmot

            95.7k4110210




            95.7k4110210























                3














                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




























                  3














                  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


























                    3












                    3








                    3







                    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 Nov 16 '18 at 11:35









                    JouleVJouleV

                    2,499628




                    2,499628























                        2















                        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






























                          2















                          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




























                            2












                            2








                            2








                            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 Nov 16 '18 at 14:17

























                            answered Nov 16 '18 at 14:04









                            Evan AadEvan Aad

                            3,73511330




                            3,73511330






























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







                                這個網誌中的熱門文章

                                Tangent Lines Diagram Along Smooth Curve

                                Yusuf al-Mu'taman ibn Hud

                                Zucchini