Changing the lines of the arrowhead in circuitikzSet label name on two lines in CircuiTikZstraight voltage arrows in circuitikzCircuitkz arrowhead scalingCircuitikz: Dashed lines and arrowsCircuitikz: arrows on the path and changing directions of arrow with variable resistorCircuitikz: changing switches orientationHelp with contour lines in circuitikz - unwanted circles appearedChanging PMOS appearance in CircuiTikZChanging the form of the arrow head in circuitikzTransmission lines with circuitikz

What is the difference between `a[bc]d` (brackets) and `ab,cd` (braces)?

Single Colour Mastermind Problem

How could Tony Stark make this in Endgame?

Providence Pentominoes Puzzle By Andrew Bradburn (Jigsaw)

How do we know that ממחרת השבת means from the first day of pesach and not the seventh?

Who is the Umpire in this picture?

How would one muzzle a full grown polar bear in the 13th century?

Is creating your own "experiment" considered cheating during a physics exam?

Alternatives to Overleaf

Unexpected email from Yorkshire Bank

Why do Computer Science majors learn Calculus?

Will this character get back his Infinity Stone?

Why was the Spitfire's elliptical wing almost uncopied by other aircraft of World War 2?

Was there a Viking Exchange as well as a Columbian one?

How to back up a running remote server?

function to receive a character input and return date format (with incorrect input)

How can the Zone of Truth spell be defeated without the caster knowing?

Sci-fi book: portals appear in London and send a failed artist towards a designated path where he operate a giant superweapon

What is the point of Germany's 299 "party seats" in the Bundestag?

Changing the lines of the arrowhead in circuitikz

Minimum value of 4 digit number divided by sum of its digits

With a Canadian student visa, can I spend a night at Vancouver before continuing to Toronto?

Stop and Take a Breath!

Does this extra sentence in the description of the warlock's Eyes of the Rune Keeper eldritch invocation appear in any official reference?



Changing the lines of the arrowhead in circuitikz


Set label name on two lines in CircuiTikZstraight voltage arrows in circuitikzCircuitkz arrowhead scalingCircuitikz: Dashed lines and arrowsCircuitikz: arrows on the path and changing directions of arrow with variable resistorCircuitikz: changing switches orientationHelp with contour lines in circuitikz - unwanted circles appearedChanging PMOS appearance in CircuiTikZChanging the form of the arrow head in circuitikzTransmission lines with circuitikz













2















First of all, this is a crosspost from the german website golatex.de.
I am hoping another set of eyes on it might help find a solution.



If I draw two voltage sources with circuitikz and the second voltage source is dotted (or dashed), the arrowhead is not adjusted. It remains normal and the dotted (or dashed) lines are just "drawn over".



My minimal working example illustrates the problem:



documentclassarticle
usepackagecircuitikz
usepackageshowframe

begindocument

begincircuitikz
draw
(8,2) to [american voltage source, v_<=$omega_RL_qi_q$] (8,4);

draw[lightgray,dotted] %or dashed
(8,0) to [american voltage source, v_<=$omega_Rpsi$,color=lightgray] (8,2);
endcircuitikz

enddocument


In the picture it can be seen that everything of the second voltage source can be colored but the arrowhead remains normal and the dotted (or dashed) lines are just "drawn over" as mentioned above.



enter image description here



What do I have to do to get the arrowhead also dotted (or dashed)?



Thanks in advance.










share|improve this question


























    2















    First of all, this is a crosspost from the german website golatex.de.
    I am hoping another set of eyes on it might help find a solution.



    If I draw two voltage sources with circuitikz and the second voltage source is dotted (or dashed), the arrowhead is not adjusted. It remains normal and the dotted (or dashed) lines are just "drawn over".



    My minimal working example illustrates the problem:



    documentclassarticle
    usepackagecircuitikz
    usepackageshowframe

    begindocument

    begincircuitikz
    draw
    (8,2) to [american voltage source, v_<=$omega_RL_qi_q$] (8,4);

    draw[lightgray,dotted] %or dashed
    (8,0) to [american voltage source, v_<=$omega_Rpsi$,color=lightgray] (8,2);
    endcircuitikz

    enddocument


    In the picture it can be seen that everything of the second voltage source can be colored but the arrowhead remains normal and the dotted (or dashed) lines are just "drawn over" as mentioned above.



    enter image description here



    What do I have to do to get the arrowhead also dotted (or dashed)?



    Thanks in advance.










    share|improve this question
























      2












      2








      2


      1






      First of all, this is a crosspost from the german website golatex.de.
      I am hoping another set of eyes on it might help find a solution.



      If I draw two voltage sources with circuitikz and the second voltage source is dotted (or dashed), the arrowhead is not adjusted. It remains normal and the dotted (or dashed) lines are just "drawn over".



      My minimal working example illustrates the problem:



      documentclassarticle
      usepackagecircuitikz
      usepackageshowframe

      begindocument

      begincircuitikz
      draw
      (8,2) to [american voltage source, v_<=$omega_RL_qi_q$] (8,4);

      draw[lightgray,dotted] %or dashed
      (8,0) to [american voltage source, v_<=$omega_Rpsi$,color=lightgray] (8,2);
      endcircuitikz

      enddocument


      In the picture it can be seen that everything of the second voltage source can be colored but the arrowhead remains normal and the dotted (or dashed) lines are just "drawn over" as mentioned above.



      enter image description here



      What do I have to do to get the arrowhead also dotted (or dashed)?



      Thanks in advance.










      share|improve this question














      First of all, this is a crosspost from the german website golatex.de.
      I am hoping another set of eyes on it might help find a solution.



      If I draw two voltage sources with circuitikz and the second voltage source is dotted (or dashed), the arrowhead is not adjusted. It remains normal and the dotted (or dashed) lines are just "drawn over".



      My minimal working example illustrates the problem:



      documentclassarticle
      usepackagecircuitikz
      usepackageshowframe

      begindocument

      begincircuitikz
      draw
      (8,2) to [american voltage source, v_<=$omega_RL_qi_q$] (8,4);

      draw[lightgray,dotted] %or dashed
      (8,0) to [american voltage source, v_<=$omega_Rpsi$,color=lightgray] (8,2);
      endcircuitikz

      enddocument


      In the picture it can be seen that everything of the second voltage source can be colored but the arrowhead remains normal and the dotted (or dashed) lines are just "drawn over" as mentioned above.



      enter image description here



      What do I have to do to get the arrowhead also dotted (or dashed)?



      Thanks in advance.







      color arrows circuitikz






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 6 hours ago









      Roland DeschainRoland Deschain

      1064




      1064




















          1 Answer
          1






          active

          oldest

          votes


















          3














          Yes, I know. The problem is that arrows in circuitikz are not real arrows, but they are built manually with the currarrow shape. I am not sure why, but probably because circuitikz predates arrows.meta and... whatever. I plan to change it, but it is a big change, and difficult to do in a backward compatible way.



          If you change, in the definition of currarrow (file pgfcircshapes.tex, at line 308 in current git version) the command



          pgfusepathdraw,fill


          into



          pgfusepathfill


          the result is a bit better (see below), but I am not sure if it can have other nasty effects around. If you want, you can open an issue on github so that I can track it...



          enter image description here



          Otherwise, you can remove the fill, but now you have a quite bad effect on the rest of the circuit:



          enter image description here



          (yes, this is the dotted version of the arrow outline. Quite bad, but the points are random, and not lined up with the corners. I really do not know how to make a dotted or dashed outline of an arrow work. densely dotted gives:



          enter image description here



          but still...)



          Notice that the standard arrows do not change with linestyle, and although you can make them unfilled, there is no provision (chapter 16.3 of the 3.0.1 TikZ manual) to make them something not solid:



          draw[-Triangle[fill=none, ], densely dotted] (9,0) -- (10,0);


          enter image description here



          Stop gap solution...



          You can redefine the shape and add a bit of configurability like that:



          documentclass[border=10pt]standalone
          usepackage[RPvoltages]circuitikzgit

          makeatletter

          %% Current arrow
          defarrowfilldrawpgfusepathdraw,fill
          defarrowfillonlypgfusepathfill
          letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/.is choice
          tikzsetctikzarrdraw/true/.code=letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/false/.code=letarrowuse=arrowfillonly


          pgfdeclareshapecurrarrow
          savedanchornortheast%
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x=.5pgf@circ@res@step
          pgf@y=pgf@x%

          anchornorthnortheastpgf@x=0cmrelax
          anchoreastnortheastpgf@y=0cmrelax
          anchorsouthnortheastpgf@y=-pgf@y pgf@x=0cmrelax
          anchorwestnortheastpgf@y=0cmpgf@x=-pgf@x
          anchornorth eastnortheast
          anchornorth westnortheastpgf@x=-pgf@x
          anchorsouth eastnortheastpgf@y=-pgf@y
          anchorsouth westnortheastpgf@y=-pgf@ypgf@x=-pgf@x
          anchorcenter
          pgfpointorigin

          anchortip
          pgfpointorigin
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x =pgf@circ@res@step

          behindforegroundpath
          pgfscope
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale

          pgfpathmovetopgfpoint-.7pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step-.8pgf@circ@res@step
          pgfpathlinetopgfpoint1pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step.8pgf@circ@res@step
          pgfpathlinetopgfpoint-.7pgf@circ@res@step0pt
          pgfsetcolorpgfkeysvalueof/tikz/circuitikz/color
          arrowuse
          endpgfscope



          makeatother


          begindocument

          begincircuitikz
          draw
          (6,2) to [american voltage source, v_=$omega_RL_qi_q$] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (8,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=false] ++(0,-2);
          draw[] (12,2) to [american current source, ] ++(0,-2);
          endcircuitikz

          enddocument


          And you'll have



          enter image description here



          Zooming:



          enter image description here



          and if you add, for example



          defarrowstrangepgfsetfillcolorwhitepgfusepathfill, draw
          tikzsetctikzarrdraw/strange/.code=letarrowuse=arrowstrange


          you can also say



          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=strange] ++(0,-2);


          which will give:



          enter image description here






          share|improve this answer

























          • Ok, I checked. I can't change the fill,draw to fill, because the tip anchor will be misplaced by the line width, which is variable, which is a problem. Maybe using deferredanchor...

            – Rmano
            4 hours ago











          • ...and no, doesn't work.

            – Rmano
            4 hours ago











          • Your last answer with the unfilled arrowhead it's what I've been looking for. Unfortunately I have to use circuitikzgit and add some additional code before the preamble because currently I don't know, if the rest of my code is still functionally.

            – Roland Deschain
            34 mins ago












          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%2f488037%2fchanging-the-lines-of-the-arrowhead-in-circuitikz%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









          3














          Yes, I know. The problem is that arrows in circuitikz are not real arrows, but they are built manually with the currarrow shape. I am not sure why, but probably because circuitikz predates arrows.meta and... whatever. I plan to change it, but it is a big change, and difficult to do in a backward compatible way.



          If you change, in the definition of currarrow (file pgfcircshapes.tex, at line 308 in current git version) the command



          pgfusepathdraw,fill


          into



          pgfusepathfill


          the result is a bit better (see below), but I am not sure if it can have other nasty effects around. If you want, you can open an issue on github so that I can track it...



          enter image description here



          Otherwise, you can remove the fill, but now you have a quite bad effect on the rest of the circuit:



          enter image description here



          (yes, this is the dotted version of the arrow outline. Quite bad, but the points are random, and not lined up with the corners. I really do not know how to make a dotted or dashed outline of an arrow work. densely dotted gives:



          enter image description here



          but still...)



          Notice that the standard arrows do not change with linestyle, and although you can make them unfilled, there is no provision (chapter 16.3 of the 3.0.1 TikZ manual) to make them something not solid:



          draw[-Triangle[fill=none, ], densely dotted] (9,0) -- (10,0);


          enter image description here



          Stop gap solution...



          You can redefine the shape and add a bit of configurability like that:



          documentclass[border=10pt]standalone
          usepackage[RPvoltages]circuitikzgit

          makeatletter

          %% Current arrow
          defarrowfilldrawpgfusepathdraw,fill
          defarrowfillonlypgfusepathfill
          letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/.is choice
          tikzsetctikzarrdraw/true/.code=letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/false/.code=letarrowuse=arrowfillonly


          pgfdeclareshapecurrarrow
          savedanchornortheast%
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x=.5pgf@circ@res@step
          pgf@y=pgf@x%

          anchornorthnortheastpgf@x=0cmrelax
          anchoreastnortheastpgf@y=0cmrelax
          anchorsouthnortheastpgf@y=-pgf@y pgf@x=0cmrelax
          anchorwestnortheastpgf@y=0cmpgf@x=-pgf@x
          anchornorth eastnortheast
          anchornorth westnortheastpgf@x=-pgf@x
          anchorsouth eastnortheastpgf@y=-pgf@y
          anchorsouth westnortheastpgf@y=-pgf@ypgf@x=-pgf@x
          anchorcenter
          pgfpointorigin

          anchortip
          pgfpointorigin
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x =pgf@circ@res@step

          behindforegroundpath
          pgfscope
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale

          pgfpathmovetopgfpoint-.7pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step-.8pgf@circ@res@step
          pgfpathlinetopgfpoint1pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step.8pgf@circ@res@step
          pgfpathlinetopgfpoint-.7pgf@circ@res@step0pt
          pgfsetcolorpgfkeysvalueof/tikz/circuitikz/color
          arrowuse
          endpgfscope



          makeatother


          begindocument

          begincircuitikz
          draw
          (6,2) to [american voltage source, v_=$omega_RL_qi_q$] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (8,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=false] ++(0,-2);
          draw[] (12,2) to [american current source, ] ++(0,-2);
          endcircuitikz

          enddocument


          And you'll have



          enter image description here



          Zooming:



          enter image description here



          and if you add, for example



          defarrowstrangepgfsetfillcolorwhitepgfusepathfill, draw
          tikzsetctikzarrdraw/strange/.code=letarrowuse=arrowstrange


          you can also say



          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=strange] ++(0,-2);


          which will give:



          enter image description here






          share|improve this answer

























          • Ok, I checked. I can't change the fill,draw to fill, because the tip anchor will be misplaced by the line width, which is variable, which is a problem. Maybe using deferredanchor...

            – Rmano
            4 hours ago











          • ...and no, doesn't work.

            – Rmano
            4 hours ago











          • Your last answer with the unfilled arrowhead it's what I've been looking for. Unfortunately I have to use circuitikzgit and add some additional code before the preamble because currently I don't know, if the rest of my code is still functionally.

            – Roland Deschain
            34 mins ago
















          3














          Yes, I know. The problem is that arrows in circuitikz are not real arrows, but they are built manually with the currarrow shape. I am not sure why, but probably because circuitikz predates arrows.meta and... whatever. I plan to change it, but it is a big change, and difficult to do in a backward compatible way.



          If you change, in the definition of currarrow (file pgfcircshapes.tex, at line 308 in current git version) the command



          pgfusepathdraw,fill


          into



          pgfusepathfill


          the result is a bit better (see below), but I am not sure if it can have other nasty effects around. If you want, you can open an issue on github so that I can track it...



          enter image description here



          Otherwise, you can remove the fill, but now you have a quite bad effect on the rest of the circuit:



          enter image description here



          (yes, this is the dotted version of the arrow outline. Quite bad, but the points are random, and not lined up with the corners. I really do not know how to make a dotted or dashed outline of an arrow work. densely dotted gives:



          enter image description here



          but still...)



          Notice that the standard arrows do not change with linestyle, and although you can make them unfilled, there is no provision (chapter 16.3 of the 3.0.1 TikZ manual) to make them something not solid:



          draw[-Triangle[fill=none, ], densely dotted] (9,0) -- (10,0);


          enter image description here



          Stop gap solution...



          You can redefine the shape and add a bit of configurability like that:



          documentclass[border=10pt]standalone
          usepackage[RPvoltages]circuitikzgit

          makeatletter

          %% Current arrow
          defarrowfilldrawpgfusepathdraw,fill
          defarrowfillonlypgfusepathfill
          letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/.is choice
          tikzsetctikzarrdraw/true/.code=letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/false/.code=letarrowuse=arrowfillonly


          pgfdeclareshapecurrarrow
          savedanchornortheast%
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x=.5pgf@circ@res@step
          pgf@y=pgf@x%

          anchornorthnortheastpgf@x=0cmrelax
          anchoreastnortheastpgf@y=0cmrelax
          anchorsouthnortheastpgf@y=-pgf@y pgf@x=0cmrelax
          anchorwestnortheastpgf@y=0cmpgf@x=-pgf@x
          anchornorth eastnortheast
          anchornorth westnortheastpgf@x=-pgf@x
          anchorsouth eastnortheastpgf@y=-pgf@y
          anchorsouth westnortheastpgf@y=-pgf@ypgf@x=-pgf@x
          anchorcenter
          pgfpointorigin

          anchortip
          pgfpointorigin
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x =pgf@circ@res@step

          behindforegroundpath
          pgfscope
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale

          pgfpathmovetopgfpoint-.7pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step-.8pgf@circ@res@step
          pgfpathlinetopgfpoint1pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step.8pgf@circ@res@step
          pgfpathlinetopgfpoint-.7pgf@circ@res@step0pt
          pgfsetcolorpgfkeysvalueof/tikz/circuitikz/color
          arrowuse
          endpgfscope



          makeatother


          begindocument

          begincircuitikz
          draw
          (6,2) to [american voltage source, v_=$omega_RL_qi_q$] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (8,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=false] ++(0,-2);
          draw[] (12,2) to [american current source, ] ++(0,-2);
          endcircuitikz

          enddocument


          And you'll have



          enter image description here



          Zooming:



          enter image description here



          and if you add, for example



          defarrowstrangepgfsetfillcolorwhitepgfusepathfill, draw
          tikzsetctikzarrdraw/strange/.code=letarrowuse=arrowstrange


          you can also say



          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=strange] ++(0,-2);


          which will give:



          enter image description here






          share|improve this answer

























          • Ok, I checked. I can't change the fill,draw to fill, because the tip anchor will be misplaced by the line width, which is variable, which is a problem. Maybe using deferredanchor...

            – Rmano
            4 hours ago











          • ...and no, doesn't work.

            – Rmano
            4 hours ago











          • Your last answer with the unfilled arrowhead it's what I've been looking for. Unfortunately I have to use circuitikzgit and add some additional code before the preamble because currently I don't know, if the rest of my code is still functionally.

            – Roland Deschain
            34 mins ago














          3












          3








          3







          Yes, I know. The problem is that arrows in circuitikz are not real arrows, but they are built manually with the currarrow shape. I am not sure why, but probably because circuitikz predates arrows.meta and... whatever. I plan to change it, but it is a big change, and difficult to do in a backward compatible way.



          If you change, in the definition of currarrow (file pgfcircshapes.tex, at line 308 in current git version) the command



          pgfusepathdraw,fill


          into



          pgfusepathfill


          the result is a bit better (see below), but I am not sure if it can have other nasty effects around. If you want, you can open an issue on github so that I can track it...



          enter image description here



          Otherwise, you can remove the fill, but now you have a quite bad effect on the rest of the circuit:



          enter image description here



          (yes, this is the dotted version of the arrow outline. Quite bad, but the points are random, and not lined up with the corners. I really do not know how to make a dotted or dashed outline of an arrow work. densely dotted gives:



          enter image description here



          but still...)



          Notice that the standard arrows do not change with linestyle, and although you can make them unfilled, there is no provision (chapter 16.3 of the 3.0.1 TikZ manual) to make them something not solid:



          draw[-Triangle[fill=none, ], densely dotted] (9,0) -- (10,0);


          enter image description here



          Stop gap solution...



          You can redefine the shape and add a bit of configurability like that:



          documentclass[border=10pt]standalone
          usepackage[RPvoltages]circuitikzgit

          makeatletter

          %% Current arrow
          defarrowfilldrawpgfusepathdraw,fill
          defarrowfillonlypgfusepathfill
          letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/.is choice
          tikzsetctikzarrdraw/true/.code=letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/false/.code=letarrowuse=arrowfillonly


          pgfdeclareshapecurrarrow
          savedanchornortheast%
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x=.5pgf@circ@res@step
          pgf@y=pgf@x%

          anchornorthnortheastpgf@x=0cmrelax
          anchoreastnortheastpgf@y=0cmrelax
          anchorsouthnortheastpgf@y=-pgf@y pgf@x=0cmrelax
          anchorwestnortheastpgf@y=0cmpgf@x=-pgf@x
          anchornorth eastnortheast
          anchornorth westnortheastpgf@x=-pgf@x
          anchorsouth eastnortheastpgf@y=-pgf@y
          anchorsouth westnortheastpgf@y=-pgf@ypgf@x=-pgf@x
          anchorcenter
          pgfpointorigin

          anchortip
          pgfpointorigin
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x =pgf@circ@res@step

          behindforegroundpath
          pgfscope
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale

          pgfpathmovetopgfpoint-.7pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step-.8pgf@circ@res@step
          pgfpathlinetopgfpoint1pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step.8pgf@circ@res@step
          pgfpathlinetopgfpoint-.7pgf@circ@res@step0pt
          pgfsetcolorpgfkeysvalueof/tikz/circuitikz/color
          arrowuse
          endpgfscope



          makeatother


          begindocument

          begincircuitikz
          draw
          (6,2) to [american voltage source, v_=$omega_RL_qi_q$] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (8,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=false] ++(0,-2);
          draw[] (12,2) to [american current source, ] ++(0,-2);
          endcircuitikz

          enddocument


          And you'll have



          enter image description here



          Zooming:



          enter image description here



          and if you add, for example



          defarrowstrangepgfsetfillcolorwhitepgfusepathfill, draw
          tikzsetctikzarrdraw/strange/.code=letarrowuse=arrowstrange


          you can also say



          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=strange] ++(0,-2);


          which will give:



          enter image description here






          share|improve this answer















          Yes, I know. The problem is that arrows in circuitikz are not real arrows, but they are built manually with the currarrow shape. I am not sure why, but probably because circuitikz predates arrows.meta and... whatever. I plan to change it, but it is a big change, and difficult to do in a backward compatible way.



          If you change, in the definition of currarrow (file pgfcircshapes.tex, at line 308 in current git version) the command



          pgfusepathdraw,fill


          into



          pgfusepathfill


          the result is a bit better (see below), but I am not sure if it can have other nasty effects around. If you want, you can open an issue on github so that I can track it...



          enter image description here



          Otherwise, you can remove the fill, but now you have a quite bad effect on the rest of the circuit:



          enter image description here



          (yes, this is the dotted version of the arrow outline. Quite bad, but the points are random, and not lined up with the corners. I really do not know how to make a dotted or dashed outline of an arrow work. densely dotted gives:



          enter image description here



          but still...)



          Notice that the standard arrows do not change with linestyle, and although you can make them unfilled, there is no provision (chapter 16.3 of the 3.0.1 TikZ manual) to make them something not solid:



          draw[-Triangle[fill=none, ], densely dotted] (9,0) -- (10,0);


          enter image description here



          Stop gap solution...



          You can redefine the shape and add a bit of configurability like that:



          documentclass[border=10pt]standalone
          usepackage[RPvoltages]circuitikzgit

          makeatletter

          %% Current arrow
          defarrowfilldrawpgfusepathdraw,fill
          defarrowfillonlypgfusepathfill
          letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/.is choice
          tikzsetctikzarrdraw/true/.code=letarrowuse=arrowfilldraw
          tikzsetctikzarrdraw/false/.code=letarrowuse=arrowfillonly


          pgfdeclareshapecurrarrow
          savedanchornortheast%
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x=.5pgf@circ@res@step
          pgf@y=pgf@x%

          anchornorthnortheastpgf@x=0cmrelax
          anchoreastnortheastpgf@y=0cmrelax
          anchorsouthnortheastpgf@y=-pgf@y pgf@x=0cmrelax
          anchorwestnortheastpgf@y=0cmpgf@x=-pgf@x
          anchornorth eastnortheast
          anchornorth westnortheastpgf@x=-pgf@x
          anchorsouth eastnortheastpgf@y=-pgf@y
          anchorsouth westnortheastpgf@y=-pgf@ypgf@x=-pgf@x
          anchorcenter
          pgfpointorigin

          anchortip
          pgfpointorigin
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale
          pgf@x =pgf@circ@res@step

          behindforegroundpath
          pgfscope
          pgf@circ@res@step = pgf@circ@Rlen
          divide pgf@circ@res@step by pgfkeysvalueof/tikz/circuitikz/current arrow scale

          pgfpathmovetopgfpoint-.7pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step-.8pgf@circ@res@step
          pgfpathlinetopgfpoint1pgf@circ@res@step0pt
          pgfpathlinetopgfpoint-.7pgf@circ@res@step.8pgf@circ@res@step
          pgfpathlinetopgfpoint-.7pgf@circ@res@step0pt
          pgfsetcolorpgfkeysvalueof/tikz/circuitikz/color
          arrowuse
          endpgfscope



          makeatother


          begindocument

          begincircuitikz
          draw
          (6,2) to [american voltage source, v_=$omega_RL_qi_q$] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (8,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray] ++(0,-2);
          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=false] ++(0,-2);
          draw[] (12,2) to [american current source, ] ++(0,-2);
          endcircuitikz

          enddocument


          And you'll have



          enter image description here



          Zooming:



          enter image description here



          and if you add, for example



          defarrowstrangepgfsetfillcolorwhitepgfusepathfill, draw
          tikzsetctikzarrdraw/strange/.code=letarrowuse=arrowstrange


          you can also say



          draw[color=lightgray, densely dotted] %or dashed
          (10,2) to [american voltage source, v_=$omega_Rpsi$,color=lightgray, ctikzarrdraw=strange] ++(0,-2);


          which will give:



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 hours ago

























          answered 5 hours ago









          RmanoRmano

          8,43621649




          8,43621649












          • Ok, I checked. I can't change the fill,draw to fill, because the tip anchor will be misplaced by the line width, which is variable, which is a problem. Maybe using deferredanchor...

            – Rmano
            4 hours ago











          • ...and no, doesn't work.

            – Rmano
            4 hours ago











          • Your last answer with the unfilled arrowhead it's what I've been looking for. Unfortunately I have to use circuitikzgit and add some additional code before the preamble because currently I don't know, if the rest of my code is still functionally.

            – Roland Deschain
            34 mins ago


















          • Ok, I checked. I can't change the fill,draw to fill, because the tip anchor will be misplaced by the line width, which is variable, which is a problem. Maybe using deferredanchor...

            – Rmano
            4 hours ago











          • ...and no, doesn't work.

            – Rmano
            4 hours ago











          • Your last answer with the unfilled arrowhead it's what I've been looking for. Unfortunately I have to use circuitikzgit and add some additional code before the preamble because currently I don't know, if the rest of my code is still functionally.

            – Roland Deschain
            34 mins ago

















          Ok, I checked. I can't change the fill,draw to fill, because the tip anchor will be misplaced by the line width, which is variable, which is a problem. Maybe using deferredanchor...

          – Rmano
          4 hours ago





          Ok, I checked. I can't change the fill,draw to fill, because the tip anchor will be misplaced by the line width, which is variable, which is a problem. Maybe using deferredanchor...

          – Rmano
          4 hours ago













          ...and no, doesn't work.

          – Rmano
          4 hours ago





          ...and no, doesn't work.

          – Rmano
          4 hours ago













          Your last answer with the unfilled arrowhead it's what I've been looking for. Unfortunately I have to use circuitikzgit and add some additional code before the preamble because currently I don't know, if the rest of my code is still functionally.

          – Roland Deschain
          34 mins ago






          Your last answer with the unfilled arrowhead it's what I've been looking for. Unfortunately I have to use circuitikzgit and add some additional code before the preamble because currently I don't know, if the rest of my code is still functionally.

          – Roland Deschain
          34 mins ago


















          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%2f488037%2fchanging-the-lines-of-the-arrowhead-in-circuitikz%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

          Dapidodigma demeter Subspecies | Notae | Tabula navigationisDapidodigmaAfrotropical Butterflies: Lycaenidae - Subtribe IolainaAmplifica

          Constantinus Vanšenkin Nexus externi | Tabula navigationisБольшая российская энциклопедияAmplifica

          Gaius Norbanus Flaccus (consul 38 a.C.n.) Index De gente | De cursu honorum | Notae | Fontes | Si vis plura legere | Tabula navigationisHic legere potes