Extending anchors in TikZ The Next CEO of Stack OverflowRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeComputing the rectangle encompassing a node and a pointNumerical conditional within tikz keys?Help understanding the coordinate system used in tikzTikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themNode anchor centre of line

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

How to Reset Passwords on Multiple Websites Easily?

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Why did we only see the N-1 starfighters in one film?

Is HostGator storing my password in plaintext?

Anatomically Correct Mesopelagic Aves

Can I equip Skullclamp on a creature I am sacrificing?

Grabbing quick drinks

Why do professional authors make "consistency" mistakes? And how to avoid them?

Robert Sheckley short story about vacation spots being overwhelmed

How easy is it to start Magic from scratch?

Text adventure game code

Is it okay to store user locations?

How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?

Inappropriate reference requests from Journal reviewers

How do spells that require an ability check vs. the caster's spell save DC work?

Anatomically Correct Strange Women In Ponds Distributing Swords

Is it my responsibility to learn a new technology in my own time my employer wants to implement?

Need some help with wall behind rangetop

When Does an Atlas Uniquely Define a Manifold?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

What can we do to stop prior company from asking us questions?

Can a single photon have an energy density?

How do I go from 300 unfinished/half written blog posts, to published posts?



Extending anchors in TikZ



The Next CEO of Stack OverflowRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeComputing the rectangle encompassing a node and a pointNumerical conditional within tikz keys?Help understanding the coordinate system used in tikzTikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themNode anchor centre of line










1















The following are the standard anchors available in TikZ (to the best of my knowledge):



enter image description here



documentclassarticle
usepackagetikz
usetikzlibrarypositioning

tikzsetdot/.style =
shape = circle,
draw = black,
fill = black,
minimum size = 0.2cm


tikzsetsquarenode/.style =
shape = rectangle,
draw = black,
minimum height = 10cm,
minimum width = 10cm


begindocument
begintikzpicture[node distance=2cm]
node (a) at (0,0) [squarenode] ;
node[label=a.center] at (a.center) [dot] ;
node[label=a.north] at (a.north) [dot] ;
node[label=a.south] at (a.south) [dot] ;
node[label=a.east] at (a.east) [dot] ;
node[label=a.west] at (a.west) [dot] ;
node[label=a.north east] at (a.north east) [dot] ;
node[label=a.north west] at (a.north west) [dot] ;
node[label=a.south east] at (a.south east) [dot] ;
node[label=a.south west] at (a.south west) [dot] ;
endtikzpicture
enddocument


Now, how do I locate the following points:



  1. Point between a.south and a.south west (midpoint and normal point - any point on the line)

  2. Point between a.south west and a.center (midpoint and normal point - any point on the line)









share|improve this question


























    1















    The following are the standard anchors available in TikZ (to the best of my knowledge):



    enter image description here



    documentclassarticle
    usepackagetikz
    usetikzlibrarypositioning

    tikzsetdot/.style =
    shape = circle,
    draw = black,
    fill = black,
    minimum size = 0.2cm


    tikzsetsquarenode/.style =
    shape = rectangle,
    draw = black,
    minimum height = 10cm,
    minimum width = 10cm


    begindocument
    begintikzpicture[node distance=2cm]
    node (a) at (0,0) [squarenode] ;
    node[label=a.center] at (a.center) [dot] ;
    node[label=a.north] at (a.north) [dot] ;
    node[label=a.south] at (a.south) [dot] ;
    node[label=a.east] at (a.east) [dot] ;
    node[label=a.west] at (a.west) [dot] ;
    node[label=a.north east] at (a.north east) [dot] ;
    node[label=a.north west] at (a.north west) [dot] ;
    node[label=a.south east] at (a.south east) [dot] ;
    node[label=a.south west] at (a.south west) [dot] ;
    endtikzpicture
    enddocument


    Now, how do I locate the following points:



    1. Point between a.south and a.south west (midpoint and normal point - any point on the line)

    2. Point between a.south west and a.center (midpoint and normal point - any point on the line)









    share|improve this question
























      1












      1








      1








      The following are the standard anchors available in TikZ (to the best of my knowledge):



      enter image description here



      documentclassarticle
      usepackagetikz
      usetikzlibrarypositioning

      tikzsetdot/.style =
      shape = circle,
      draw = black,
      fill = black,
      minimum size = 0.2cm


      tikzsetsquarenode/.style =
      shape = rectangle,
      draw = black,
      minimum height = 10cm,
      minimum width = 10cm


      begindocument
      begintikzpicture[node distance=2cm]
      node (a) at (0,0) [squarenode] ;
      node[label=a.center] at (a.center) [dot] ;
      node[label=a.north] at (a.north) [dot] ;
      node[label=a.south] at (a.south) [dot] ;
      node[label=a.east] at (a.east) [dot] ;
      node[label=a.west] at (a.west) [dot] ;
      node[label=a.north east] at (a.north east) [dot] ;
      node[label=a.north west] at (a.north west) [dot] ;
      node[label=a.south east] at (a.south east) [dot] ;
      node[label=a.south west] at (a.south west) [dot] ;
      endtikzpicture
      enddocument


      Now, how do I locate the following points:



      1. Point between a.south and a.south west (midpoint and normal point - any point on the line)

      2. Point between a.south west and a.center (midpoint and normal point - any point on the line)









      share|improve this question














      The following are the standard anchors available in TikZ (to the best of my knowledge):



      enter image description here



      documentclassarticle
      usepackagetikz
      usetikzlibrarypositioning

      tikzsetdot/.style =
      shape = circle,
      draw = black,
      fill = black,
      minimum size = 0.2cm


      tikzsetsquarenode/.style =
      shape = rectangle,
      draw = black,
      minimum height = 10cm,
      minimum width = 10cm


      begindocument
      begintikzpicture[node distance=2cm]
      node (a) at (0,0) [squarenode] ;
      node[label=a.center] at (a.center) [dot] ;
      node[label=a.north] at (a.north) [dot] ;
      node[label=a.south] at (a.south) [dot] ;
      node[label=a.east] at (a.east) [dot] ;
      node[label=a.west] at (a.west) [dot] ;
      node[label=a.north east] at (a.north east) [dot] ;
      node[label=a.north west] at (a.north west) [dot] ;
      node[label=a.south east] at (a.south east) [dot] ;
      node[label=a.south west] at (a.south west) [dot] ;
      endtikzpicture
      enddocument


      Now, how do I locate the following points:



      1. Point between a.south and a.south west (midpoint and normal point - any point on the line)

      2. Point between a.south west and a.center (midpoint and normal point - any point on the line)






      tikz-pgf positioning






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 mins ago









      subham sonisubham soni

      4,71983185




      4,71983185




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You can gan get points on a line between two nodes with coordinate[pos=...], where ... is a fraction.



          documentclassarticle
          usepackagetikz
          usetikzlibrarypositioning

          tikzsetdot/.style =
          shape = circle,
          draw = black,
          fill = black,
          minimum size = 0.2cm


          tikzsetsquarenode/.style =
          shape = rectangle,
          draw = black,
          minimum height = 10cm,
          minimum width = 10cm


          begindocument
          begintikzpicture[node distance=2cm]
          node (a) at (0,0) [squarenode] ;
          node[label=a.center] at (a.center) [dot] ;
          node[label=a.north] at (a.north) [dot] ;
          node[label=a.south] at (a.south) [dot] ;
          node[label=a.east] at (a.east) [dot] ;
          node[label=a.west] at (a.west) [dot] ;
          node[label=a.north east] at (a.north east) [dot] ;
          node[label=a.north west] at (a.north west) [dot] ;
          node[label=a.south east] at (a.south east) [dot] ;
          node[label=a.south west] at (a.south west) [dot] ;
          path (a.south west) -- (a.south) coordinate[pos=0.5] (a-mid-sw)
          (a.south west) -- (a.center) coordinate[pos=0.3] (a-diag);
          node[label=a-mid-sw] at (a-mid-sw) [dot] ;
          node[label=a-diag] at (a-diag) [dot] ;
          endtikzpicture
          enddocument


          enter image description here





          share























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



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482057%2fextending-anchors-in-tikz%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









            0














            You can gan get points on a line between two nodes with coordinate[pos=...], where ... is a fraction.



            documentclassarticle
            usepackagetikz
            usetikzlibrarypositioning

            tikzsetdot/.style =
            shape = circle,
            draw = black,
            fill = black,
            minimum size = 0.2cm


            tikzsetsquarenode/.style =
            shape = rectangle,
            draw = black,
            minimum height = 10cm,
            minimum width = 10cm


            begindocument
            begintikzpicture[node distance=2cm]
            node (a) at (0,0) [squarenode] ;
            node[label=a.center] at (a.center) [dot] ;
            node[label=a.north] at (a.north) [dot] ;
            node[label=a.south] at (a.south) [dot] ;
            node[label=a.east] at (a.east) [dot] ;
            node[label=a.west] at (a.west) [dot] ;
            node[label=a.north east] at (a.north east) [dot] ;
            node[label=a.north west] at (a.north west) [dot] ;
            node[label=a.south east] at (a.south east) [dot] ;
            node[label=a.south west] at (a.south west) [dot] ;
            path (a.south west) -- (a.south) coordinate[pos=0.5] (a-mid-sw)
            (a.south west) -- (a.center) coordinate[pos=0.3] (a-diag);
            node[label=a-mid-sw] at (a-mid-sw) [dot] ;
            node[label=a-diag] at (a-diag) [dot] ;
            endtikzpicture
            enddocument


            enter image description here





            share



























              0














              You can gan get points on a line between two nodes with coordinate[pos=...], where ... is a fraction.



              documentclassarticle
              usepackagetikz
              usetikzlibrarypositioning

              tikzsetdot/.style =
              shape = circle,
              draw = black,
              fill = black,
              minimum size = 0.2cm


              tikzsetsquarenode/.style =
              shape = rectangle,
              draw = black,
              minimum height = 10cm,
              minimum width = 10cm


              begindocument
              begintikzpicture[node distance=2cm]
              node (a) at (0,0) [squarenode] ;
              node[label=a.center] at (a.center) [dot] ;
              node[label=a.north] at (a.north) [dot] ;
              node[label=a.south] at (a.south) [dot] ;
              node[label=a.east] at (a.east) [dot] ;
              node[label=a.west] at (a.west) [dot] ;
              node[label=a.north east] at (a.north east) [dot] ;
              node[label=a.north west] at (a.north west) [dot] ;
              node[label=a.south east] at (a.south east) [dot] ;
              node[label=a.south west] at (a.south west) [dot] ;
              path (a.south west) -- (a.south) coordinate[pos=0.5] (a-mid-sw)
              (a.south west) -- (a.center) coordinate[pos=0.3] (a-diag);
              node[label=a-mid-sw] at (a-mid-sw) [dot] ;
              node[label=a-diag] at (a-diag) [dot] ;
              endtikzpicture
              enddocument


              enter image description here





              share

























                0












                0








                0







                You can gan get points on a line between two nodes with coordinate[pos=...], where ... is a fraction.



                documentclassarticle
                usepackagetikz
                usetikzlibrarypositioning

                tikzsetdot/.style =
                shape = circle,
                draw = black,
                fill = black,
                minimum size = 0.2cm


                tikzsetsquarenode/.style =
                shape = rectangle,
                draw = black,
                minimum height = 10cm,
                minimum width = 10cm


                begindocument
                begintikzpicture[node distance=2cm]
                node (a) at (0,0) [squarenode] ;
                node[label=a.center] at (a.center) [dot] ;
                node[label=a.north] at (a.north) [dot] ;
                node[label=a.south] at (a.south) [dot] ;
                node[label=a.east] at (a.east) [dot] ;
                node[label=a.west] at (a.west) [dot] ;
                node[label=a.north east] at (a.north east) [dot] ;
                node[label=a.north west] at (a.north west) [dot] ;
                node[label=a.south east] at (a.south east) [dot] ;
                node[label=a.south west] at (a.south west) [dot] ;
                path (a.south west) -- (a.south) coordinate[pos=0.5] (a-mid-sw)
                (a.south west) -- (a.center) coordinate[pos=0.3] (a-diag);
                node[label=a-mid-sw] at (a-mid-sw) [dot] ;
                node[label=a-diag] at (a-diag) [dot] ;
                endtikzpicture
                enddocument


                enter image description here





                share













                You can gan get points on a line between two nodes with coordinate[pos=...], where ... is a fraction.



                documentclassarticle
                usepackagetikz
                usetikzlibrarypositioning

                tikzsetdot/.style =
                shape = circle,
                draw = black,
                fill = black,
                minimum size = 0.2cm


                tikzsetsquarenode/.style =
                shape = rectangle,
                draw = black,
                minimum height = 10cm,
                minimum width = 10cm


                begindocument
                begintikzpicture[node distance=2cm]
                node (a) at (0,0) [squarenode] ;
                node[label=a.center] at (a.center) [dot] ;
                node[label=a.north] at (a.north) [dot] ;
                node[label=a.south] at (a.south) [dot] ;
                node[label=a.east] at (a.east) [dot] ;
                node[label=a.west] at (a.west) [dot] ;
                node[label=a.north east] at (a.north east) [dot] ;
                node[label=a.north west] at (a.north west) [dot] ;
                node[label=a.south east] at (a.south east) [dot] ;
                node[label=a.south west] at (a.south west) [dot] ;
                path (a.south west) -- (a.south) coordinate[pos=0.5] (a-mid-sw)
                (a.south west) -- (a.center) coordinate[pos=0.3] (a-diag);
                node[label=a-mid-sw] at (a-mid-sw) [dot] ;
                node[label=a-diag] at (a-diag) [dot] ;
                endtikzpicture
                enddocument


                enter image description here






                share











                share


                share










                answered 3 mins ago









                marmotmarmot

                112k5144271




                112k5144271



























                    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%2f482057%2fextending-anchors-in-tikz%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

                    How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

                    Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"

                    Haugesund Nexus externi | Tabula navigationisHaugesund pagina interretialisAmplifica