Node aligment: Below











up vote
1
down vote

favorite












I'm trying to align structures %first, %second and %third. I have tried some alignment options using below of and align but they don't do what I expect.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usetikzlibrary{positioning}

begin{document}




begin{tikzpicture}
% First
node[fill opacity=0.1,circle,label=left:n1-label,fill=black] at (0,0) (n1) {};
node[right=0cm of n1,draw,fill=none, text width=linewidth-2.4cm] (n2) {
title2
};
node[below=0.5cm of n2,draw,text width=linewidth-2.4cm] (n3){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};

% Second
node[below=1cm of n3,fill opacity=0.1,circle,label=left:n4-label,fill=black] at (0,0) (n4) {};
node[right=0cm of n4,draw,fill=none, text width=linewidth-2.4cm] (n5) {
title2
};
node[below=0.5cm of n5,draw,text width=linewidth-2.4cm] (n6){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};

% Third
node[below=1cm of n6,fill opacity=0.1,circle,label=left:n7-label,fill=black] at (0,0) (n7) {};
node[right=0cm of n7,draw,fill=none, text width=linewidth-2.4cm] (n8) {
title3
};
node[below=0.5cm of n8,draw,text width=linewidth-2.4cm] (n9){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};


end{tikzpicture}
end{document}


b) I'd like also to make n2, n3, n5, n6 to span just until the right margin.



Update: Code is been updated with some suggestions, b) is fixed thanks to @marmot










share|improve this question









New contributor




Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Absolutely! How can I do that?
    – Rod
    2 hours ago






  • 1




    Done. I'm blind! I could not see the mark at the left of the question, I was disabling some add-ons on my browser just to be sure :)
    – Rod
    2 hours ago

















up vote
1
down vote

favorite












I'm trying to align structures %first, %second and %third. I have tried some alignment options using below of and align but they don't do what I expect.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usetikzlibrary{positioning}

begin{document}




begin{tikzpicture}
% First
node[fill opacity=0.1,circle,label=left:n1-label,fill=black] at (0,0) (n1) {};
node[right=0cm of n1,draw,fill=none, text width=linewidth-2.4cm] (n2) {
title2
};
node[below=0.5cm of n2,draw,text width=linewidth-2.4cm] (n3){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};

% Second
node[below=1cm of n3,fill opacity=0.1,circle,label=left:n4-label,fill=black] at (0,0) (n4) {};
node[right=0cm of n4,draw,fill=none, text width=linewidth-2.4cm] (n5) {
title2
};
node[below=0.5cm of n5,draw,text width=linewidth-2.4cm] (n6){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};

% Third
node[below=1cm of n6,fill opacity=0.1,circle,label=left:n7-label,fill=black] at (0,0) (n7) {};
node[right=0cm of n7,draw,fill=none, text width=linewidth-2.4cm] (n8) {
title3
};
node[below=0.5cm of n8,draw,text width=linewidth-2.4cm] (n9){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};


end{tikzpicture}
end{document}


b) I'd like also to make n2, n3, n5, n6 to span just until the right margin.



Update: Code is been updated with some suggestions, b) is fixed thanks to @marmot










share|improve this question









New contributor




Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Absolutely! How can I do that?
    – Rod
    2 hours ago






  • 1




    Done. I'm blind! I could not see the mark at the left of the question, I was disabling some add-ons on my browser just to be sure :)
    – Rod
    2 hours ago















up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm trying to align structures %first, %second and %third. I have tried some alignment options using below of and align but they don't do what I expect.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usetikzlibrary{positioning}

begin{document}




begin{tikzpicture}
% First
node[fill opacity=0.1,circle,label=left:n1-label,fill=black] at (0,0) (n1) {};
node[right=0cm of n1,draw,fill=none, text width=linewidth-2.4cm] (n2) {
title2
};
node[below=0.5cm of n2,draw,text width=linewidth-2.4cm] (n3){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};

% Second
node[below=1cm of n3,fill opacity=0.1,circle,label=left:n4-label,fill=black] at (0,0) (n4) {};
node[right=0cm of n4,draw,fill=none, text width=linewidth-2.4cm] (n5) {
title2
};
node[below=0.5cm of n5,draw,text width=linewidth-2.4cm] (n6){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};

% Third
node[below=1cm of n6,fill opacity=0.1,circle,label=left:n7-label,fill=black] at (0,0) (n7) {};
node[right=0cm of n7,draw,fill=none, text width=linewidth-2.4cm] (n8) {
title3
};
node[below=0.5cm of n8,draw,text width=linewidth-2.4cm] (n9){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};


