hrule into tikz circle nodeSplit circle in tikz unevenlyTop-align text in a TikZ node of given size for...
How can I handle players killing my NPC outside of combat?
Writing dialogues for characters whose first language is not English
Is the fingering of thirds flexible or do I have to follow the rules?
Allow console draw poker game to output more hands
Is there any way to make an Apex method parameter lazy?
Potential client has a problematic employee I can't work with
Sharepoint metadata URL
What kind of places would goblins live in a fantasy setting with strong states?
Crack the bank account's password!
How can I give a Ranger advantage on a check due to Favored Enemy without spoiling the story for the player?
Modern Algebraic Geometry and Analytic Number Theory
Non-Cancer terminal illness that can affect young (age 10-13) girls?
How can I prevent an oracle who can see into the past from knowing everything that has happened?
Why is 'diphthong' not pronounced otherwise?
Why does typing a variable (or expression) print the value to stdout?
What can I do to encourage my players to use their consumables?
Possible issue with my W4 and tax return
What is the draw frequency for 3 consecutive games (same players; amateur level)?
Count repetitions of an array
How do you get out of your own psychology to write characters?
Need help with a circuit diagram where the motor does not seem to have any connection to ground. Error with diagram? Or am i missing something?
How do I avoid the "chosen hero" feeling?
Plausible reason for gold-digging ant
Does it take energy to move something in a circle?
hrule into tikz circle node
Split circle in tikz unevenlyTop-align text in a TikZ node of given size for single- and multiline caseRotate a node but not its content: the case of the ellipse decorationIntersection of paths with constructed namesHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturesDrawing tikz line in the margin for multiple pages
I am struggling with inner node layout with Tikz. Basically, I want to add a line under the first text line inside a node, splitting it unevenly. Here is a try:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right of=1] {NODE2 \ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
The split
option seems to be able to split the ellipsis in half, leaving an enormous white space above the first line of text (see NODE1). I wish to render something like NODE2, but with a line separating the first line from the others. Here is an example of the desired output :
I tried to add hrule
command just after the "NODE2
" text, but it does not seem to be possible. Do you have any idea on how to do this?
By the way, please note that I saw this related question and its accepted answer, but I believe it does not address my issue.
tikz-pgf rules tikz-node tikz-shape
New contributor
add a comment |
I am struggling with inner node layout with Tikz. Basically, I want to add a line under the first text line inside a node, splitting it unevenly. Here is a try:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right of=1] {NODE2 \ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
The split
option seems to be able to split the ellipsis in half, leaving an enormous white space above the first line of text (see NODE1). I wish to render something like NODE2, but with a line separating the first line from the others. Here is an example of the desired output :
I tried to add hrule
command just after the "NODE2
" text, but it does not seem to be possible. Do you have any idea on how to do this?
By the way, please note that I saw this related question and its accepted answer, but I believe it does not address my issue.
tikz-pgf rules tikz-node tikz-shape
New contributor
1
Can you add a picture of the desired output? Maybe draw it by hand if you cannot provide a digital version.
– Dr. Manuel Kuehner
55 mins ago
@Dr.ManuelKuehner I just added it, thanks.
– Lyudline
47 mins ago
add a comment |
I am struggling with inner node layout with Tikz. Basically, I want to add a line under the first text line inside a node, splitting it unevenly. Here is a try:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right of=1] {NODE2 \ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
The split
option seems to be able to split the ellipsis in half, leaving an enormous white space above the first line of text (see NODE1). I wish to render something like NODE2, but with a line separating the first line from the others. Here is an example of the desired output :
I tried to add hrule
command just after the "NODE2
" text, but it does not seem to be possible. Do you have any idea on how to do this?
By the way, please note that I saw this related question and its accepted answer, but I believe it does not address my issue.
tikz-pgf rules tikz-node tikz-shape
New contributor
I am struggling with inner node layout with Tikz. Basically, I want to add a line under the first text line inside a node, splitting it unevenly. Here is a try:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right of=1] {NODE2 \ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
The split
option seems to be able to split the ellipsis in half, leaving an enormous white space above the first line of text (see NODE1). I wish to render something like NODE2, but with a line separating the first line from the others. Here is an example of the desired output :
I tried to add hrule
command just after the "NODE2
" text, but it does not seem to be possible. Do you have any idea on how to do this?
By the way, please note that I saw this related question and its accepted answer, but I believe it does not address my issue.
tikz-pgf rules tikz-node tikz-shape
tikz-pgf rules tikz-node tikz-shape
New contributor
New contributor
edited 39 mins ago
Dr. Manuel Kuehner
9,08732769
9,08732769
New contributor
asked 1 hour ago
LyudlineLyudline
234
234
New contributor
New contributor
1
Can you add a picture of the desired output? Maybe draw it by hand if you cannot provide a digital version.
– Dr. Manuel Kuehner
55 mins ago
@Dr.ManuelKuehner I just added it, thanks.
– Lyudline
47 mins ago
add a comment |
1
Can you add a picture of the desired output? Maybe draw it by hand if you cannot provide a digital version.
– Dr. Manuel Kuehner
55 mins ago
@Dr.ManuelKuehner I just added it, thanks.
– Lyudline
47 mins ago
1
1
Can you add a picture of the desired output? Maybe draw it by hand if you cannot provide a digital version.
– Dr. Manuel Kuehner
55 mins ago
Can you add a picture of the desired output? Maybe draw it by hand if you cannot provide a digital version.
– Dr. Manuel Kuehner
55 mins ago
@Dr.ManuelKuehner I just added it, thanks.
– Lyudline
47 mins ago
@Dr.ManuelKuehner I just added it, thanks.
– Lyudline
47 mins ago
add a comment |
2 Answers
2
active
oldest
votes
Something of that sort?
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes,fit,positioning}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
lower elli/.style={align=center},
fit elli/.style={ellipse,draw,inner sep=0pt,
path picture={draw ([xshift=-1cm]#1.south west)--
([xshift=1cm]#1.south east);}}
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right=1cm of 1] {NODE2 \ long name \ foo \ bar \ baz};
node (3a) [right=3.5cm of 2.north,anchor=north] {NODE3};
node[lower elli] (3b)[below=0pt of 3a] {long name \ foo \ bar \ baz};
node[fit elli=3a,fit=(3a) (3b)]{};
end{tikzpicture}
end{document}
This seems a bit hard to position and align with other nodes if that is required by the OP (e.g.[right of=1]
will not have them vertically aligned anymore)
– sheß
6 mins ago
2
@sheß Vertical alignment is not really an issue to me. But it might be for someone, indeed.
– Lyudline
3 mins ago
@sheß If you want to position relative to each other, there is no problem. You could then position the upper parts relative to each other.
– marmot
37 secs ago
add a comment |
You could just draw a longer [h]rule and clip the node:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
defclap#1{hbox to 0pt{hss#1hss}}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
styleshess/.style={ellipse, draw, align=center,clip},
]
node[styleshess] (2) {NODE2\clap{rule{linewidth}{.4pt}}\ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
You can play around with that line as with any other rule
to modify positioning or width. The clap
makes sure that the (imaginary) length of that line does not blow up the size of the node. The clip
in the style definition makes sure that only the part of the line that falls within the node is actually drawn.
1
This seems to have a larger gap than in the screen shot of the OP. (Personally I do not like these kinds of comments, but you started that.)
– marmot
2 mins ago
add a 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
});
}
});
Lyudline 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%2f476597%2fhrule-into-tikz-circle-node%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Something of that sort?
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes,fit,positioning}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
lower elli/.style={align=center},
fit elli/.style={ellipse,draw,inner sep=0pt,
path picture={draw ([xshift=-1cm]#1.south west)--
([xshift=1cm]#1.south east);}}
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right=1cm of 1] {NODE2 \ long name \ foo \ bar \ baz};
node (3a) [right=3.5cm of 2.north,anchor=north] {NODE3};
node[lower elli] (3b)[below=0pt of 3a] {long name \ foo \ bar \ baz};
node[fit elli=3a,fit=(3a) (3b)]{};
end{tikzpicture}
end{document}
This seems a bit hard to position and align with other nodes if that is required by the OP (e.g.[right of=1]
will not have them vertically aligned anymore)
– sheß
6 mins ago
2
@sheß Vertical alignment is not really an issue to me. But it might be for someone, indeed.
– Lyudline
3 mins ago
@sheß If you want to position relative to each other, there is no problem. You could then position the upper parts relative to each other.
– marmot
37 secs ago
add a comment |
Something of that sort?
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes,fit,positioning}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
lower elli/.style={align=center},
fit elli/.style={ellipse,draw,inner sep=0pt,
path picture={draw ([xshift=-1cm]#1.south west)--
([xshift=1cm]#1.south east);}}
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right=1cm of 1] {NODE2 \ long name \ foo \ bar \ baz};
node (3a) [right=3.5cm of 2.north,anchor=north] {NODE3};
node[lower elli] (3b)[below=0pt of 3a] {long name \ foo \ bar \ baz};
node[fit elli=3a,fit=(3a) (3b)]{};
end{tikzpicture}
end{document}
This seems a bit hard to position and align with other nodes if that is required by the OP (e.g.[right of=1]
will not have them vertically aligned anymore)
– sheß
6 mins ago
2
@sheß Vertical alignment is not really an issue to me. But it might be for someone, indeed.
– Lyudline
3 mins ago
@sheß If you want to position relative to each other, there is no problem. You could then position the upper parts relative to each other.
– marmot
37 secs ago
add a comment |
Something of that sort?
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes,fit,positioning}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
lower elli/.style={align=center},
fit elli/.style={ellipse,draw,inner sep=0pt,
path picture={draw ([xshift=-1cm]#1.south west)--
([xshift=1cm]#1.south east);}}
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right=1cm of 1] {NODE2 \ long name \ foo \ bar \ baz};
node (3a) [right=3.5cm of 2.north,anchor=north] {NODE3};
node[lower elli] (3b)[below=0pt of 3a] {long name \ foo \ bar \ baz};
node[fit elli=3a,fit=(3a) (3b)]{};
end{tikzpicture}
end{document}
Something of that sort?
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes,fit,positioning}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
style1/.style={ellipse split, draw, align=center},
style2/.style={ellipse, draw, , align=center},
lower elli/.style={align=center},
fit elli/.style={ellipse,draw,inner sep=0pt,
path picture={draw ([xshift=-1cm]#1.south west)--
([xshift=1cm]#1.south east);}}
]
node[style1] (1) {NODE1 nodepart{lower} long name \ foo \ bar \ baz};
node[style2] (2) [right=1cm of 1] {NODE2 \ long name \ foo \ bar \ baz};
node (3a) [right=3.5cm of 2.north,anchor=north] {NODE3};
node[lower elli] (3b)[below=0pt of 3a] {long name \ foo \ bar \ baz};
node[fit elli=3a,fit=(3a) (3b)]{};
end{tikzpicture}
end{document}
answered 16 mins ago
marmotmarmot
103k4122233
103k4122233
This seems a bit hard to position and align with other nodes if that is required by the OP (e.g.[right of=1]
will not have them vertically aligned anymore)
– sheß
6 mins ago
2
@sheß Vertical alignment is not really an issue to me. But it might be for someone, indeed.
– Lyudline
3 mins ago
@sheß If you want to position relative to each other, there is no problem. You could then position the upper parts relative to each other.
– marmot
37 secs ago
add a comment |
This seems a bit hard to position and align with other nodes if that is required by the OP (e.g.[right of=1]
will not have them vertically aligned anymore)
– sheß
6 mins ago
2
@sheß Vertical alignment is not really an issue to me. But it might be for someone, indeed.
– Lyudline
3 mins ago
@sheß If you want to position relative to each other, there is no problem. You could then position the upper parts relative to each other.
– marmot
37 secs ago
This seems a bit hard to position and align with other nodes if that is required by the OP (e.g.
[right of=1]
will not have them vertically aligned anymore)– sheß
6 mins ago
This seems a bit hard to position and align with other nodes if that is required by the OP (e.g.
[right of=1]
will not have them vertically aligned anymore)– sheß
6 mins ago
2
2
@sheß Vertical alignment is not really an issue to me. But it might be for someone, indeed.
– Lyudline
3 mins ago
@sheß Vertical alignment is not really an issue to me. But it might be for someone, indeed.
– Lyudline
3 mins ago
@sheß If you want to position relative to each other, there is no problem. You could then position the upper parts relative to each other.
– marmot
37 secs ago
@sheß If you want to position relative to each other, there is no problem. You could then position the upper parts relative to each other.
– marmot
37 secs ago
add a comment |
You could just draw a longer [h]rule and clip the node:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
defclap#1{hbox to 0pt{hss#1hss}}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
styleshess/.style={ellipse, draw, align=center,clip},
]
node[styleshess] (2) {NODE2\clap{rule{linewidth}{.4pt}}\ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
You can play around with that line as with any other rule
to modify positioning or width. The clap
makes sure that the (imaginary) length of that line does not blow up the size of the node. The clip
in the style definition makes sure that only the part of the line that falls within the node is actually drawn.
1
This seems to have a larger gap than in the screen shot of the OP. (Personally I do not like these kinds of comments, but you started that.)
– marmot
2 mins ago
add a comment |
You could just draw a longer [h]rule and clip the node:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
defclap#1{hbox to 0pt{hss#1hss}}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
styleshess/.style={ellipse, draw, align=center,clip},
]
node[styleshess] (2) {NODE2\clap{rule{linewidth}{.4pt}}\ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
You can play around with that line as with any other rule
to modify positioning or width. The clap
makes sure that the (imaginary) length of that line does not blow up the size of the node. The clip
in the style definition makes sure that only the part of the line that falls within the node is actually drawn.
1
This seems to have a larger gap than in the screen shot of the OP. (Personally I do not like these kinds of comments, but you started that.)
– marmot
2 mins ago
add a comment |
You could just draw a longer [h]rule and clip the node:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
defclap#1{hbox to 0pt{hss#1hss}}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
styleshess/.style={ellipse, draw, align=center,clip},
]
node[styleshess] (2) {NODE2\clap{rule{linewidth}{.4pt}}\ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
You can play around with that line as with any other rule
to modify positioning or width. The clap
makes sure that the (imaginary) length of that line does not blow up the size of the node. The clip
in the style definition makes sure that only the part of the line that falls within the node is actually drawn.
You could just draw a longer [h]rule and clip the node:
documentclass{standalone}
usepackage{tikz}
usetikzlibrary{shapes}
defclap#1{hbox to 0pt{hss#1hss}}
begin{document}
begin{tikzpicture}[auto, node distance=3cm,
styleshess/.style={ellipse, draw, align=center,clip},
]
node[styleshess] (2) {NODE2\clap{rule{linewidth}{.4pt}}\ long name \ foo \ bar \ baz};
end{tikzpicture}
end{document}
You can play around with that line as with any other rule
to modify positioning or width. The clap
makes sure that the (imaginary) length of that line does not blow up the size of the node. The clip
in the style definition makes sure that only the part of the line that falls within the node is actually drawn.
edited 4 mins ago
answered 12 mins ago
sheßsheß
1,54011328
1,54011328
1
This seems to have a larger gap than in the screen shot of the OP. (Personally I do not like these kinds of comments, but you started that.)
– marmot
2 mins ago
add a comment |
1
This seems to have a larger gap than in the screen shot of the OP. (Personally I do not like these kinds of comments, but you started that.)
– marmot
2 mins ago
1
1
This seems to have a larger gap than in the screen shot of the OP. (Personally I do not like these kinds of comments, but you started that.)
– marmot
2 mins ago
This seems to have a larger gap than in the screen shot of the OP. (Personally I do not like these kinds of comments, but you started that.)
– marmot
2 mins ago
add a comment |
Lyudline is a new contributor. Be nice, and check out our Code of Conduct.
Lyudline is a new contributor. Be nice, and check out our Code of Conduct.
Lyudline is a new contributor. Be nice, and check out our Code of Conduct.
Lyudline 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%2f476597%2fhrule-into-tikz-circle-node%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
1
Can you add a picture of the desired output? Maybe draw it by hand if you cannot provide a digital version.
– Dr. Manuel Kuehner
55 mins ago
@Dr.ManuelKuehner I just added it, thanks.
– Lyudline
47 mins ago