Aligning text on edge
Clash 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
tikz-pgf labels edge
add a comment |Â
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
tikz-pgf labels edge
add a comment |Â
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
tikz-pgf labels edge
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
tikz-pgf labels edge
edited Aug 25 at 14:53
jak123
2,03111231
2,03111231
asked Aug 25 at 13:11
ozsu
1,02111125
1,02111125
add a comment |Â
add a comment |Â
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
A 1.5 cm text width is smaller than the width:
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 fortext width
, and the\[-3pt]
won't be needed for line breaking.
– jak123
Aug 25 at 14:54
add a comment |Â
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
A 1.5 cm text width is smaller than the width:
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 fortext width
, and the\[-3pt]
won't be needed for line breaking.
– jak123
Aug 25 at 14:54
add a comment |Â
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
A 1.5 cm text width is smaller than the width:
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 fortext width
, and the\[-3pt]
won't be needed for line breaking.
– jak123
Aug 25 at 14:54
add a comment |Â
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
A 1.5 cm text width is smaller than the width:
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
A 1.5 cm text width is smaller than the width:
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 fortext width
, and the\[-3pt]
won't be needed for line breaking.
– jak123
Aug 25 at 14:54
add a comment |Â
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 fortext 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
add a comment |Â
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password