end{tikzpicture}
end{document}


b) I'd like also to make n2, n3, n5, n6 to span just until the right margin.



Update: Code is been updated with some suggestions, b) is fixed thanks to @marmot










share|improve this question









New contributor




Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm trying to align structures %first, %second and %third. I have tried some alignment options using below of and align but they don't do what I expect.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usetikzlibrary{positioning}

begin{document}




begin{tikzpicture}
% First
node[fill opacity=0.1,circle,label=left:n1-label,fill=black] at (0,0) (n1) {};
node[right=0cm of n1,draw,fill=none, text width=linewidth-2.4cm] (n2) {
title2
};
node[below=0.5cm of n2,draw,text width=linewidth-2.4cm] (n3){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};

% Second
node[below=1cm of n3,fill opacity=0.1,circle,label=left:n4-label,fill=black] at (0,0) (n4) {};
node[right=0cm of n4,draw,fill=none, text width=linewidth-2.4cm] (n5) {
title2
};
node[below=0.5cm of n5,draw,text width=linewidth-2.4cm] (n6){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};

% Third
node[below=1cm of n6,fill opacity=0.1,circle,label=left:n7-label,fill=black] at (0,0) (n7) {};
node[right=0cm of n7,draw,fill=none, text width=linewidth-2.4cm] (n8) {
title3
};
node[below=0.5cm of n8,draw,text width=linewidth-2.4cm] (n9){
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
};


end{tikzpicture}
end{document}


b) I'd like also to make n2, n3, n5, n6 to span just until the right margin.



Update: Code is been updated with some suggestions, b) is fixed thanks to @marmot







tikz-pgf






share|improve this question









New contributor




Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 1 hour ago





















New contributor




Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









Rod

424




424




New contributor




Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Rod is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Absolutely! How can I do that?
    – Rod
    2 hours ago






  • 1




    Done. I'm blind! I could not see the mark at the left of the question, I was disabling some add-ons on my browser just to be sure :)
    – Rod
    2 hours ago




















  • Absolutely! How can I do that?
    – Rod
    2 hours ago






  • 1




    Done. I'm blind! I could not see the mark at the left of the question, I was disabling some add-ons on my browser just to be sure :)
    – Rod
    2 hours ago


















Absolutely! How can I do that?
– Rod
2 hours ago




Absolutely! How can I do that?
– Rod
2 hours ago




1




1




Done. I'm blind! I could not see the mark at the left of the question, I was disabling some add-ons on my browser just to be sure :)
– Rod
2 hours ago






Done. I'm blind! I could not see the mark at the left of the question, I was disabling some add-ons on my browser just to be sure :)
– Rod
2 hours ago












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










FIRST ANSWER: A few comments:




  1. Positioning only works within one tikzpicture but not across separate tikzpictures unless you use overlay. However, in that case I would not do that.

  2. Your syntax right of=n1 is deprecated, it is not even mentioned in the pgfmanual any more. You greatly benefit from loading the positioning library and do something like right=5mm of n1 instead.

  3. If you do not specify the width of the text, the nodes will become arbitrarily wide. In order to avoid this, set an appropriate text width.


Suggested code:



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usetikzlibrary{positioning}
usepackage{blindtext}
begin{document}

noindent
begin{tikzpicture}[buffl/.style={fill opacity=0.1,circle,fill=black}]
node[buffl,label=left:foo] at (0,0) (n1) {};
node[draw,fill=none, right=1cm of n1, text width=linewidth-3.4cm] (n5) {
title5
};
node[draw,below=1cm of n5, text width=linewidth-3.4cm] (n6){
blindtext
};
node[draw,below=1cm of n6, align=center,text width=linewidth-3.4cm] (n3) {
blindtext
};
node[buffl,label=left:n4-label,left=1cm of n3] (n4) {};

draw[fill opacity=0.1] ([yshift=-0.25cm]n1.south) -- ([yshift=0.25cm]n4.north);

end{tikzpicture}

end{document}


enter image description here



RESPONSE TO YOUR UPDATE: Given your updated question, I am actually wondering if you would not be better off with a table, and just add the bullets and lines between them via overlay.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}

begin{document}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}

blindtext

noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n1-label] at (0,0) (n1) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n2-label] at (0,0) (n2) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
end{tikzpicture}
end{document}


enter image description here






