Aligning text on edge

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











up vote
2
down vote

favorite












I cannot figure out why the text on the edge is not entered. What am I doing wrong?



documentclass[margin=1mm]standalone


usepackagetikz
usetikzlibrarypositioning

begindocument

begintikzpicture
node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above,text width=1.5cm, align=center] Asynchronous\[-3pt]replication (r1);
endtikzpicture

enddocument


enter image description here







share|improve this question


























    up vote
    2
    down vote

    favorite












    I cannot figure out why the text on the edge is not entered. What am I doing wrong?



    documentclass[margin=1mm]standalone


    usepackagetikz
    usetikzlibrarypositioning

    begindocument

    begintikzpicture
    node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

    node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above,text width=1.5cm, align=center] Asynchronous\[-3pt]replication (r1);
    endtikzpicture

    enddocument


    enter image description here







    share|improve this question
























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I cannot figure out why the text on the edge is not entered. What am I doing wrong?



      documentclass[margin=1mm]standalone


      usepackagetikz
      usetikzlibrarypositioning

      begindocument

      begintikzpicture
      node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

      node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above,text width=1.5cm, align=center] Asynchronous\[-3pt]replication (r1);
      endtikzpicture

      enddocument


      enter image description here







      share|improve this question














      I cannot figure out why the text on the edge is not entered. What am I doing wrong?



      documentclass[margin=1mm]standalone


      usepackagetikz
      usetikzlibrarypositioning

      begindocument

      begintikzpicture
      node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

      node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above,text width=1.5cm, align=center] Asynchronous\[-3pt]replication (r1);
      endtikzpicture

      enddocument


      enter image description here









      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 25 at 14:53









      jak123

      2,03111231




      2,03111231










      asked Aug 25 at 13:11









      ozsu

      1,02111125




      1,02111125




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          Remove text width setting:



          documentclass[margin=1mm]standalone


          usepackagetikz
          usetikzlibrarypositioning

          begindocument

          begintikzpicture
          node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

          node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above, align=center] Asynchronous\[-3pt]replication (r1);
          endtikzpicture

          enddocument


          enter image description here



          A 1.5 cm text width is smaller than the width:



          enter image description here






          share|improve this answer


















          • 1




            Thank you very much; I thought that would allow the multiple lines, but it is not the case.
            – ozsu
            Aug 25 at 13:44










          • @ozsu You're welcome, you can do that, but you need to have the enough length set for text width, and the \[-3pt] won't be needed for line breaking.
            – jak123
            Aug 25 at 14:54











          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f447669%2faligning-text-on-edge%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










          Remove text width setting:



          documentclass[margin=1mm]standalone


          usepackagetikz
          usetikzlibrarypositioning

          begindocument

          begintikzpicture
          node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

          node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above, align=center] Asynchronous\[-3pt]replication (r1);
          endtikzpicture

          enddocument


          enter image description here



          A 1.5 cm text width is smaller than the width:



          enter image description here






          share|improve this answer


















          • 1




            Thank you very much; I thought that would allow the multiple lines, but it is not the case.
            – ozsu
            Aug 25 at 13:44










          • @ozsu You're welcome, you can do that, but you need to have the enough length set for text width, and the \[-3pt] won't be needed for line breaking.
            – jak123
            Aug 25 at 14:54















          up vote
          5
          down vote



          accepted










          Remove text width setting:



          documentclass[margin=1mm]standalone


          usepackagetikz
          usetikzlibrarypositioning

          begindocument

          begintikzpicture
          node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

          node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above, align=center] Asynchronous\[-3pt]replication (r1);
          endtikzpicture

          enddocument


          enter image description here



          A 1.5 cm text width is smaller than the width:



          enter image description here






          share|improve this answer


















          • 1




            Thank you very much; I thought that would allow the multiple lines, but it is not the case.
            – ozsu
            Aug 25 at 13:44










          • @ozsu You're welcome, you can do that, but you need to have the enough length set for text width, and the \[-3pt] won't be needed for line breaking.
            – jak123
            Aug 25 at 14:54













          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          Remove text width setting:



          documentclass[margin=1mm]standalone


          usepackagetikz
          usetikzlibrarypositioning

          begindocument

          begintikzpicture
          node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

          node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above, align=center] Asynchronous\[-3pt]replication (r1);
          endtikzpicture

          enddocument


          enter image description here



          A 1.5 cm text width is smaller than the width:



          enter image description here






          share|improve this answer














          Remove text width setting:



          documentclass[margin=1mm]standalone


          usepackagetikz
          usetikzlibrarypositioning

          begindocument

          begintikzpicture
          node[rectangle,draw,minimum width=1cm, minimum height=1cm] (r1) ;;

          node[rectangle,draw,minimum width=1cm, minimum height=1cm, right=3cm of r1] (r2) edge[<-,thick] node[above, align=center] Asynchronous\[-3pt]replication (r1);
          endtikzpicture

          enddocument


          enter image description here



          A 1.5 cm text width is smaller than the width:



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 25 at 13:45

























          answered Aug 25 at 13:37









          jak123

          2,03111231




          2,03111231







          • 1




            Thank you very much; I thought that would allow the multiple lines, but it is not the case.
            – ozsu
            Aug 25 at 13:44










          • @ozsu You're welcome, you can do that, but you need to have the enough length set for text width, and the \[-3pt] won't be needed for line breaking.
            – jak123
            Aug 25 at 14:54













          • 1




            Thank you very much; I thought that would allow the multiple lines, but it is not the case.
            – ozsu
            Aug 25 at 13:44










          • @ozsu You're welcome, you can do that, but you need to have the enough length set for text width, and the \[-3pt] won't be needed for line breaking.
            – jak123
            Aug 25 at 14:54








          1




          1




          Thank you very much; I thought that would allow the multiple lines, but it is not the case.
          – ozsu
          Aug 25 at 13:44




          Thank you very much; I thought that would allow the multiple lines, but it is not the case.
          – ozsu
          Aug 25 at 13:44












          @ozsu You're welcome, you can do that, but you need to have the enough length set for text width, and the \[-3pt] won't be needed for line breaking.
          – jak123
          Aug 25 at 14:54





          @ozsu You're welcome, you can do that, but you need to have the enough length set for text width, and the \[-3pt] won't be needed for line breaking.
          – jak123
          Aug 25 at 14:54


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f447669%2faligning-text-on-edge%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery