Tikz, arrow formattingpgfplots: custom axis arrow headHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideTikZ: 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 themHow to draw a square and its diagonals with arrows?Smooth curved arrow through multiple nodes tikz (beamer)Adding nodes through a TikZ style, using double dash lines ``--``tikz nodes inside node

How would someone destroy a black hole that’s at the centre of a planet?

Absconding a company after 1st day of joining

Why do candidates not quit if they no longer have a realistic chance to win in the 2020 US presidents election

I quit, and boss offered me 3 month "grace period" where I could still come back

How did John Lennon tune his guitar

Why do mean value theorems have open interval for differentiablity while closed for continuity?

Is it rude to tell recruiters I would only change jobs for a better salary?

Are there any double stars that I can actually see orbit each other?

Why didn't Al Powell investigate the lights at the top of the building?

Published paper containing well-known results

Number of optically active compounds among the products of ozonolysis

Hot object in a vacuum

Mistakenly modified `/bin/sh'

Why does the Earth have a z-component at the start of the J2000 epoch?

Do native speakers use ZVE or CPU?

How are "soeben" and "eben" different from one another?

How long do Apple retain notifications to be pushed to iOS devices until they expire?

Relationship between GCD, LCM and the Riemann Zeta function

Commutator subgroup of Heisenberg group.

How can I legally visit the United States Minor Outlying Islands in the Pacific?

Spider-Man: Far From Home - Why do they take a detour to Dorset?

What is the standard dungeon scale at the table?

Why is "dark" an adverb in this sentence?

Why does a small sanhedrin have 23 judges rather than 21?



Tikz, arrow formatting


pgfplots: custom axis arrow headHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideTikZ: 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 themHow to draw a square and its diagonals with arrows?Smooth curved arrow through multiple nodes tikz (beamer)Adding nodes through a TikZ style, using double dash lines ``--``tikz nodes inside node






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















Consider the following picture:
enter image description here



and the code at the bottom. I'm happy with the result on the left; now I've started with digraphs and I need arrows; I'm trying to get the - for me - best possible style. I would like to achieve the following:



  1. The arrow head should have 1pt separation from the bullet, but the tail should have no space and also the normal edges should not, of course

  2. [DONE] The head should be like the one in the following post (and not a triangle as in my attempt): pgfplots: custom axis arrow head

  3. [DONE] And the standard head should not appear

  4. Since I generate the picture out of python, the formatting of the arrow should be encapsulated in a style, as I do for the nodes with the style bullet, see my try with myarrow

.



documentclassarticle
usepackagetikz
usetikzlibraryarrows.meta
usepackagesubcaption

begindocument

beginfigure[hbt]
beginsubfigure[b]0.49000textwidth
centering
begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
node[bullet] at (1.00000,1.73205) (1) ;
node[bullet] at (-1.00000,1.73205) (2) ;
node[bullet] at (-2.00000,0.00000) (3) ;
node[bullet] at (-1.00000,-1.73205) (4) ;
node[bullet] at (1.00000,-1.73205) (5) ;
draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
endsubfigure
beginsubfigure[b]0.49000textwidth
centering
begintikzpicture
[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]
[myarrow/.style=-Stealth[length=2mm, width=2mm]]
useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
node[bullet] at (1.00000,1.73205) (1) ;
node[bullet] at (-1.00000,1.73205) (2) ;
node[bullet] at (-2.00000,0.00000) (3) ;
node[bullet] at (-1.00000,-1.73205) (4) ;
node[bullet] at (1.00000,-1.73205) (5) ;
draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[-Stealth[length=2mm, width=2mm]] (5) -- (0); endtikzpicturecaption
endsubfigure
caption
endfigure

enddocument









share|improve this question






























    3















    Consider the following picture:
    enter image description here



    and the code at the bottom. I'm happy with the result on the left; now I've started with digraphs and I need arrows; I'm trying to get the - for me - best possible style. I would like to achieve the following:



    1. The arrow head should have 1pt separation from the bullet, but the tail should have no space and also the normal edges should not, of course

    2. [DONE] The head should be like the one in the following post (and not a triangle as in my attempt): pgfplots: custom axis arrow head

    3. [DONE] And the standard head should not appear

    4. Since I generate the picture out of python, the formatting of the arrow should be encapsulated in a style, as I do for the nodes with the style bullet, see my try with myarrow

    .



    documentclassarticle
    usepackagetikz
    usetikzlibraryarrows.meta
    usepackagesubcaption

    begindocument

    beginfigure[hbt]
    beginsubfigure[b]0.49000textwidth
    centering
    begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
    node[bullet] at (1.00000,1.73205) (1) ;
    node[bullet] at (-1.00000,1.73205) (2) ;
    node[bullet] at (-2.00000,0.00000) (3) ;
    node[bullet] at (-1.00000,-1.73205) (4) ;
    node[bullet] at (1.00000,-1.73205) (5) ;
    draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
    endsubfigure
    beginsubfigure[b]0.49000textwidth
    centering
    begintikzpicture
    [bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]
    [myarrow/.style=-Stealth[length=2mm, width=2mm]]
    useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
    node[bullet] at (1.00000,1.73205) (1) ;
    node[bullet] at (-1.00000,1.73205) (2) ;
    node[bullet] at (-2.00000,0.00000) (3) ;
    node[bullet] at (-1.00000,-1.73205) (4) ;
    node[bullet] at (1.00000,-1.73205) (5) ;
    draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[-Stealth[length=2mm, width=2mm]] (5) -- (0); endtikzpicturecaption
    endsubfigure
    caption
    endfigure

    enddocument









    share|improve this question


























      3












      3








      3








      Consider the following picture:
      enter image description here



      and the code at the bottom. I'm happy with the result on the left; now I've started with digraphs and I need arrows; I'm trying to get the - for me - best possible style. I would like to achieve the following:



      1. The arrow head should have 1pt separation from the bullet, but the tail should have no space and also the normal edges should not, of course

      2. [DONE] The head should be like the one in the following post (and not a triangle as in my attempt): pgfplots: custom axis arrow head

      3. [DONE] And the standard head should not appear

      4. Since I generate the picture out of python, the formatting of the arrow should be encapsulated in a style, as I do for the nodes with the style bullet, see my try with myarrow

      .



      documentclassarticle
      usepackagetikz
      usetikzlibraryarrows.meta
      usepackagesubcaption

      begindocument

      beginfigure[hbt]
      beginsubfigure[b]0.49000textwidth
      centering
      begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
      node[bullet] at (1.00000,1.73205) (1) ;
      node[bullet] at (-1.00000,1.73205) (2) ;
      node[bullet] at (-2.00000,0.00000) (3) ;
      node[bullet] at (-1.00000,-1.73205) (4) ;
      node[bullet] at (1.00000,-1.73205) (5) ;
      draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
      endsubfigure
      beginsubfigure[b]0.49000textwidth
      centering
      begintikzpicture
      [bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]
      [myarrow/.style=-Stealth[length=2mm, width=2mm]]
      useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
      node[bullet] at (1.00000,1.73205) (1) ;
      node[bullet] at (-1.00000,1.73205) (2) ;
      node[bullet] at (-2.00000,0.00000) (3) ;
      node[bullet] at (-1.00000,-1.73205) (4) ;
      node[bullet] at (1.00000,-1.73205) (5) ;
      draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[-Stealth[length=2mm, width=2mm]] (5) -- (0); endtikzpicturecaption
      endsubfigure
      caption
      endfigure

      enddocument









      share|improve this question
















      Consider the following picture:
      enter image description here



      and the code at the bottom. I'm happy with the result on the left; now I've started with digraphs and I need arrows; I'm trying to get the - for me - best possible style. I would like to achieve the following:



      1. The arrow head should have 1pt separation from the bullet, but the tail should have no space and also the normal edges should not, of course

      2. [DONE] The head should be like the one in the following post (and not a triangle as in my attempt): pgfplots: custom axis arrow head

      3. [DONE] And the standard head should not appear

      4. Since I generate the picture out of python, the formatting of the arrow should be encapsulated in a style, as I do for the nodes with the style bullet, see my try with myarrow

      .



      documentclassarticle
      usepackagetikz
      usetikzlibraryarrows.meta
      usepackagesubcaption

      begindocument

      beginfigure[hbt]
      beginsubfigure[b]0.49000textwidth
      centering
      begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
      node[bullet] at (1.00000,1.73205) (1) ;
      node[bullet] at (-1.00000,1.73205) (2) ;
      node[bullet] at (-2.00000,0.00000) (3) ;
      node[bullet] at (-1.00000,-1.73205) (4) ;
      node[bullet] at (1.00000,-1.73205) (5) ;
      draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
      endsubfigure
      beginsubfigure[b]0.49000textwidth
      centering
      begintikzpicture
      [bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]
      [myarrow/.style=-Stealth[length=2mm, width=2mm]]
      useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
      node[bullet] at (1.00000,1.73205) (1) ;
      node[bullet] at (-1.00000,1.73205) (2) ;
      node[bullet] at (-2.00000,0.00000) (3) ;
      node[bullet] at (-1.00000,-1.73205) (4) ;
      node[bullet] at (1.00000,-1.73205) (5) ;
      draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[-Stealth[length=2mm, width=2mm]] (5) -- (0); endtikzpicturecaption
      endsubfigure
      caption
      endfigure

      enddocument






      tikz-pgf tikz-styles tikz-arrows






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 6 at 12:41







      PeptideChain

















      asked Jul 6 at 12:31









      PeptideChainPeptideChain

      3601 silver badge9 bronze badges




      3601 silver badge9 bronze badges




















          3 Answers
          3






          active

          oldest

          votes


















          4














          You should include myarrow/.style inside the first square brackets in order to define the style. In the style you can specify the arrow tip distance from the node with the sep=1pt option as in the example below.



          If the myarrow style is to be used in multiple tikzpicture environments, you can define the style in the preamble with tikzsetmyarrow/.style=... instead of defining it inside the optional arguments to each individual environment.



          documentclassarticle
          usepackagetikz
          usetikzlibraryarrows.meta
          usepackagesubcaption

          % Definition of myarrow style to be used in multiple tikzpictures
          % tikzsetmyarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]

          begindocument

          beginfigure[hbt]
          beginsubfigure[b]0.49000textwidth
          centering
          begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
          node[bullet] at (1.00000,1.73205) (1) ;
          node[bullet] at (-1.00000,1.73205) (2) ;
          node[bullet] at (-2.00000,0.00000) (3) ;
          node[bullet] at (-1.00000,-1.73205) (4) ;
          node[bullet] at (1.00000,-1.73205) (5) ;
          draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
          endsubfigure
          beginsubfigure[b]0.49000textwidth
          centering
          begintikzpicture
          [bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt,
          myarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]]
          useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
          node[bullet] at (1.00000,1.73205) (1) ;
          node[bullet] at (-1.00000,1.73205) (2) ;
          node[bullet] at (-2.00000,0.00000) (3) ;
          node[bullet] at (-1.00000,-1.73205) (4) ;
          node[bullet] at (1.00000,-1.73205) (5) ;
          draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[myarrow] (5) -- (0); endtikzpicturecaption
          endsubfigure
          caption
          endfigure

          enddocument


          Resulting output






          share|improve this answer
































            1














            With use regular polygon for determining coordinates
            of bullets (named dot in MWE below) and loops for drawing lines in sub figure b. Styles for arrows and nodes' shapes are common for both picture. Arrows are defined by



            arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,


            MWE:



            documentclassarticle
            usepackagetikz
            usetikzlibraryarrows.meta,
            shapes.geometric
            usepackagesubcaption


            begindocument

            beginfigure[hbt]
            tikzset
            dot/.style = circle, fill, inner sep=2pt,
            arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,
            HEX/.style = regular polygon, regular polygon sides=6,
            minimum size=33mm, rotate=-60,
            node contents=

            beginsubfigure[b]0.49textwidth
            centering
            begintikzpicture
            node (n0) [HEX,draw];
            foreach i in 1,...,6
            node[dot] at (n0.corner i) ;
            endtikzpicture
            caption
            endsubfigure
            hfill
            beginsubfigure[b]0.49textwidth
            centering
            begintikzpicture
            node (n0) [HEX];
            foreach i in 1,...,6
            node (ni) [dot] at (n0.corner i) ;
            foreach i [count=j from 2] in 1,...,4
            draw (n0.corner i) -- (n0.corner j);
            draw[arr] (n5) -- (n6);
            draw[arr] (n6) -- (n1);
            endtikzpicture
            caption
            endsubfigure
            caption
            endfigure

            enddocument


            enter image description here






            share|improve this answer
































              1














              You can use shorten > as an option or in a style.
              enter image description here



              documentclass[tikz,border=5mm]standalone
              begindocument
              begintikzpicture
              foreach i in 0,...,5
              fill (60*i:2) circle(2pt) coordinate (Ai);

              draw (A0)--(A1)--(A2)--(A3)--(A4);
              draw[-stealth, shorten >=3pt] (A4)--(A5);
              draw[-stealth, shorten >=3pt] (A5)--(A0);
              endtikzpicture

              begintikzpicture[myarr/.style=-stealth, shorten >=3pt]
              foreach i in 0,...,5
              fill (60*i:2) circle(2pt) coordinate (Ai);

              draw (A0)--(A1)--(A2)--(A3)--(A4);
              draw[myarr] (A4)--(A5);
              draw[myarr] (A5)--(A0);
              endtikzpicture
              enddocument





              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/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%2f498871%2ftikz-arrow-formatting%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                4














                You should include myarrow/.style inside the first square brackets in order to define the style. In the style you can specify the arrow tip distance from the node with the sep=1pt option as in the example below.



                If the myarrow style is to be used in multiple tikzpicture environments, you can define the style in the preamble with tikzsetmyarrow/.style=... instead of defining it inside the optional arguments to each individual environment.



                documentclassarticle
                usepackagetikz
                usetikzlibraryarrows.meta
                usepackagesubcaption

                % Definition of myarrow style to be used in multiple tikzpictures
                % tikzsetmyarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]

                begindocument

                beginfigure[hbt]
                beginsubfigure[b]0.49000textwidth
                centering
                begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
                node[bullet] at (1.00000,1.73205) (1) ;
                node[bullet] at (-1.00000,1.73205) (2) ;
                node[bullet] at (-2.00000,0.00000) (3) ;
                node[bullet] at (-1.00000,-1.73205) (4) ;
                node[bullet] at (1.00000,-1.73205) (5) ;
                draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
                endsubfigure
                beginsubfigure[b]0.49000textwidth
                centering
                begintikzpicture
                [bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt,
                myarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]]
                useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
                node[bullet] at (1.00000,1.73205) (1) ;
                node[bullet] at (-1.00000,1.73205) (2) ;
                node[bullet] at (-2.00000,0.00000) (3) ;
                node[bullet] at (-1.00000,-1.73205) (4) ;
                node[bullet] at (1.00000,-1.73205) (5) ;
                draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[myarrow] (5) -- (0); endtikzpicturecaption
                endsubfigure
                caption
                endfigure

                enddocument


                Resulting output






                share|improve this answer





























                  4














                  You should include myarrow/.style inside the first square brackets in order to define the style. In the style you can specify the arrow tip distance from the node with the sep=1pt option as in the example below.



                  If the myarrow style is to be used in multiple tikzpicture environments, you can define the style in the preamble with tikzsetmyarrow/.style=... instead of defining it inside the optional arguments to each individual environment.



                  documentclassarticle
                  usepackagetikz
                  usetikzlibraryarrows.meta
                  usepackagesubcaption

                  % Definition of myarrow style to be used in multiple tikzpictures
                  % tikzsetmyarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]

                  begindocument

                  beginfigure[hbt]
                  beginsubfigure[b]0.49000textwidth
                  centering
                  begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
                  node[bullet] at (1.00000,1.73205) (1) ;
                  node[bullet] at (-1.00000,1.73205) (2) ;
                  node[bullet] at (-2.00000,0.00000) (3) ;
                  node[bullet] at (-1.00000,-1.73205) (4) ;
                  node[bullet] at (1.00000,-1.73205) (5) ;
                  draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
                  endsubfigure
                  beginsubfigure[b]0.49000textwidth
                  centering
                  begintikzpicture
                  [bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt,
                  myarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]]
                  useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
                  node[bullet] at (1.00000,1.73205) (1) ;
                  node[bullet] at (-1.00000,1.73205) (2) ;
                  node[bullet] at (-2.00000,0.00000) (3) ;
                  node[bullet] at (-1.00000,-1.73205) (4) ;
                  node[bullet] at (1.00000,-1.73205) (5) ;
                  draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[myarrow] (5) -- (0); endtikzpicturecaption
                  endsubfigure
                  caption
                  endfigure

                  enddocument


                  Resulting output






                  share|improve this answer



























                    4












                    4








                    4







                    You should include myarrow/.style inside the first square brackets in order to define the style. In the style you can specify the arrow tip distance from the node with the sep=1pt option as in the example below.



                    If the myarrow style is to be used in multiple tikzpicture environments, you can define the style in the preamble with tikzsetmyarrow/.style=... instead of defining it inside the optional arguments to each individual environment.



                    documentclassarticle
                    usepackagetikz
                    usetikzlibraryarrows.meta
                    usepackagesubcaption

                    % Definition of myarrow style to be used in multiple tikzpictures
                    % tikzsetmyarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]

                    begindocument

                    beginfigure[hbt]
                    beginsubfigure[b]0.49000textwidth
                    centering
                    begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
                    node[bullet] at (1.00000,1.73205) (1) ;
                    node[bullet] at (-1.00000,1.73205) (2) ;
                    node[bullet] at (-2.00000,0.00000) (3) ;
                    node[bullet] at (-1.00000,-1.73205) (4) ;
                    node[bullet] at (1.00000,-1.73205) (5) ;
                    draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
                    endsubfigure
                    beginsubfigure[b]0.49000textwidth
                    centering
                    begintikzpicture
                    [bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt,
                    myarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]]
                    useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
                    node[bullet] at (1.00000,1.73205) (1) ;
                    node[bullet] at (-1.00000,1.73205) (2) ;
                    node[bullet] at (-2.00000,0.00000) (3) ;
                    node[bullet] at (-1.00000,-1.73205) (4) ;
                    node[bullet] at (1.00000,-1.73205) (5) ;
                    draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[myarrow] (5) -- (0); endtikzpicturecaption
                    endsubfigure
                    caption
                    endfigure

                    enddocument


                    Resulting output






                    share|improve this answer















                    You should include myarrow/.style inside the first square brackets in order to define the style. In the style you can specify the arrow tip distance from the node with the sep=1pt option as in the example below.



                    If the myarrow style is to be used in multiple tikzpicture environments, you can define the style in the preamble with tikzsetmyarrow/.style=... instead of defining it inside the optional arguments to each individual environment.



                    documentclassarticle
                    usepackagetikz
                    usetikzlibraryarrows.meta
                    usepackagesubcaption

                    % Definition of myarrow style to be used in multiple tikzpictures
                    % tikzsetmyarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]

                    begindocument

                    beginfigure[hbt]
                    beginsubfigure[b]0.49000textwidth
                    centering
                    begintikzpicture[bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt]useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
                    node[bullet] at (1.00000,1.73205) (1) ;
                    node[bullet] at (-1.00000,1.73205) (2) ;
                    node[bullet] at (-2.00000,0.00000) (3) ;
                    node[bullet] at (-1.00000,-1.73205) (4) ;
                    node[bullet] at (1.00000,-1.73205) (5) ;
                    draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw (4) -- (5); draw (5) -- (0); endtikzpicturecaption
                    endsubfigure
                    beginsubfigure[b]0.49000textwidth
                    centering
                    begintikzpicture
                    [bullet/.style=circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt,
                    myarrow/.style=-Stealth[length=2mm, width=2mm, sep=1pt]]
                    useasboundingbox (-2,-2)rectangle(2,2);node[bullet] at (2.00000,0.00000) (0) ;
                    node[bullet] at (1.00000,1.73205) (1) ;
                    node[bullet] at (-1.00000,1.73205) (2) ;
                    node[bullet] at (-2.00000,0.00000) (3) ;
                    node[bullet] at (-1.00000,-1.73205) (4) ;
                    node[bullet] at (1.00000,-1.73205) (5) ;
                    draw (0) -- (1); draw (1) -- (2); draw (2) -- (3); draw (3) -- (4); draw[myarrow] (4) -- (5); draw[myarrow] (5) -- (0); endtikzpicturecaption
                    endsubfigure
                    caption
                    endfigure

                    enddocument


                    Resulting output







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jul 6 at 13:13

























                    answered Jul 6 at 13:02









                    soddsodd

                    4,40314 silver badges28 bronze badges




                    4,40314 silver badges28 bronze badges























                        1














                        With use regular polygon for determining coordinates
                        of bullets (named dot in MWE below) and loops for drawing lines in sub figure b. Styles for arrows and nodes' shapes are common for both picture. Arrows are defined by



                        arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,


                        MWE:



                        documentclassarticle
                        usepackagetikz
                        usetikzlibraryarrows.meta,
                        shapes.geometric
                        usepackagesubcaption


                        begindocument

                        beginfigure[hbt]
                        tikzset
                        dot/.style = circle, fill, inner sep=2pt,
                        arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,
                        HEX/.style = regular polygon, regular polygon sides=6,
                        minimum size=33mm, rotate=-60,
                        node contents=

                        beginsubfigure[b]0.49textwidth
                        centering
                        begintikzpicture
                        node (n0) [HEX,draw];
                        foreach i in 1,...,6
                        node[dot] at (n0.corner i) ;
                        endtikzpicture
                        caption
                        endsubfigure
                        hfill
                        beginsubfigure[b]0.49textwidth
                        centering
                        begintikzpicture
                        node (n0) [HEX];
                        foreach i in 1,...,6
                        node (ni) [dot] at (n0.corner i) ;
                        foreach i [count=j from 2] in 1,...,4
                        draw (n0.corner i) -- (n0.corner j);
                        draw[arr] (n5) -- (n6);
                        draw[arr] (n6) -- (n1);
                        endtikzpicture
                        caption
                        endsubfigure
                        caption
                        endfigure

                        enddocument


                        enter image description here






                        share|improve this answer





























                          1














                          With use regular polygon for determining coordinates
                          of bullets (named dot in MWE below) and loops for drawing lines in sub figure b. Styles for arrows and nodes' shapes are common for both picture. Arrows are defined by



                          arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,


                          MWE:



                          documentclassarticle
                          usepackagetikz
                          usetikzlibraryarrows.meta,
                          shapes.geometric
                          usepackagesubcaption


                          begindocument

                          beginfigure[hbt]
                          tikzset
                          dot/.style = circle, fill, inner sep=2pt,
                          arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,
                          HEX/.style = regular polygon, regular polygon sides=6,
                          minimum size=33mm, rotate=-60,
                          node contents=

                          beginsubfigure[b]0.49textwidth
                          centering
                          begintikzpicture
                          node (n0) [HEX,draw];
                          foreach i in 1,...,6
                          node[dot] at (n0.corner i) ;
                          endtikzpicture
                          caption
                          endsubfigure
                          hfill
                          beginsubfigure[b]0.49textwidth
                          centering
                          begintikzpicture
                          node (n0) [HEX];
                          foreach i in 1,...,6
                          node (ni) [dot] at (n0.corner i) ;
                          foreach i [count=j from 2] in 1,...,4
                          draw (n0.corner i) -- (n0.corner j);
                          draw[arr] (n5) -- (n6);
                          draw[arr] (n6) -- (n1);
                          endtikzpicture
                          caption
                          endsubfigure
                          caption
                          endfigure

                          enddocument


                          enter image description here






                          share|improve this answer



























                            1












                            1








                            1







                            With use regular polygon for determining coordinates
                            of bullets (named dot in MWE below) and loops for drawing lines in sub figure b. Styles for arrows and nodes' shapes are common for both picture. Arrows are defined by



                            arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,


                            MWE:



                            documentclassarticle
                            usepackagetikz
                            usetikzlibraryarrows.meta,
                            shapes.geometric
                            usepackagesubcaption


                            begindocument

                            beginfigure[hbt]
                            tikzset
                            dot/.style = circle, fill, inner sep=2pt,
                            arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,
                            HEX/.style = regular polygon, regular polygon sides=6,
                            minimum size=33mm, rotate=-60,
                            node contents=

                            beginsubfigure[b]0.49textwidth
                            centering
                            begintikzpicture
                            node (n0) [HEX,draw];
                            foreach i in 1,...,6
                            node[dot] at (n0.corner i) ;
                            endtikzpicture
                            caption
                            endsubfigure
                            hfill
                            beginsubfigure[b]0.49textwidth
                            centering
                            begintikzpicture
                            node (n0) [HEX];
                            foreach i in 1,...,6
                            node (ni) [dot] at (n0.corner i) ;
                            foreach i [count=j from 2] in 1,...,4
                            draw (n0.corner i) -- (n0.corner j);
                            draw[arr] (n5) -- (n6);
                            draw[arr] (n6) -- (n1);
                            endtikzpicture
                            caption
                            endsubfigure
                            caption
                            endfigure

                            enddocument


                            enter image description here






                            share|improve this answer















                            With use regular polygon for determining coordinates
                            of bullets (named dot in MWE below) and loops for drawing lines in sub figure b. Styles for arrows and nodes' shapes are common for both picture. Arrows are defined by



                            arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,


                            MWE:



                            documentclassarticle
                            usepackagetikz
                            usetikzlibraryarrows.meta,
                            shapes.geometric
                            usepackagesubcaption


                            begindocument

                            beginfigure[hbt]
                            tikzset
                            dot/.style = circle, fill, inner sep=2pt,
                            arr/.style = -Stealth[length=2mm, width=2mm],shorten >=1pt,
                            HEX/.style = regular polygon, regular polygon sides=6,
                            minimum size=33mm, rotate=-60,
                            node contents=

                            beginsubfigure[b]0.49textwidth
                            centering
                            begintikzpicture
                            node (n0) [HEX,draw];
                            foreach i in 1,...,6
                            node[dot] at (n0.corner i) ;
                            endtikzpicture
                            caption
                            endsubfigure
                            hfill
                            beginsubfigure[b]0.49textwidth
                            centering
                            begintikzpicture
                            node (n0) [HEX];
                            foreach i in 1,...,6
                            node (ni) [dot] at (n0.corner i) ;
                            foreach i [count=j from 2] in 1,...,4
                            draw (n0.corner i) -- (n0.corner j);
                            draw[arr] (n5) -- (n6);
                            draw[arr] (n6) -- (n1);
                            endtikzpicture
                            caption
                            endsubfigure
                            caption
                            endfigure

                            enddocument


                            enter image description here







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jul 6 at 14:10

























                            answered Jul 6 at 14:02









                            ZarkoZarko

                            139k8 gold badges78 silver badges189 bronze badges




                            139k8 gold badges78 silver badges189 bronze badges





















                                1














                                You can use shorten > as an option or in a style.
                                enter image description here



                                documentclass[tikz,border=5mm]standalone
                                begindocument
                                begintikzpicture
                                foreach i in 0,...,5
                                fill (60*i:2) circle(2pt) coordinate (Ai);

                                draw (A0)--(A1)--(A2)--(A3)--(A4);
                                draw[-stealth, shorten >=3pt] (A4)--(A5);
                                draw[-stealth, shorten >=3pt] (A5)--(A0);
                                endtikzpicture

                                begintikzpicture[myarr/.style=-stealth, shorten >=3pt]
                                foreach i in 0,...,5
                                fill (60*i:2) circle(2pt) coordinate (Ai);

                                draw (A0)--(A1)--(A2)--(A3)--(A4);
                                draw[myarr] (A4)--(A5);
                                draw[myarr] (A5)--(A0);
                                endtikzpicture
                                enddocument





                                share|improve this answer



























                                  1














                                  You can use shorten > as an option or in a style.
                                  enter image description here



                                  documentclass[tikz,border=5mm]standalone
                                  begindocument
                                  begintikzpicture
                                  foreach i in 0,...,5
                                  fill (60*i:2) circle(2pt) coordinate (Ai);

                                  draw (A0)--(A1)--(A2)--(A3)--(A4);
                                  draw[-stealth, shorten >=3pt] (A4)--(A5);
                                  draw[-stealth, shorten >=3pt] (A5)--(A0);
                                  endtikzpicture

                                  begintikzpicture[myarr/.style=-stealth, shorten >=3pt]
                                  foreach i in 0,...,5
                                  fill (60*i:2) circle(2pt) coordinate (Ai);

                                  draw (A0)--(A1)--(A2)--(A3)--(A4);
                                  draw[myarr] (A4)--(A5);
                                  draw[myarr] (A5)--(A0);
                                  endtikzpicture
                                  enddocument





                                  share|improve this answer

























                                    1












                                    1








                                    1







                                    You can use shorten > as an option or in a style.
                                    enter image description here



                                    documentclass[tikz,border=5mm]standalone
                                    begindocument
                                    begintikzpicture
                                    foreach i in 0,...,5
                                    fill (60*i:2) circle(2pt) coordinate (Ai);

                                    draw (A0)--(A1)--(A2)--(A3)--(A4);
                                    draw[-stealth, shorten >=3pt] (A4)--(A5);
                                    draw[-stealth, shorten >=3pt] (A5)--(A0);
                                    endtikzpicture

                                    begintikzpicture[myarr/.style=-stealth, shorten >=3pt]
                                    foreach i in 0,...,5
                                    fill (60*i:2) circle(2pt) coordinate (Ai);

                                    draw (A0)--(A1)--(A2)--(A3)--(A4);
                                    draw[myarr] (A4)--(A5);
                                    draw[myarr] (A5)--(A0);
                                    endtikzpicture
                                    enddocument





                                    share|improve this answer













                                    You can use shorten > as an option or in a style.
                                    enter image description here



                                    documentclass[tikz,border=5mm]standalone
                                    begindocument
                                    begintikzpicture
                                    foreach i in 0,...,5
                                    fill (60*i:2) circle(2pt) coordinate (Ai);

                                    draw (A0)--(A1)--(A2)--(A3)--(A4);
                                    draw[-stealth, shorten >=3pt] (A4)--(A5);
                                    draw[-stealth, shorten >=3pt] (A5)--(A0);
                                    endtikzpicture

                                    begintikzpicture[myarr/.style=-stealth, shorten >=3pt]
                                    foreach i in 0,...,5
                                    fill (60*i:2) circle(2pt) coordinate (Ai);

                                    draw (A0)--(A1)--(A2)--(A3)--(A4);
                                    draw[myarr] (A4)--(A5);
                                    draw[myarr] (A5)--(A0);
                                    endtikzpicture
                                    enddocument






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jul 6 at 17:12









                                    Black MildBlack Mild

                                    1,1137 silver badges12 bronze badges




                                    1,1137 silver badges12 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%2f498871%2ftikz-arrow-formatting%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

                                        Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                                        Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                                        Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?