share|improve this answer























  • Thanks again. I have updated the code with your suggestions. Now, node1 and node 4 are misaligned as they are not in the same tikzpicture. I started to use nodes outside tikzpictures with overlay as I found out I could not access all latex commands and functionality inside the picture and nodes.
    – Rod
    2 hours ago










  • @Rod There is no node 4.
    – marmot
    2 hours ago










  • I updated the code with your suggestions in the first post. It is a repeating structure. The first node of each structure has a line joining it with the first node of the next one.
    – Rod
    2 hours ago










  • @Rod I have not seen your update. I am trying to guess what you might want. (Note that I will be offline now for about 2h.)
    – marmot
    2 hours ago










  • I'll add this to my code. I will need to change some formatting I was using for my titles. Again, thanks for your help @marmot
    – Rod
    3 mins 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
});


}
});






Rod is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462492%2fnode-aligment-below%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








up vote
1
down vote



accepted










FIRST ANSWER: A few comments:




  1. Positioning only works within one tikzpicture but not across separate tikzpictures unless you use overlay. However, in that case I would not do that.

  2. Your syntax right of=n1 is deprecated, it is not even mentioned in the pgfmanual any more. You greatly benefit from loading the positioning library and do something like right=5mm of n1 instead.

  3. If you do not specify the width of the text, the nodes will become arbitrarily wide. In order to avoid this, set an appropriate text width.


Suggested code:



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usetikzlibrary{positioning}
usepackage{blindtext}
begin{document}

noindent
begin{tikzpicture}[buffl/.style={fill opacity=0.1,circle,fill=black}]
node[buffl,label=left:foo] at (0,0) (n1) {};
node[draw,fill=none, right=1cm of n1, text width=linewidth-3.4cm] (n5) {
title5
};
node[draw,below=1cm of n5, text width=linewidth-3.4cm] (n6){
blindtext
};
node[draw,below=1cm of n6, align=center,text width=linewidth-3.4cm] (n3) {
blindtext
};
node[buffl,label=left:n4-label,left=1cm of n3] (n4) {};

draw[fill opacity=0.1] ([yshift=-0.25cm]n1.south) -- ([yshift=0.25cm]n4.north);

end{tikzpicture}

end{document}


enter image description here



RESPONSE TO YOUR UPDATE: Given your updated question, I am actually wondering if you would not be better off with a table, and just add the bullets and lines between them via overlay.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}

begin{document}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}

blindtext

noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n1-label] at (0,0) (n1) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n2-label] at (0,0) (n2) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
end{tikzpicture}
end{document}


enter image description here






share|improve this answer























  • Thanks again. I have updated the code with your suggestions. Now, node1 and node 4 are misaligned as they are not in the same tikzpicture. I started to use nodes outside tikzpictures with overlay as I found out I could not access all latex commands and functionality inside the picture and nodes.
    – Rod
    2 hours ago










  • @Rod There is no node 4.
    – marmot
    2 hours ago










  • I updated the code with your suggestions in the first post. It is a repeating structure. The first node of each structure has a line joining it with the first node of the next one.
    – Rod
    2 hours ago










  • @Rod I have not seen your update. I am trying to guess what you might want. (Note that I will be offline now for about 2h.)
    – marmot
    2 hours ago










  • I'll add this to my code. I will need to change some formatting I was using for my titles. Again, thanks for your help @marmot
    – Rod
    3 mins ago















up vote
1
down vote



accepted










FIRST ANSWER: A few comments:




  1. Positioning only works within one tikzpicture but not across separate tikzpictures unless you use overlay. However, in that case I would not do that.

  2. Your syntax right of=n1 is deprecated, it is not even mentioned in the pgfmanual any more. You greatly benefit from loading the positioning library and do something like right=5mm of n1 instead.

  3. If you do not specify the width of the text, the nodes will become arbitrarily wide. In order to avoid this, set an appropriate text width.


Suggested code:



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usetikzlibrary{positioning}
usepackage{blindtext}
begin{document}

noindent
begin{tikzpicture}[buffl/.style={fill opacity=0.1,circle,fill=black}]
node[buffl,label=left:foo] at (0,0) (n1) {};
node[draw,fill=none, right=1cm of n1, text width=linewidth-3.4cm] (n5) {
title5
};
node[draw,below=1cm of n5, text width=linewidth-3.4cm] (n6){
blindtext
};
node[draw,below=1cm of n6, align=center,text width=linewidth-3.4cm] (n3) {
blindtext
};
node[buffl,label=left:n4-label,left=1cm of n3] (n4) {};

