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;









2

















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?










share|improve this question
































    2

















    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?










    share|improve this question




























      2












      2








      2








      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question



      share|improve this question










      asked 8 hours ago









      Andi BauerAndi Bauer

      3571 silver badge9 bronze badges




      3571 silver badge9 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          6


















          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


          enter image description here



          For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.






          share|improve this answer





























            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
            );



            );














            draft saved

            draft discarded
















            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









            6


















            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


            enter image description here



            For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.






            share|improve this answer
































              6


















              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


              enter image description here



              For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.






              share|improve this answer






























                6














                6










                6









                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


                enter image description here



                For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.






                share|improve this answer
















                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


                enter image description here



                For somewhat more advanced options look up the definition of vertex that ships with tikz-feynman.







                share|improve this answer















                share|improve this answer




                share|improve this answer



                share|improve this answer








                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































                    draft saved

                    draft discarded















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480