Tikz node without textBetter way to calculate coordinates in Tikz?Use node text as argument for a macroCreating node shapesUnsetting a PGF/TikZ keyHow can I make labels (or other elements) rotate with a node using TikZ?Circuit Node with Text near Input and OutputCustom Tikz node with background graphics that scale to node size?Tikz draw as part of style (Drawing something inside each node of certain type)tikz Commutative Diagrams - Compiling and Best PracticeTikz Node Text Formatting Problems
Would preaching in a church be advantageous for becoming a lecturer?
Can you use a virtual credit card to withdraw money from an ATM in the UK?
What is the gold linker?
Can we not simply connect a battery to a RAM to prevent data loss during power cuts?
Why does Principal Vagina say, "no relation" after introducing himself?
Can there be an atomic nucleus where there are more protons than neutrons?
First author doesn't want a co-author to read the whole paper
Is the tap water in France safe to drink?
How do I copy an installed steam game on my PC to an external hard drive?
What are the branches of statistics?
If we should encrypt the message rather than the method of transfer, why do we care about wifi security? Is this just security theatre?
When did MCMC become commonplace?
What does the British parliament hope to achieve by requesting a third Brexit extension?
Translation of: 美しいと思ってしまったのだ
Why isn't Hagrid removed from Hogwarts sooner in Harry's would-be 7th year?
Easy way of generating a 50-150W load @12V
Is Schrodinger's Cat itself an observer?
Is a list of the most common English words copyrightable?
Car as a good investment
Fermat's polygonal number theorem
Front hydraulic disk brake is too powerful on MTB — solutions?
In the twin paradox does the returning twin also come back permanently length contracted flatter than the twin on earth?
What power does the UK parliament hold over a Prime Minister whom they refuse to remove from power?
How can a "proper" function have a vertical slope?
Tikz node without text
Better way to calculate coordinates in Tikz?Use node text as argument for a macroCreating node shapesUnsetting a PGF/TikZ keyHow can I make labels (or other elements) rotate with a node using TikZ?Circuit Node with Text near Input and OutputCustom Tikz node with background graphics that scale to node size?Tikz draw as part of style (Drawing something inside each node of certain type)tikz Commutative Diagrams - Compiling and Best PracticeTikz Node Text Formatting Problems
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have a lot of diagrams with shapes where I draw lines between certain points on the boundary of those shapes. With Tikz I can use nodes to draw shapes, and use anchors like "node.west" to draw lines to points at their boundary.
However, I find it annoying to always set empty brackets after the node, as I never have text. Also instead of always having to specify "minimum height" and "minimum width", I would rather have a "size" key with a default value. Last, I haven't found a nice way to define custom node shapes that doesn't involve low level PGF code which I know nothing about.
Up to now, I'm just using commands that draw the desired shapes at Tikz coordinates. But then I don't have the possibility to use anchors, which I would find quite neat.
Is there a Tikz equivalent of a node, which isn't designed for putting text, but just shapes? Or is there another solution that is similar to what I want?
tikz-pgf tikz-styles tikz-node
add a comment
|
I have a lot of diagrams with shapes where I draw lines between certain points on the boundary of those shapes. With Tikz I can use nodes to draw shapes, and use anchors like "node.west" to draw lines to points at their boundary.
However, I find it annoying to always set empty brackets after the node, as I never have text. Also instead of always having to specify "minimum height" and "minimum width", I would rather have a "size" key with a default value. Last, I haven't found a nice way to define custom node shapes that doesn't involve low level PGF code which I know nothing about.
Up to now, I'm just using commands that draw the desired shapes at Tikz coordinates. But then I don't have the possibility to use anchors, which I would find quite neat.
Is there a Tikz equivalent of a node, which isn't designed for putting text, but just shapes? Or is there another solution that is similar to what I want?
tikz-pgf tikz-styles tikz-node
add a comment
|
I have a lot of diagrams with shapes where I draw lines between certain points on the boundary of those shapes. With Tikz I can use nodes to draw shapes, and use anchors like "node.west" to draw lines to points at their boundary.
However, I find it annoying to always set empty brackets after the node, as I never have text. Also instead of always having to specify "minimum height" and "minimum width", I would rather have a "size" key with a default value. Last, I haven't found a nice way to define custom node shapes that doesn't involve low level PGF code which I know nothing about.
Up to now, I'm just using commands that draw the desired shapes at Tikz coordinates. But then I don't have the possibility to use anchors, which I would find quite neat.
Is there a Tikz equivalent of a node, which isn't designed for putting text, but just shapes? Or is there another solution that is similar to what I want?
tikz-pgf tikz-styles tikz-node
I have a lot of diagrams with shapes where I draw lines between certain points on the boundary of those shapes. With Tikz I can use nodes to draw shapes, and use anchors like "node.west" to draw lines to points at their boundary.
However, I find it annoying to always set empty brackets after the node, as I never have text. Also instead of always having to specify "minimum height" and "minimum width", I would rather have a "size" key with a default value. Last, I haven't found a nice way to define custom node shapes that doesn't involve low level PGF code which I know nothing about.
Up to now, I'm just using commands that draw the desired shapes at Tikz coordinates. But then I don't have the possibility to use anchors, which I would find quite neat.
Is there a Tikz equivalent of a node, which isn't designed for putting text, but just shapes? Or is there another solution that is similar to what I want?
tikz-pgf tikz-styles tikz-node
tikz-pgf tikz-styles tikz-node
asked 8 hours ago
Andi BauerAndi Bauer
3571 silver badge9 bronze badges
3571 silver badge9 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
There is the key node contents that specifically allows you to drop the empty braces, . A minor pitfall is that this key needs to come after the name of the node.
documentclass[tikz,border=3mm]standalone
begindocument
begintikzpicture[circle only/.style=circle,draw,inner sep=2pt,node contents=]
path node (P) [circle only] ;
%path node[circle only] (P) ; % does not work
draw (P.north west) -- ++ (-1,1);
endtikzpicture
enddocument