draw[fill opacity=0.1] ([yshift=-0.25cm]n1.south) -- ([yshift=0.25cm]n4.north);

end{tikzpicture}

end{document}


enter image description here



RESPONSE TO YOUR UPDATE: Given your updated question, I am actually wondering if you would not be better off with a table, and just add the bullets and lines between them via overlay.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}

begin{document}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}

blindtext

noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n1-label] at (0,0) (n1) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n2-label] at (0,0) (n2) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
end{tikzpicture}
end{document}


enter image description here






share|improve this answer























  • Thanks again. I have updated the code with your suggestions. Now, node1 and node 4 are misaligned as they are not in the same tikzpicture. I started to use nodes outside tikzpictures with overlay as I found out I could not access all latex commands and functionality inside the picture and nodes.
    – Rod
    2 hours ago










  • @Rod There is no node 4.
    – marmot
    2 hours ago










  • I updated the code with your suggestions in the first post. It is a repeating structure. The first node of each structure has a line joining it with the first node of the next one.
    – Rod
    2 hours ago










  • @Rod I have not seen your update. I am trying to guess what you might want. (Note that I will be offline now for about 2h.)
    – marmot
    2 hours ago










  • I'll add this to my code. I will need to change some formatting I was using for my titles. Again, thanks for your help @marmot
    – Rod
    3 mins ago













up vote
1
down vote



accepted







up vote
1
down vote



accepted






FIRST ANSWER: A few comments:




  1. Positioning only works within one tikzpicture but not across separate tikzpictures unless you use overlay. However, in that case I would not do that.

  2. Your syntax right of=n1 is deprecated, it is not even mentioned in the pgfmanual any more. You greatly benefit from loading the positioning library and do something like right=5mm of n1 instead.

  3. If you do not specify the width of the text, the nodes will become arbitrarily wide. In order to avoid this, set an appropriate text width.


Suggested code:



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usetikzlibrary{positioning}
usepackage{blindtext}
begin{document}

noindent
begin{tikzpicture}[buffl/.style={fill opacity=0.1,circle,fill=black}]
node[buffl,label=left:foo] at (0,0) (n1) {};
node[draw,fill=none, right=1cm of n1, text width=linewidth-3.4cm] (n5) {
title5
};
node[draw,below=1cm of n5, text width=linewidth-3.4cm] (n6){
blindtext
};
node[draw,below=1cm of n6, align=center,text width=linewidth-3.4cm] (n3) {
blindtext
};
node[buffl,label=left:n4-label,left=1cm of n3] (n4) {};

draw[fill opacity=0.1] ([yshift=-0.25cm]n1.south) -- ([yshift=0.25cm]n4.north);

end{tikzpicture}

end{document}


enter image description here



RESPONSE TO YOUR UPDATE: Given your updated question, I am actually wondering if you would not be better off with a table, and just add the bullets and lines between them via overlay.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}

begin{document}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}

blindtext

noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n1-label] at (0,0) (n1) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n2-label] at (0,0) (n2) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
end{tikzpicture}
end{document}


enter image description here






share|improve this answer














FIRST ANSWER: A few comments:




  1. Positioning only works within one tikzpicture but not across separate tikzpictures unless you use overlay. However, in that case I would not do that.

  2. Your syntax right of=n1 is deprecated, it is not even mentioned in the pgfmanual any more. You greatly benefit from loading the positioning library and do something like right=5mm of n1 instead.

  3. If you do not specify the width of the text, the nodes will become arbitrarily wide. In order to avoid this, set an appropriate text width.


Suggested code:



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usetikzlibrary{positioning}
usepackage{blindtext}
begin{document}

noindent
begin{tikzpicture}[buffl/.style={fill opacity=0.1,circle,fill=black}]
node[buffl,label=left:foo] at (0,0) (n1) {};
node[draw,fill=none, right=1cm of n1, text width=linewidth-3.4cm] (n5) {
title5
};
node[draw,below=1cm of n5, text width=linewidth-3.4cm] (n6){
blindtext
};
node[draw,below=1cm of n6, align=center,text width=linewidth-3.4cm] (n3) {
blindtext
};
node[buffl,label=left:n4-label,left=1cm of n3] (n4) {};

draw[fill opacity=0.1] ([yshift=-0.25cm]n1.south) -- ([yshift=0.25cm]n4.north);

end{tikzpicture}

end{document}


enter image description here



