Overlapping arrow and twisted labels in tikz-cd

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












The tikz-cd code



documentclass[standalone]standalone
usepackageamsmath,mathtools
usepackageamsfonts
usepackagetikz
usepackagecaption
usetikzlibraryarrows
usetikzlibrarycd

newcommandctext[1]textmakebox[0pt]#1

begindocument
beginfigure[![enter image description here][1]][1]
begintikzcd
&&sigma_0arrow[r]&vphantomX \
sigma_initarrow[rru,"ctextcdsa_in(1)",sloped, start anchor=center,shorten <= .5em]arrow[rrd,"ctextcdsa_in(n)", rotate=-1.25, sloped,start anchor=center, shorten <= .5em]&&& \
&&vphantomXsigma_narrow[r]&vphantomX \
endtikzcd
endfigure
enddocument


creates the diagram



enter image description here



The use of the macro ctext etc solve a problem of centering the labels and the key word rotate is used to better align cdsa_in with it's arrow.



  • does an alternative exist that better align labeled with the associated arrow?

  • The arrow is over the subscript init how can this be solved?









share|improve this question

























    up vote
    2
    down vote

    favorite












    The tikz-cd code



    documentclass[standalone]standalone
    usepackageamsmath,mathtools
    usepackageamsfonts
    usepackagetikz
    usepackagecaption
    usetikzlibraryarrows
    usetikzlibrarycd

    newcommandctext[1]textmakebox[0pt]#1

    begindocument
    beginfigure[![enter image description here][1]][1]
    begintikzcd
    &&sigma_0arrow[r]&vphantomX \
    sigma_initarrow[rru,"ctextcdsa_in(1)",sloped, start anchor=center,shorten <= .5em]arrow[rrd,"ctextcdsa_in(n)", rotate=-1.25, sloped,start anchor=center, shorten <= .5em]&&& \
    &&vphantomXsigma_narrow[r]&vphantomX \
    endtikzcd
    endfigure
    enddocument


    creates the diagram



    enter image description here



    The use of the macro ctext etc solve a problem of centering the labels and the key word rotate is used to better align cdsa_in with it's arrow.



    • does an alternative exist that better align labeled with the associated arrow?

    • The arrow is over the subscript init how can this be solved?









    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      The tikz-cd code



      documentclass[standalone]standalone
      usepackageamsmath,mathtools
      usepackageamsfonts
      usepackagetikz
      usepackagecaption
      usetikzlibraryarrows
      usetikzlibrarycd

      newcommandctext[1]textmakebox[0pt]#1

      begindocument
      beginfigure[![enter image description here][1]][1]
      begintikzcd
      &&sigma_0arrow[r]&vphantomX \
      sigma_initarrow[rru,"ctextcdsa_in(1)",sloped, start anchor=center,shorten <= .5em]arrow[rrd,"ctextcdsa_in(n)", rotate=-1.25, sloped,start anchor=center, shorten <= .5em]&&& \
      &&vphantomXsigma_narrow[r]&vphantomX \
      endtikzcd
      endfigure
      enddocument


      creates the diagram



      enter image description here



      The use of the macro ctext etc solve a problem of centering the labels and the key word rotate is used to better align cdsa_in with it's arrow.



      • does an alternative exist that better align labeled with the associated arrow?

      • The arrow is over the subscript init how can this be solved?









      share|improve this question













      The tikz-cd code



      documentclass[standalone]standalone
      usepackageamsmath,mathtools
      usepackageamsfonts
      usepackagetikz
      usepackagecaption
      usetikzlibraryarrows
      usetikzlibrarycd

      newcommandctext[1]textmakebox[0pt]#1

      begindocument
      beginfigure[![enter image description here][1]][1]
      begintikzcd
      &&sigma_0arrow[r]&vphantomX \
      sigma_initarrow[rru,"ctextcdsa_in(1)",sloped, start anchor=center,shorten <= .5em]arrow[rrd,"ctextcdsa_in(n)", rotate=-1.25, sloped,start anchor=center, shorten <= .5em]&&& \
      &&vphantomXsigma_narrow[r]&vphantomX \
      endtikzcd
      endfigure
      enddocument


      creates the diagram



      enter image description here



      The use of the macro ctext etc solve a problem of centering the labels and the key word rotate is used to better align cdsa_in with it's arrow.



      • does an alternative exist that better align labeled with the associated arrow?

      • The arrow is over the subscript init how can this be solved?






      tikz-cd






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      Johan

      1726




      1726




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          I think you're complicating your life.



          Here a simpler code: nodes in empty cells allows to avoid phantoms, &[16pt] add some space between the first two columns, no need to create an empty one.



          Off-topic: a figure environment in a standalone document has no sense.



          documentclassstandalone
          usepackageamsmath,mathtools
          usepackageamsfonts
          usepackagetikz
          usepackagecaption
          usetikzlibraryarrows
          usetikzlibrarycd

          newcommandctext[1]textmakebox[0pt]#1

          begindocument
          begintikzcd[nodes in empty cells]
          &[16pt] sigma_0arrow[r]& \
          sigma_initarrow[ru,"ctextcdsa_in(1)", sloped]arrow[rd,"ctextcdsa_in(n)", swap, sloped]&& \
          &sigma_narrow[r]&
          endtikzcd
          enddocument


          enter image description here






          share|improve this answer




















          • +1 for your initial comment :-).
            – Sebastiano
            1 hour ago










          • @Sebastiano Thank you, sometimes it happens :)
            – CarLaTeX
            1 hour ago










          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%2f457763%2foverlapping-arrow-and-twisted-labels-in-tikz-cd%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          I think you're complicating your life.



          Here a simpler code: nodes in empty cells allows to avoid phantoms, &[16pt] add some space between the first two columns, no need to create an empty one.



          Off-topic: a figure environment in a standalone document has no sense.



          documentclassstandalone
          usepackageamsmath,mathtools
          usepackageamsfonts
          usepackagetikz
          usepackagecaption
          usetikzlibraryarrows
          usetikzlibrarycd

          newcommandctext[1]textmakebox[0pt]#1

          begindocument
          begintikzcd[nodes in empty cells]
          &[16pt] sigma_0arrow[r]& \
          sigma_initarrow[ru,"ctextcdsa_in(1)", sloped]arrow[rd,"ctextcdsa_in(n)", swap, sloped]&& \
          &sigma_narrow[r]&
          endtikzcd
          enddocument


          enter image description here






          share|improve this answer




















          • +1 for your initial comment :-).
            – Sebastiano
            1 hour ago










          • @Sebastiano Thank you, sometimes it happens :)
            – CarLaTeX
            1 hour ago














          up vote
          5
          down vote



          accepted










          I think you're complicating your life.



          Here a simpler code: nodes in empty cells allows to avoid phantoms, &[16pt] add some space between the first two columns, no need to create an empty one.



          Off-topic: a figure environment in a standalone document has no sense.



          documentclassstandalone
          usepackageamsmath,mathtools
          usepackageamsfonts
          usepackagetikz
          usepackagecaption
          usetikzlibraryarrows
          usetikzlibrarycd

          newcommandctext[1]textmakebox[0pt]#1

          begindocument
          begintikzcd[nodes in empty cells]
          &[16pt] sigma_0arrow[r]& \
          sigma_initarrow[ru,"ctextcdsa_in(1)", sloped]arrow[rd,"ctextcdsa_in(n)", swap, sloped]&& \
          &sigma_narrow[r]&
          endtikzcd
          enddocument


          enter image description here






          share|improve this answer




















          • +1 for your initial comment :-).
            – Sebastiano
            1 hour ago










          • @Sebastiano Thank you, sometimes it happens :)
            – CarLaTeX
            1 hour ago












          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          I think you're complicating your life.



          Here a simpler code: nodes in empty cells allows to avoid phantoms, &[16pt] add some space between the first two columns, no need to create an empty one.



          Off-topic: a figure environment in a standalone document has no sense.



          documentclassstandalone
          usepackageamsmath,mathtools
          usepackageamsfonts
          usepackagetikz
          usepackagecaption
          usetikzlibraryarrows
          usetikzlibrarycd

          newcommandctext[1]textmakebox[0pt]#1

          begindocument
          begintikzcd[nodes in empty cells]
          &[16pt] sigma_0arrow[r]& \
          sigma_initarrow[ru,"ctextcdsa_in(1)", sloped]arrow[rd,"ctextcdsa_in(n)", swap, sloped]&& \
          &sigma_narrow[r]&
          endtikzcd
          enddocument


          enter image description here






          share|improve this answer












          I think you're complicating your life.



          Here a simpler code: nodes in empty cells allows to avoid phantoms, &[16pt] add some space between the first two columns, no need to create an empty one.



          Off-topic: a figure environment in a standalone document has no sense.



          documentclassstandalone
          usepackageamsmath,mathtools
          usepackageamsfonts
          usepackagetikz
          usepackagecaption
          usetikzlibraryarrows
          usetikzlibrarycd

          newcommandctext[1]textmakebox[0pt]#1

          begindocument
          begintikzcd[nodes in empty cells]
          &[16pt] sigma_0arrow[r]& \
          sigma_initarrow[ru,"ctextcdsa_in(1)", sloped]arrow[rd,"ctextcdsa_in(n)", swap, sloped]&& \
          &sigma_narrow[r]&
          endtikzcd
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          CarLaTeX

          26.7k444117




          26.7k444117











          • +1 for your initial comment :-).
            – Sebastiano
            1 hour ago










          • @Sebastiano Thank you, sometimes it happens :)
            – CarLaTeX
            1 hour ago
















          • +1 for your initial comment :-).
            – Sebastiano
            1 hour ago










          • @Sebastiano Thank you, sometimes it happens :)
            – CarLaTeX
            1 hour ago















          +1 for your initial comment :-).
          – Sebastiano
          1 hour ago




          +1 for your initial comment :-).
          – Sebastiano
          1 hour ago












          @Sebastiano Thank you, sometimes it happens :)
          – CarLaTeX
          1 hour ago




          @Sebastiano Thank you, sometimes it happens :)
          – CarLaTeX
          1 hour ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457763%2foverlapping-arrow-and-twisted-labels-in-tikz-cd%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?