Text label within dotted line around nodes
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
Hello, would like to add some text where it is put in the picture. Already tried a few things but did not get an easy solution. Could someone help me out please?
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
draw[thick,dotted] ($(customer.north west)+(-0.25,0.25)$) rectangle ($(work.south east)+(0.25,-0.6)$);
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
showlabels
add a comment |Â
up vote
2
down vote
favorite
Hello, would like to add some text where it is put in the picture. Already tried a few things but did not get an easy solution. Could someone help me out please?
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
draw[thick,dotted] ($(customer.north west)+(-0.25,0.25)$) rectangle ($(work.south east)+(0.25,-0.6)$);
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
showlabels
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Hello, would like to add some text where it is put in the picture. Already tried a few things but did not get an easy solution. Could someone help me out please?
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
draw[thick,dotted] ($(customer.north west)+(-0.25,0.25)$) rectangle ($(work.south east)+(0.25,-0.6)$);
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
showlabels
Hello, would like to add some text where it is put in the picture. Already tried a few things but did not get an easy solution. Could someone help me out please?
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
draw[thick,dotted] ($(customer.north west)+(-0.25,0.25)$) rectangle ($(work.south east)+(0.25,-0.6)$);
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
showlabels
showlabels
asked 3 hours ago
quepasa
483
483
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
4
down vote
You could use the fit-library to create a node surrounding your other boxes and then create another node at the south position with your text. This node can then have a white background if you like.
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc, fit
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
node[draw, thick, dotted, rounded corners, inner xsep=1em, inner ysep=1em, fit=(work) (customer)] (box) ;
node[fill=white] at (box.south) Text Here;
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
If you need more whitespace before and/or afterwards, an easy (but probably not so nice) way is to just put a quad
before and after your text.
New contributor
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.Stackexchange!
– samcarter
2 hours ago
add a comment |Â
up vote
0
down vote
with tikz
libraries chains
, fit
and positioning
is simple:
documentclassarticle
usepackagetikz
usetikzlibraryarrows.meta, chains, fit, positioning
begindocument
beginfigure
centering
begintikzpicture[
node distance = 10mm and 5mm,
start chain = going right,
digital/.style = rounded corners, draw, fill=gray!20,
text width=3cm, align=flush center, %left,
on chain, join=by line,
line/.style = thick,-Stealth
]
%%% NODES %%%
node (n1) [digital] Customer relationship;
node (n2) [digital] Competitive Landscape;
node (n3) [digital] People/Work environment;
%%% dotted RECTANGLE %%%
node[draw, thick, dotted, inner sep=3ex, yshift=-1ex,
fit=(n1) (n3)] (box) ;
node[fill=white, inner xsep=1ex] at (box.south) Text Here;
endtikzpicture
captionThree pillars
labelfig:leadership_digital
endfigure
enddocument
note: your code assume, that nodes "digital" are connected by arrows, but on images are simple lines. if you prefer to have only lines, than change line
style to line/.style = thick,-
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
You could use the fit-library to create a node surrounding your other boxes and then create another node at the south position with your text. This node can then have a white background if you like.
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc, fit
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
node[draw, thick, dotted, rounded corners, inner xsep=1em, inner ysep=1em, fit=(work) (customer)] (box) ;
node[fill=white] at (box.south) Text Here;
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
If you need more whitespace before and/or afterwards, an easy (but probably not so nice) way is to just put a quad
before and after your text.
New contributor
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.Stackexchange!
– samcarter
2 hours ago
add a comment |Â
up vote
4
down vote
You could use the fit-library to create a node surrounding your other boxes and then create another node at the south position with your text. This node can then have a white background if you like.
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc, fit
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
node[draw, thick, dotted, rounded corners, inner xsep=1em, inner ysep=1em, fit=(work) (customer)] (box) ;
node[fill=white] at (box.south) Text Here;
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
If you need more whitespace before and/or afterwards, an easy (but probably not so nice) way is to just put a quad
before and after your text.
New contributor
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.Stackexchange!
– samcarter
2 hours ago
add a comment |Â
up vote
4
down vote
up vote
4
down vote
You could use the fit-library to create a node surrounding your other boxes and then create another node at the south position with your text. This node can then have a white background if you like.
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc, fit
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
node[draw, thick, dotted, rounded corners, inner xsep=1em, inner ysep=1em, fit=(work) (customer)] (box) ;
node[fill=white] at (box.south) Text Here;
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
If you need more whitespace before and/or afterwards, an easy (but probably not so nice) way is to just put a quad
before and after your text.
New contributor
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You could use the fit-library to create a node surrounding your other boxes and then create another node at the south position with your text. This node can then have a white background if you like.
documentclassarticle
usepackagetikz
usetikzlibraryshapes.geometric, arrows, calc, fit
%%% styles for Figure: Main areas of leadership affected by Digital Transformation %%%
tikzstyledigital = [rectangle, rounded corners, align=left, draw=black, fill=gray!20, text width=3cm]
tikzstyleline = [thick,-,>=stealth]
begindocument
beginfigure
centering
begintikzpicture[node distance=2.2cm]
%%% NODES %%%
node (competitive)[digital] Competitive Landscape;
node (customer) [digital, left of=competitive, xshift=-2cm] Customer relationship;
node (work) [digital, right of=competitive, xshift=2cm] People/Work environment;
%%% LINES %%%
draw [line] (competitive) -- (customer);
draw [line] (competitive) -- (work);
%%% RECTANGLES %%%
node[draw, thick, dotted, rounded corners, inner xsep=1em, inner ysep=1em, fit=(work) (customer)] (box) ;
node[fill=white] at (box.south) Text Here;
endtikzpicture
captionThree pillars labelfig:leadership_digital
endfigure
enddocument
If you need more whitespace before and/or afterwards, an easy (but probably not so nice) way is to just put a quad
before and after your text.
New contributor
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 hours ago
SKL
412
412
New contributor
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
SKL is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.Stackexchange!
– samcarter
2 hours ago
add a comment |Â
Welcome to TeX.Stackexchange!
– samcarter
2 hours ago
Welcome to TeX.Stackexchange!
– samcarter
2 hours ago
Welcome to TeX.Stackexchange!
– samcarter
2 hours ago
add a comment |Â
up vote
0
down vote
with tikz
libraries chains
, fit
and positioning
is simple:
documentclassarticle
usepackagetikz
usetikzlibraryarrows.meta, chains, fit, positioning
begindocument
beginfigure
centering
begintikzpicture[
node distance = 10mm and 5mm,
start chain = going right,
digital/.style = rounded corners, draw, fill=gray!20,
text width=3cm, align=flush center, %left,
on chain, join=by line,
line/.style = thick,-Stealth
]
%%% NODES %%%
node (n1) [digital] Customer relationship;
node (n2) [digital] Competitive Landscape;
node (n3) [digital] People/Work environment;
%%% dotted RECTANGLE %%%
node[draw, thick, dotted, inner sep=3ex, yshift=-1ex,
fit=(n1) (n3)] (box) ;
node[fill=white, inner xsep=1ex] at (box.south) Text Here;
endtikzpicture
captionThree pillars
labelfig:leadership_digital
endfigure
enddocument
note: your code assume, that nodes "digital" are connected by arrows, but on images are simple lines. if you prefer to have only lines, than change line
style to line/.style = thick,-
add a comment |Â
up vote
0
down vote
with tikz
libraries chains
, fit
and positioning
is simple:
documentclassarticle
usepackagetikz
usetikzlibraryarrows.meta, chains, fit, positioning
begindocument
beginfigure
centering
begintikzpicture[
node distance = 10mm and 5mm,
start chain = going right,
digital/.style = rounded corners, draw, fill=gray!20,
text width=3cm, align=flush center, %left,
on chain, join=by line,
line/.style = thick,-Stealth
]
%%% NODES %%%
node (n1) [digital] Customer relationship;
node (n2) [digital] Competitive Landscape;
node (n3) [digital] People/Work environment;
%%% dotted RECTANGLE %%%
node[draw, thick, dotted, inner sep=3ex, yshift=-1ex,
fit=(n1) (n3)] (box) ;
node[fill=white, inner xsep=1ex] at (box.south) Text Here;
endtikzpicture
captionThree pillars
labelfig:leadership_digital
endfigure
enddocument
note: your code assume, that nodes "digital" are connected by arrows, but on images are simple lines. if you prefer to have only lines, than change line
style to line/.style = thick,-
add a comment |Â
up vote
0
down vote
up vote
0
down vote
with tikz
libraries chains
, fit
and positioning
is simple:
documentclassarticle
usepackagetikz
usetikzlibraryarrows.meta, chains, fit, positioning
begindocument
beginfigure
centering
begintikzpicture[
node distance = 10mm and 5mm,
start chain = going right,
digital/.style = rounded corners, draw, fill=gray!20,
text width=3cm, align=flush center, %left,
on chain, join=by line,
line/.style = thick,-Stealth
]
%%% NODES %%%
node (n1) [digital] Customer relationship;
node (n2) [digital] Competitive Landscape;
node (n3) [digital] People/Work environment;
%%% dotted RECTANGLE %%%
node[draw, thick, dotted, inner sep=3ex, yshift=-1ex,
fit=(n1) (n3)] (box) ;
node[fill=white, inner xsep=1ex] at (box.south) Text Here;
endtikzpicture
captionThree pillars
labelfig:leadership_digital
endfigure
enddocument
note: your code assume, that nodes "digital" are connected by arrows, but on images are simple lines. if you prefer to have only lines, than change line
style to line/.style = thick,-
with tikz
libraries chains
, fit
and positioning
is simple:
documentclassarticle
usepackagetikz
usetikzlibraryarrows.meta, chains, fit, positioning
begindocument
beginfigure
centering
begintikzpicture[
node distance = 10mm and 5mm,
start chain = going right,
digital/.style = rounded corners, draw, fill=gray!20,
text width=3cm, align=flush center, %left,
on chain, join=by line,
line/.style = thick,-Stealth
]
%%% NODES %%%
node (n1) [digital] Customer relationship;
node (n2) [digital] Competitive Landscape;
node (n3) [digital] People/Work environment;
%%% dotted RECTANGLE %%%
node[draw, thick, dotted, inner sep=3ex, yshift=-1ex,
fit=(n1) (n3)] (box) ;
node[fill=white, inner xsep=1ex] at (box.south) Text Here;
endtikzpicture
captionThree pillars
labelfig:leadership_digital
endfigure
enddocument
note: your code assume, that nodes "digital" are connected by arrows, but on images are simple lines. if you prefer to have only lines, than change line
style to line/.style = thick,-
edited 1 hour ago
answered 1 hour ago
Zarko
114k863152
114k863152
add a comment |Â
add a comment |Â
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%2f454601%2ftext-label-within-dotted-line-around-nodes%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