RESPONSE TO YOUR UPDATE: Given your updated question, I am actually wondering if you would not be better off with a table, and just add the bullets and lines between them via overlay.



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{tikz}
usepackage{blindtext}
usepackage{tabularx}
usetikzlibrary{positioning}

begin{document}
tikzset{every picture/.append style={remember picture},
fluffy/.style={fill opacity=0.1,circle,fill,inner sep=3pt,outer sep=1mm}}

blindtext

noindentbegin{tabularx}{linewidth}{@{} l @{~} |X| @{}}
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n1-label] at (0,0) (n1) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
begin{tikzpicture}
node[fluffy,label=left:n2-label] at (0,0) (n2) {};
end{tikzpicture}
& title2\
cline{2-2}
multicolumn{1}{c}{~}& multicolumn{1}{c}{~}\
cline{2-2}
&
Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah Blah blah
blinditemize
\
cline{2-2}
end{tabularx}
begin{tikzpicture}[overlay]
draw (n1) -- (n2);
end{tikzpicture}
end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 57 mins ago

























answered 3 hours ago









marmot

79.2k488166




79.2k488166












  • Thanks again. I have updated the code with your suggestions. Now, node1 and node 4 are misaligned as they are not in the same tikzpicture. I started to use nodes outside tikzpictures with overlay as I found out I could not access all latex commands and functionality inside the picture and nodes.
    – Rod
    2 hours ago










  • @Rod There is no node 4.
    – marmot
    2 hours ago










  • I updated the code with your suggestions in the first post. It is a repeating structure. The first node of each structure has a line joining it with the first node of the next one.
    – Rod
    2 hours ago










  • @Rod I have not seen your update. I am trying to guess what you might want. (Note that I will be offline now for about 2h.)
    – marmot
    2 hours ago










  • I'll add this to my code. I will need to change some formatting I was using for my titles. Again, thanks for your help @marmot
    – Rod
    3 mins ago


















  • Thanks again. I have updated the code with your suggestions. Now, node1 and node 4 are misaligned as they are not in the same tikzpicture. I started to use nodes outside tikzpictures with overlay as I found out I could not access all latex commands and functionality inside the picture and nodes.
    – Rod
    2 hours ago










  • @Rod There is no node 4.
    – marmot
    2 hours ago










  • I updated the code with your suggestions in the first post. It is a repeating structure. The first node of each structure has a line joining it with the first node of the next one.
    – Rod
    2 hours ago










  • @Rod I have not seen your update. I am trying to guess what you might want. (Note that I will be offline now for about 2h.)
    – marmot
    2 hours ago










  • I'll add this to my code. I will need to change some formatting I was using for my titles. Again, thanks for your help @marmot
    – Rod
    3 mins ago
















Thanks again. I have updated the code with your suggestions. Now, node1 and node 4 are misaligned as they are not in the same tikzpicture. I started to use nodes outside tikzpictures with overlay as I found out I could not access all latex commands and functionality inside the picture and nodes.
– Rod
2 hours ago




Thanks again. I have updated the code with your suggestions. Now, node1 and node 4 are misaligned as they are not in the same tikzpicture. I started to use nodes outside tikzpictures with overlay as I found out I could not access all latex commands and functionality inside the picture and nodes.
– Rod
2 hours ago












@Rod There is no node 4.
– marmot
2 hours ago




@Rod There is no node 4.
– marmot
2 hours ago












I updated the code with your suggestions in the first post. It is a repeating structure. The first node of each structure has a line joining it with the first node of the next one.
– Rod
2 hours ago




I updated the code with your suggestions in the first post. It is a repeating structure. The first node of each structure has a line joining it with the first node of the next one.
– Rod
2 hours ago












@Rod I have not seen your update. I am trying to guess what you might want. (Note that I will be offline now for about 2h.)
– marmot
2 hours ago




@Rod I have not seen your update. I am trying to guess what you might want. (Note that I will be offline now for about 2h.)
– marmot
2 hours ago












I'll add this to my code. I will need to change some formatting I was using for my titles. Again, thanks for your help @marmot
– Rod
3 mins ago




I'll add this to my code. I will need to change some formatting I was using for my titles. Again, thanks for your help @marmot
– Rod
3 mins ago










Rod is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Rod is a new contributor. Be nice, and check out our Code of Conduct.













Rod is a new contributor. Be nice, and check out our Code of Conduct.












Rod 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462492%2fnode-aligment-below%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Contact image not getting when fetch all contact list from iPhone by CNContact

count number of partitions of a set with n elements into k subsets

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks