arrow length and text placing to left in tikzcd












3















I am trying this:



documentclass[10pt]{article}

usepackage{amsmath,amssymb,tikz-cd}

begin{document}

begin{equation*}
begin{tikzcd}[row sep=huge]

A arrow[r, "aaa"] arrow[d, "xxxx"] & B arrow[d, "yyyy"] \

C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \

end{tikzcd}

end{equation*}

end{document}


and I would like to fix 2 things:



1) The arrow over the "bbbbbbbbbbbbbbbbbbbb" label should be longer, so the pic does not look so cramped.
2) I would like the "xxxx" label to be on the left of the down arrow.



Thank you.










share|improve this question





























    3















    I am trying this:



    documentclass[10pt]{article}

    usepackage{amsmath,amssymb,tikz-cd}

    begin{document}

    begin{equation*}
    begin{tikzcd}[row sep=huge]

    A arrow[r, "aaa"] arrow[d, "xxxx"] & B arrow[d, "yyyy"] \

    C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \

    end{tikzcd}

    end{equation*}

    end{document}


    and I would like to fix 2 things:



    1) The arrow over the "bbbbbbbbbbbbbbbbbbbb" label should be longer, so the pic does not look so cramped.
    2) I would like the "xxxx" label to be on the left of the down arrow.



    Thank you.










    share|improve this question



























      3












      3








      3








      I am trying this:



      documentclass[10pt]{article}

      usepackage{amsmath,amssymb,tikz-cd}

      begin{document}

      begin{equation*}
      begin{tikzcd}[row sep=huge]

      A arrow[r, "aaa"] arrow[d, "xxxx"] & B arrow[d, "yyyy"] \

      C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \

      end{tikzcd}

      end{equation*}

      end{document}


      and I would like to fix 2 things:



      1) The arrow over the "bbbbbbbbbbbbbbbbbbbb" label should be longer, so the pic does not look so cramped.
      2) I would like the "xxxx" label to be on the left of the down arrow.



      Thank you.










      share|improve this question
















      I am trying this:



      documentclass[10pt]{article}

      usepackage{amsmath,amssymb,tikz-cd}

      begin{document}

      begin{equation*}
      begin{tikzcd}[row sep=huge]

      A arrow[r, "aaa"] arrow[d, "xxxx"] & B arrow[d, "yyyy"] \

      C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \

      end{tikzcd}

      end{equation*}

      end{document}


      and I would like to fix 2 things:



      1) The arrow over the "bbbbbbbbbbbbbbbbbbbb" label should be longer, so the pic does not look so cramped.
      2) I would like the "xxxx" label to be on the left of the down arrow.



      Thank you.







      arrows tikz-cd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago









      marmot

      94.6k4109209




      94.6k4109209










      asked 2 days ago









      district9district9

      562




      562






















          2 Answers
          2






          active

          oldest

          votes


















          2














          Like this?



          documentclass[10pt]{article}

          usepackage{amsmath,amssymb,tikz-cd}

          begin{document}

          begin{equation*}
          begin{tikzcd}[row sep=huge,column sep=width("bbbbbbbbbbbbbbbbb")]
          A arrow[r, "aaa"] arrow[d, "mathrm{xxxx}" swap] & B arrow[d,
          "mathrm{yyyy}"] \
          C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
          end{tikzcd}
          end{equation*}

          end{document}


          enter image description here






          share|improve this answer


























          • The arrow length over the "bbbbbbb" is perfect, thank you. But I want the "xxx" label to be at the same height as the "yyyyy" label, but to the left of the A to C downarrow.

            – district9
            2 days ago











          • @district9 Yes, in the updated version it is there. (I misread your question first.)

            – marmot
            2 days ago











          • Almost there, I just need to make the label on the arrow in roman. I tried to replace the arrow[d, "yyyy"] with arrow[d, {rm "yyyy"}], but it does not seem to compile. Thanks!

            – district9
            2 days ago











          • @district9 Sorry, was offline. You need to put the information inside the quotes (and mathrm is more appropriate than rm). I made xxxx and yyy upright. There also different options like text or mathup, it depends on what you really aim at.

            – marmot
            2 days ago





















          2














          From the TikZ manual, Section 20.3.2 Setting and Adjusting Column and Row Spacing




          The cell separation character & also takes an optional argument, which
          must also be a spacing list. This spacing list is added to the column
          sep having a similar effect as the option for the \ command for rows.

          This optional spacing list can only be given the first time a new
          column is started (usually in the first row), subsequent usages of
          this option in later rows have no effect.




          In practice, if you put a [<width>] after &, for example &[7em], you can enlarge the space between the two columns separated by &[<width>] as you wish.



          The option column sep=<width> sets a default spacing for all columns.



          This difference could be relevant in case you have a matrix with more than two columns. If you want to enlarge only the space between the first and the second columns, but not between the second and the third, &[<width>] should be used, not column sep=<width>.



          Option swap to change the position of the label.



          documentclass[10pt]{article}

          usepackage{amsmath,amssymb,tikz-cd}

          begin{document}

          begin{equation*}
          begin{tikzcd}[row sep=huge]
          A arrow[r, "aaa"] arrow[d, "xxxx", swap] &[7em] B arrow[d, "yyyy"] \
          C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
          end{tikzcd}
          end{equation*}

          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%2f471711%2farrow-length-and-text-placing-to-left-in-tikzcd%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









            2














            Like this?



            documentclass[10pt]{article}

            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            begin{equation*}
            begin{tikzcd}[row sep=huge,column sep=width("bbbbbbbbbbbbbbbbb")]
            A arrow[r, "aaa"] arrow[d, "mathrm{xxxx}" swap] & B arrow[d,
            "mathrm{yyyy}"] \
            C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
            end{tikzcd}
            end{equation*}

            end{document}


            enter image description here






            share|improve this answer


























            • The arrow length over the "bbbbbbb" is perfect, thank you. But I want the "xxx" label to be at the same height as the "yyyyy" label, but to the left of the A to C downarrow.

              – district9
              2 days ago











            • @district9 Yes, in the updated version it is there. (I misread your question first.)

              – marmot
              2 days ago











            • Almost there, I just need to make the label on the arrow in roman. I tried to replace the arrow[d, "yyyy"] with arrow[d, {rm "yyyy"}], but it does not seem to compile. Thanks!

              – district9
              2 days ago











            • @district9 Sorry, was offline. You need to put the information inside the quotes (and mathrm is more appropriate than rm). I made xxxx and yyy upright. There also different options like text or mathup, it depends on what you really aim at.

              – marmot
              2 days ago


















            2














            Like this?



            documentclass[10pt]{article}

            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            begin{equation*}
            begin{tikzcd}[row sep=huge,column sep=width("bbbbbbbbbbbbbbbbb")]
            A arrow[r, "aaa"] arrow[d, "mathrm{xxxx}" swap] & B arrow[d,
            "mathrm{yyyy}"] \
            C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
            end{tikzcd}
            end{equation*}

            end{document}


            enter image description here






            share|improve this answer


























            • The arrow length over the "bbbbbbb" is perfect, thank you. But I want the "xxx" label to be at the same height as the "yyyyy" label, but to the left of the A to C downarrow.

              – district9
              2 days ago











            • @district9 Yes, in the updated version it is there. (I misread your question first.)

              – marmot
              2 days ago











            • Almost there, I just need to make the label on the arrow in roman. I tried to replace the arrow[d, "yyyy"] with arrow[d, {rm "yyyy"}], but it does not seem to compile. Thanks!

              – district9
              2 days ago











            • @district9 Sorry, was offline. You need to put the information inside the quotes (and mathrm is more appropriate than rm). I made xxxx and yyy upright. There also different options like text or mathup, it depends on what you really aim at.

              – marmot
              2 days ago
















            2












            2








            2







            Like this?



            documentclass[10pt]{article}

            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            begin{equation*}
            begin{tikzcd}[row sep=huge,column sep=width("bbbbbbbbbbbbbbbbb")]
            A arrow[r, "aaa"] arrow[d, "mathrm{xxxx}" swap] & B arrow[d,
            "mathrm{yyyy}"] \
            C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
            end{tikzcd}
            end{equation*}

            end{document}


            enter image description here






            share|improve this answer















            Like this?



            documentclass[10pt]{article}

            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            begin{equation*}
            begin{tikzcd}[row sep=huge,column sep=width("bbbbbbbbbbbbbbbbb")]
            A arrow[r, "aaa"] arrow[d, "mathrm{xxxx}" swap] & B arrow[d,
            "mathrm{yyyy}"] \
            C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
            end{tikzcd}
            end{equation*}

            end{document}


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 2 days ago

























            answered 2 days ago









            marmotmarmot

            94.6k4109209




            94.6k4109209













            • The arrow length over the "bbbbbbb" is perfect, thank you. But I want the "xxx" label to be at the same height as the "yyyyy" label, but to the left of the A to C downarrow.

              – district9
              2 days ago











            • @district9 Yes, in the updated version it is there. (I misread your question first.)

              – marmot
              2 days ago











            • Almost there, I just need to make the label on the arrow in roman. I tried to replace the arrow[d, "yyyy"] with arrow[d, {rm "yyyy"}], but it does not seem to compile. Thanks!

              – district9
              2 days ago











            • @district9 Sorry, was offline. You need to put the information inside the quotes (and mathrm is more appropriate than rm). I made xxxx and yyy upright. There also different options like text or mathup, it depends on what you really aim at.

              – marmot
              2 days ago





















            • The arrow length over the "bbbbbbb" is perfect, thank you. But I want the "xxx" label to be at the same height as the "yyyyy" label, but to the left of the A to C downarrow.

              – district9
              2 days ago











            • @district9 Yes, in the updated version it is there. (I misread your question first.)

              – marmot
              2 days ago











            • Almost there, I just need to make the label on the arrow in roman. I tried to replace the arrow[d, "yyyy"] with arrow[d, {rm "yyyy"}], but it does not seem to compile. Thanks!

              – district9
              2 days ago











            • @district9 Sorry, was offline. You need to put the information inside the quotes (and mathrm is more appropriate than rm). I made xxxx and yyy upright. There also different options like text or mathup, it depends on what you really aim at.

              – marmot
              2 days ago



















            The arrow length over the "bbbbbbb" is perfect, thank you. But I want the "xxx" label to be at the same height as the "yyyyy" label, but to the left of the A to C downarrow.

            – district9
            2 days ago





            The arrow length over the "bbbbbbb" is perfect, thank you. But I want the "xxx" label to be at the same height as the "yyyyy" label, but to the left of the A to C downarrow.

            – district9
            2 days ago













            @district9 Yes, in the updated version it is there. (I misread your question first.)

            – marmot
            2 days ago





            @district9 Yes, in the updated version it is there. (I misread your question first.)

            – marmot
            2 days ago













            Almost there, I just need to make the label on the arrow in roman. I tried to replace the arrow[d, "yyyy"] with arrow[d, {rm "yyyy"}], but it does not seem to compile. Thanks!

            – district9
            2 days ago





            Almost there, I just need to make the label on the arrow in roman. I tried to replace the arrow[d, "yyyy"] with arrow[d, {rm "yyyy"}], but it does not seem to compile. Thanks!

            – district9
            2 days ago













            @district9 Sorry, was offline. You need to put the information inside the quotes (and mathrm is more appropriate than rm). I made xxxx and yyy upright. There also different options like text or mathup, it depends on what you really aim at.

            – marmot
            2 days ago







            @district9 Sorry, was offline. You need to put the information inside the quotes (and mathrm is more appropriate than rm). I made xxxx and yyy upright. There also different options like text or mathup, it depends on what you really aim at.

            – marmot
            2 days ago













            2














            From the TikZ manual, Section 20.3.2 Setting and Adjusting Column and Row Spacing




            The cell separation character & also takes an optional argument, which
            must also be a spacing list. This spacing list is added to the column
            sep having a similar effect as the option for the \ command for rows.

            This optional spacing list can only be given the first time a new
            column is started (usually in the first row), subsequent usages of
            this option in later rows have no effect.




            In practice, if you put a [<width>] after &, for example &[7em], you can enlarge the space between the two columns separated by &[<width>] as you wish.



            The option column sep=<width> sets a default spacing for all columns.



            This difference could be relevant in case you have a matrix with more than two columns. If you want to enlarge only the space between the first and the second columns, but not between the second and the third, &[<width>] should be used, not column sep=<width>.



            Option swap to change the position of the label.



            documentclass[10pt]{article}

            usepackage{amsmath,amssymb,tikz-cd}

            begin{document}

            begin{equation*}
            begin{tikzcd}[row sep=huge]
            A arrow[r, "aaa"] arrow[d, "xxxx", swap] &[7em] B arrow[d, "yyyy"] \
            C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
            end{tikzcd}
            end{equation*}

            end{document}


            enter image description here






            share|improve this answer






























              2














              From the TikZ manual, Section 20.3.2 Setting and Adjusting Column and Row Spacing




              The cell separation character & also takes an optional argument, which
              must also be a spacing list. This spacing list is added to the column
              sep having a similar effect as the option for the \ command for rows.

              This optional spacing list can only be given the first time a new
              column is started (usually in the first row), subsequent usages of
              this option in later rows have no effect.




              In practice, if you put a [<width>] after &, for example &[7em], you can enlarge the space between the two columns separated by &[<width>] as you wish.



              The option column sep=<width> sets a default spacing for all columns.



              This difference could be relevant in case you have a matrix with more than two columns. If you want to enlarge only the space between the first and the second columns, but not between the second and the third, &[<width>] should be used, not column sep=<width>.



              Option swap to change the position of the label.



              documentclass[10pt]{article}

              usepackage{amsmath,amssymb,tikz-cd}

              begin{document}

              begin{equation*}
              begin{tikzcd}[row sep=huge]
              A arrow[r, "aaa"] arrow[d, "xxxx", swap] &[7em] B arrow[d, "yyyy"] \
              C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
              end{tikzcd}
              end{equation*}

              end{document}


              enter image description here






              share|improve this answer




























                2












                2








                2







                From the TikZ manual, Section 20.3.2 Setting and Adjusting Column and Row Spacing




                The cell separation character & also takes an optional argument, which
                must also be a spacing list. This spacing list is added to the column
                sep having a similar effect as the option for the \ command for rows.

                This optional spacing list can only be given the first time a new
                column is started (usually in the first row), subsequent usages of
                this option in later rows have no effect.




                In practice, if you put a [<width>] after &, for example &[7em], you can enlarge the space between the two columns separated by &[<width>] as you wish.



                The option column sep=<width> sets a default spacing for all columns.



                This difference could be relevant in case you have a matrix with more than two columns. If you want to enlarge only the space between the first and the second columns, but not between the second and the third, &[<width>] should be used, not column sep=<width>.



                Option swap to change the position of the label.



                documentclass[10pt]{article}

                usepackage{amsmath,amssymb,tikz-cd}

                begin{document}

                begin{equation*}
                begin{tikzcd}[row sep=huge]
                A arrow[r, "aaa"] arrow[d, "xxxx", swap] &[7em] B arrow[d, "yyyy"] \
                C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
                end{tikzcd}
                end{equation*}

                end{document}


                enter image description here






                share|improve this answer















                From the TikZ manual, Section 20.3.2 Setting and Adjusting Column and Row Spacing




                The cell separation character & also takes an optional argument, which
                must also be a spacing list. This spacing list is added to the column
                sep having a similar effect as the option for the \ command for rows.

                This optional spacing list can only be given the first time a new
                column is started (usually in the first row), subsequent usages of
                this option in later rows have no effect.




                In practice, if you put a [<width>] after &, for example &[7em], you can enlarge the space between the two columns separated by &[<width>] as you wish.



                The option column sep=<width> sets a default spacing for all columns.



                This difference could be relevant in case you have a matrix with more than two columns. If you want to enlarge only the space between the first and the second columns, but not between the second and the third, &[<width>] should be used, not column sep=<width>.



                Option swap to change the position of the label.



                documentclass[10pt]{article}

                usepackage{amsmath,amssymb,tikz-cd}

                begin{document}

                begin{equation*}
                begin{tikzcd}[row sep=huge]
                A arrow[r, "aaa"] arrow[d, "xxxx", swap] &[7em] B arrow[d, "yyyy"] \
                C & D arrow[l, "bbbbbbbbbbbbbbbbb"] \
                end{tikzcd}
                end{equation*}

                end{document}


                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited yesterday

























                answered 2 days ago









                CarLaTeXCarLaTeX

                30.7k449129




                30.7k449129






























                    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%2f471711%2farrow-length-and-text-placing-to-left-in-tikzcd%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

                    Origin of the phrase “under your belt”?