For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.
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/4.0/"u003ecc by-sa 4.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
);
);
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%2f511442%2ftikz-node-without-text%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
There is the key node contents that specifically allows you to drop the empty braces, . A minor pitfall is that this key needs to come after the name of the node.
documentclass[tikz,border=3mm]standalone
begindocument
begintikzpicture[circle only/.style=circle,draw,inner sep=2pt,node contents=]
path node (P) [circle only] ;
%path node[circle only] (P) ; % does not work
draw (P.north west) -- ++ (-1,1);
endtikzpicture
enddocument

For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.
add a comment
|
There is the key node contents that specifically allows you to drop the empty braces, . A minor pitfall is that this key needs to come after the name of the node.
documentclass[tikz,border=3mm]standalone
begindocument
begintikzpicture[circle only/.style=circle,draw,inner sep=2pt,node contents=]
path node (P) [circle only] ;
%path node[circle only] (P) ; % does not work
draw (P.north west) -- ++ (-1,1);
endtikzpicture
enddocument

For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.
add a comment
|
There is the key node contents that specifically allows you to drop the empty braces, . A minor pitfall is that this key needs to come after the name of the node.
documentclass[tikz,border=3mm]standalone
begindocument
begintikzpicture[circle only/.style=circle,draw,inner sep=2pt,node contents=]
path node (P) [circle only] ;
%path node[circle only] (P) ; % does not work
draw (P.north west) -- ++ (-1,1);
endtikzpicture
enddocument

For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.
There is the key node contents that specifically allows you to drop the empty braces, . A minor pitfall is that this key needs to come after the name of the node.
documentclass[tikz,border=3mm]standalone
begindocument
begintikzpicture[circle only/.style=circle,draw,inner sep=2pt,node contents=]
path node (P) [circle only] ;
%path node[circle only] (P) ; % does not work
draw (P.north west) -- ++ (-1,1);
endtikzpicture
enddocument

For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.
edited 7 hours ago
answered 8 hours ago
Schrödinger's catSchrödinger's cat
13.5k17 silver badges36 bronze badges
13.5k17 silver badges36 bronze badges
add a comment
|
add a comment
|
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%2f511442%2ftikz-node-without-text%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