Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...
Pigeonhole Principle Problem
Was Hulk present at this event?
Attending a conference where my ex-supervisor and his collaborator are present, should I attend?
How did Arya manage to disguise herself?
What is the word which sounds like "shtrass"?
Does higher resolution in an image imply more bits per pixel?
What was the state of the German rail system in 1944?
Packet sniffer for MacOS Mojave and above
Pressure to defend the relevance of one's area of mathematics
Why are there synthetic chemicals in our bodies? Where do they come from?
Does the Darkness spell dispel the Color Spray and Flaming Sphere spells?
How to get SEEK accessing converted ID via view
Is it the same airport YUL and YMQ in Canada?
Disabling Resource Governor in SQL Server
Why was Germany not as successful as other Europeans in establishing overseas colonies?
If Earth is tilted, why is Polaris always above the same spot?
Is it always OK to ask for a copy of the lecturer's slides?
When and why did journal article titles become descriptive, rather than creatively allusive?
You look catfish vs You look like a catfish?
How can I fairly adjudicate the effects of height differences on ranged attacks?
If an enemy is just below a 10-foot-high ceiling, are they in melee range of a creature on the ground?
Historically, were women trained for obligatory wars? Or did they serve some other military function?
How did Captain America use this power?
Accidentally deleted the "/usr/share" folder
Connecting two nodes from the same mother node horizontally
TikZ: What EXACTLY does the the |- notation for arrows do?How can I set the node size for a TikZ image to be the same for all nodes?Connecting nodes with brace in TikZTo wrap the external lines so that it can touch the perimeterLatex connecting lines between nodes on TreeInput/Output Nodes - Specification and Description LanguageTikz Edge: Distance from other nodes?Line up nested tikz enviroments or how to get rid of themHow to define a point for connecting nodes from two different tikz pictures?Connecting nodes of tikzpictures nested in some scopesFlow chart - arrows connecting nodes
I am trying to create a diagram where one node connects to two nodes horizontally. I have attached the image of the diagram I want. However, I am having trouble moving the d node upward so that the arrow to e can flow through. Also, I can't seem to put e node a bit further to the right. In addition, I can't manually position the start point of the arrow as well. Right now, the two arrows coming out from node c are overlapped with each other.
This is my current minimal working example:
documentclass[12pt]{standalone}
usepackage{tikz}
usetikzlibrary{shapes.geometric}
usetikzlibrary{arrows, chains, quotes}
usetikzlibrary{arrows.meta}
usetikzlibrary{calc, positioning}
tikzstyle{startstop} = [rectangle, rounded corners, minimum width=2cm, text centered, minimum height=1.5cm, text width=3cm, very thick, draw=black, fill=white]
tikzstyle{arrow} = [thick,->,>=stealth]
begin{document}
begin{tikzpicture}
node (a) [startstop] {textsf{{normalsize A}}};
node (b) [startstop, right=1cm of a] {textsf{b}};
node (c) [startstop, right= 1cm of b] {textsf{c}};
node (d) [startstop, right = 1cm of c] {textsf{d}};
node (e) [startstop, right = 1cm of d] {textsf{e}};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c) -- (d);
draw [arrow] (c) -- (e);
end{tikzpicture}
end{document}
This is the diagram I want to draw:
I would greatly appreciate it if anyone can help me on this!!!!
diagrams tikz-styles tikz-arrows flow-charts
New contributor
add a comment |
I am trying to create a diagram where one node connects to two nodes horizontally. I have attached the image of the diagram I want. However, I am having trouble moving the d node upward so that the arrow to e can flow through. Also, I can't seem to put e node a bit further to the right. In addition, I can't manually position the start point of the arrow as well. Right now, the two arrows coming out from node c are overlapped with each other.
This is my current minimal working example:
documentclass[12pt]{standalone}
usepackage{tikz}
usetikzlibrary{shapes.geometric}
usetikzlibrary{arrows, chains, quotes}
usetikzlibrary{arrows.meta}
usetikzlibrary{calc, positioning}
tikzstyle{startstop} = [rectangle, rounded corners, minimum width=2cm, text centered, minimum height=1.5cm, text width=3cm, very thick, draw=black, fill=white]
tikzstyle{arrow} = [thick,->,>=stealth]
begin{document}
begin{tikzpicture}
node (a) [startstop] {textsf{{normalsize A}}};
node (b) [startstop, right=1cm of a] {textsf{b}};
node (c) [startstop, right= 1cm of b] {textsf{c}};
node (d) [startstop, right = 1cm of c] {textsf{d}};
node (e) [startstop, right = 1cm of d] {textsf{e}};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c) -- (d);
draw [arrow] (c) -- (e);
end{tikzpicture}
end{document}
This is the diagram I want to draw:
I would greatly appreciate it if anyone can help me on this!!!!
diagrams tikz-styles tikz-arrows flow-charts
New contributor
I think you needabove right = 1cm of c
for the noded
.
– Sigur
2 hours ago
add a comment |
I am trying to create a diagram where one node connects to two nodes horizontally. I have attached the image of the diagram I want. However, I am having trouble moving the d node upward so that the arrow to e can flow through. Also, I can't seem to put e node a bit further to the right. In addition, I can't manually position the start point of the arrow as well. Right now, the two arrows coming out from node c are overlapped with each other.
This is my current minimal working example:
documentclass[12pt]{standalone}
usepackage{tikz}
usetikzlibrary{shapes.geometric}
usetikzlibrary{arrows, chains, quotes}
usetikzlibrary{arrows.meta}
usetikzlibrary{calc, positioning}
tikzstyle{startstop} = [rectangle, rounded corners, minimum width=2cm, text centered, minimum height=1.5cm, text width=3cm, very thick, draw=black, fill=white]
tikzstyle{arrow} = [thick,->,>=stealth]
begin{document}
begin{tikzpicture}
node (a) [startstop] {textsf{{normalsize A}}};
node (b) [startstop, right=1cm of a] {textsf{b}};
node (c) [startstop, right= 1cm of b] {textsf{c}};
node (d) [startstop, right = 1cm of c] {textsf{d}};
node (e) [startstop, right = 1cm of d] {textsf{e}};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c) -- (d);
draw [arrow] (c) -- (e);
end{tikzpicture}
end{document}
This is the diagram I want to draw:
I would greatly appreciate it if anyone can help me on this!!!!
diagrams tikz-styles tikz-arrows flow-charts
New contributor
I am trying to create a diagram where one node connects to two nodes horizontally. I have attached the image of the diagram I want. However, I am having trouble moving the d node upward so that the arrow to e can flow through. Also, I can't seem to put e node a bit further to the right. In addition, I can't manually position the start point of the arrow as well. Right now, the two arrows coming out from node c are overlapped with each other.
This is my current minimal working example:
documentclass[12pt]{standalone}
usepackage{tikz}
usetikzlibrary{shapes.geometric}
usetikzlibrary{arrows, chains, quotes}
usetikzlibrary{arrows.meta}
usetikzlibrary{calc, positioning}
tikzstyle{startstop} = [rectangle, rounded corners, minimum width=2cm, text centered, minimum height=1.5cm, text width=3cm, very thick, draw=black, fill=white]
tikzstyle{arrow} = [thick,->,>=stealth]
begin{document}
begin{tikzpicture}
node (a) [startstop] {textsf{{normalsize A}}};
node (b) [startstop, right=1cm of a] {textsf{b}};
node (c) [startstop, right= 1cm of b] {textsf{c}};
node (d) [startstop, right = 1cm of c] {textsf{d}};
node (e) [startstop, right = 1cm of d] {textsf{e}};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c) -- (d);
draw [arrow] (c) -- (e);
end{tikzpicture}
end{document}
This is the diagram I want to draw:
I would greatly appreciate it if anyone can help me on this!!!!
diagrams tikz-styles tikz-arrows flow-charts
diagrams tikz-styles tikz-arrows flow-charts
New contributor
New contributor
New contributor
asked 2 hours ago
ShaoShao
82
82
New contributor
New contributor
I think you needabove right = 1cm of c
for the noded
.
– Sigur
2 hours ago
add a comment |
I think you needabove right = 1cm of c
for the noded
.
– Sigur
2 hours ago
I think you need
above right = 1cm of c
for the node d
.– Sigur
2 hours ago
I think you need
above right = 1cm of c
for the node d
.– Sigur
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Something like this?
documentclass[tikz,12pt]{standalone}
usetikzlibrary{positioning}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=2cm, text
centered, minimum height=1.5cm, text width=3cm, very thick, draw=black,
fill=white},
arrow/.style={thick,->,>=stealth}}
begin{document}
begin{tikzpicture}[font=sffamily,]
node (a) [startstop] {A};
node (b) [startstop, right=1cm of a] {b};
node (c) [startstop, right= 1cm of b] {c};
node (d) [startstop, right = 1cm of c,yshift=1.25em] {d};
node (e) [startstop, right = 1cm of d,yshift=-2.5em] {e};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c.east|-d) -- (d);
draw [arrow] (c.east|-e) -- (e);
end{tikzpicture}
end{document}
Comments:
- to move the nodes vertically, just use
yshift
;
tikzstyle
is deprecated, so I replaced it by the correspondingtikzset
command;- if you want all texts sans serif, it is easier to add
font=sffamily
; - if you add
tikz
to the options ofstandalone
this will loadtikz
and make it a standalone environment; - the syntax
|-
and-|
is nicely explained in this answer and is used to make sure the connections are horizontal; - I removed all libraries you do not use;
- it might make sense here to use chains, or not.
You won for some seconds... lol
– Sigur
2 hours ago
@Sigur Sorry, didn't know... (my crystal ball got stolen...) ;-)
– marmot
2 hours ago
but my solution wild not be so good as yours.
– Sigur
2 hours ago
@marmot Thank you so so much!!!! This is exactly what I want!
– Shao
2 hours ago
@Sigur I guess judgement is up to the voters...
– marmot
2 hours ago
|
show 1 more comment
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
});
}
});
Shao is a new contributor. Be nice, and check out our Code of Conduct.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f488335%2fconnecting-two-nodes-from-the-same-mother-node-horizontally%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Something like this?
documentclass[tikz,12pt]{standalone}
usetikzlibrary{positioning}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=2cm, text
centered, minimum height=1.5cm, text width=3cm, very thick, draw=black,
fill=white},
arrow/.style={thick,->,>=stealth}}
begin{document}
begin{tikzpicture}[font=sffamily,]
node (a) [startstop] {A};
node (b) [startstop, right=1cm of a] {b};
node (c) [startstop, right= 1cm of b] {c};
node (d) [startstop, right = 1cm of c,yshift=1.25em] {d};
node (e) [startstop, right = 1cm of d,yshift=-2.5em] {e};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c.east|-d) -- (d);
draw [arrow] (c.east|-e) -- (e);
end{tikzpicture}
end{document}
Comments:
- to move the nodes vertically, just use
yshift
;
tikzstyle
is deprecated, so I replaced it by the correspondingtikzset
command;- if you want all texts sans serif, it is easier to add
font=sffamily
; - if you add
tikz
to the options ofstandalone
this will loadtikz
and make it a standalone environment; - the syntax
|-
and-|
is nicely explained in this answer and is used to make sure the connections are horizontal; - I removed all libraries you do not use;
- it might make sense here to use chains, or not.
You won for some seconds... lol
– Sigur
2 hours ago
@Sigur Sorry, didn't know... (my crystal ball got stolen...) ;-)
– marmot
2 hours ago
but my solution wild not be so good as yours.
– Sigur
2 hours ago
@marmot Thank you so so much!!!! This is exactly what I want!
– Shao
2 hours ago
@Sigur I guess judgement is up to the voters...
– marmot
2 hours ago
|
show 1 more comment
Something like this?
documentclass[tikz,12pt]{standalone}
usetikzlibrary{positioning}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=2cm, text
centered, minimum height=1.5cm, text width=3cm, very thick, draw=black,
fill=white},
arrow/.style={thick,->,>=stealth}}
begin{document}
begin{tikzpicture}[font=sffamily,]
node (a) [startstop] {A};
node (b) [startstop, right=1cm of a] {b};
node (c) [startstop, right= 1cm of b] {c};
node (d) [startstop, right = 1cm of c,yshift=1.25em] {d};
node (e) [startstop, right = 1cm of d,yshift=-2.5em] {e};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c.east|-d) -- (d);
draw [arrow] (c.east|-e) -- (e);
end{tikzpicture}
end{document}
Comments:
- to move the nodes vertically, just use
yshift
;
tikzstyle
is deprecated, so I replaced it by the correspondingtikzset
command;- if you want all texts sans serif, it is easier to add
font=sffamily
; - if you add
tikz
to the options ofstandalone
this will loadtikz
and make it a standalone environment; - the syntax
|-
and-|
is nicely explained in this answer and is used to make sure the connections are horizontal; - I removed all libraries you do not use;
- it might make sense here to use chains, or not.
You won for some seconds... lol
– Sigur
2 hours ago
@Sigur Sorry, didn't know... (my crystal ball got stolen...) ;-)
– marmot
2 hours ago
but my solution wild not be so good as yours.
– Sigur
2 hours ago
@marmot Thank you so so much!!!! This is exactly what I want!
– Shao
2 hours ago
@Sigur I guess judgement is up to the voters...
– marmot
2 hours ago
|
show 1 more comment
Something like this?
documentclass[tikz,12pt]{standalone}
usetikzlibrary{positioning}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=2cm, text
centered, minimum height=1.5cm, text width=3cm, very thick, draw=black,
fill=white},
arrow/.style={thick,->,>=stealth}}
begin{document}
begin{tikzpicture}[font=sffamily,]
node (a) [startstop] {A};
node (b) [startstop, right=1cm of a] {b};
node (c) [startstop, right= 1cm of b] {c};
node (d) [startstop, right = 1cm of c,yshift=1.25em] {d};
node (e) [startstop, right = 1cm of d,yshift=-2.5em] {e};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c.east|-d) -- (d);
draw [arrow] (c.east|-e) -- (e);
end{tikzpicture}
end{document}
Comments:
- to move the nodes vertically, just use
yshift
;
tikzstyle
is deprecated, so I replaced it by the correspondingtikzset
command;- if you want all texts sans serif, it is easier to add
font=sffamily
; - if you add
tikz
to the options ofstandalone
this will loadtikz
and make it a standalone environment; - the syntax
|-
and-|
is nicely explained in this answer and is used to make sure the connections are horizontal; - I removed all libraries you do not use;
- it might make sense here to use chains, or not.
Something like this?
documentclass[tikz,12pt]{standalone}
usetikzlibrary{positioning}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=2cm, text
centered, minimum height=1.5cm, text width=3cm, very thick, draw=black,
fill=white},
arrow/.style={thick,->,>=stealth}}
begin{document}
begin{tikzpicture}[font=sffamily,]
node (a) [startstop] {A};
node (b) [startstop, right=1cm of a] {b};
node (c) [startstop, right= 1cm of b] {c};
node (d) [startstop, right = 1cm of c,yshift=1.25em] {d};
node (e) [startstop, right = 1cm of d,yshift=-2.5em] {e};
draw [arrow] (a) -- (b);
draw [arrow] (b) -- (c);
draw [arrow] (c.east|-d) -- (d);
draw [arrow] (c.east|-e) -- (e);
end{tikzpicture}
end{document}
Comments:
- to move the nodes vertically, just use
yshift
;
tikzstyle
is deprecated, so I replaced it by the correspondingtikzset
command;- if you want all texts sans serif, it is easier to add
font=sffamily
; - if you add
tikz
to the options ofstandalone
this will loadtikz
and make it a standalone environment; - the syntax
|-
and-|
is nicely explained in this answer and is used to make sure the connections are horizontal; - I removed all libraries you do not use;
- it might make sense here to use chains, or not.
edited 2 hours ago
answered 2 hours ago
marmotmarmot
122k6160300
122k6160300
You won for some seconds... lol
– Sigur
2 hours ago
@Sigur Sorry, didn't know... (my crystal ball got stolen...) ;-)
– marmot
2 hours ago
but my solution wild not be so good as yours.
– Sigur
2 hours ago
@marmot Thank you so so much!!!! This is exactly what I want!
– Shao
2 hours ago
@Sigur I guess judgement is up to the voters...
– marmot
2 hours ago
|
show 1 more comment
You won for some seconds... lol
– Sigur
2 hours ago
@Sigur Sorry, didn't know... (my crystal ball got stolen...) ;-)
– marmot
2 hours ago
but my solution wild not be so good as yours.
– Sigur
2 hours ago
@marmot Thank you so so much!!!! This is exactly what I want!
– Shao
2 hours ago
@Sigur I guess judgement is up to the voters...
– marmot
2 hours ago
You won for some seconds... lol
– Sigur
2 hours ago
You won for some seconds... lol
– Sigur
2 hours ago
@Sigur Sorry, didn't know... (my crystal ball got stolen...) ;-)
– marmot
2 hours ago
@Sigur Sorry, didn't know... (my crystal ball got stolen...) ;-)
– marmot
2 hours ago
but my solution wild not be so good as yours.
– Sigur
2 hours ago
but my solution wild not be so good as yours.
– Sigur
2 hours ago
@marmot Thank you so so much!!!! This is exactly what I want!
– Shao
2 hours ago
@marmot Thank you so so much!!!! This is exactly what I want!
– Shao
2 hours ago
@Sigur I guess judgement is up to the voters...
– marmot
2 hours ago
@Sigur I guess judgement is up to the voters...
– marmot
2 hours ago
|
show 1 more comment
Shao is a new contributor. Be nice, and check out our Code of Conduct.
Shao is a new contributor. Be nice, and check out our Code of Conduct.
Shao is a new contributor. Be nice, and check out our Code of Conduct.
Shao is a new contributor. Be nice, and check out our Code of Conduct.
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.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f488335%2fconnecting-two-nodes-from-the-same-mother-node-horizontally%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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
I think you need
above right = 1cm of c
for the noded
.– Sigur
2 hours ago