CircuiTikZ: Start ground relative to the closest componentCircuiTikZ — create new componentRotate a node but not its content: the case of the ellipse decorationCircuitikz different ground symbolHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Why do I get an extra white page before my TikZ picture?TikZ: 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?

Trainee keeps passing deadlines for independent learning

RandomInteger with equal number of 1 and -1

When did Nuremberg adopt the Gregorian Calendar?

How many people are necessary to maintain modern civilisation?

Dates on degrees don’t make sense – will people care?

Why does the Saturn V have standalone inter-stage rings?

"Correct me if I'm wrong"

Similarity score: Can Sklearn SVR predict values greater than 1 and less than 0?

LWC - Local Dev - How can I run the local server on HTTPS?

Has there been any indication at all that further negotiation between the UK and EU is possible?

Cut the gold chain

What is "industrial ethernet"?

How do I professionally let my manager know I'll quit over an issue?

How do I farm creepers for XP without them exploding?

Why does Linux list NVMe drives as /dev/nvme0 instead of /dev/sda?

What can I do with a research project that is my university’s intellectual property?

Encounter design and XP thresholds

I found a password with hashcat, but it doesn't work

How did Gollum enter Moria?

`-` in tar xzf -

How can you guarantee that you won't change/quit job after just couple of months?

How to make clear to people I don't want to answer their "Where are you from?" question?

How to maintain a closed environment for one person for a long period of time

Understanding the reasoning of the woman who agreed with Shlomo to "cut the baby in half"



CircuiTikZ: Start ground relative to the closest component


CircuiTikZ — create new componentRotate a node but not its content: the case of the ellipse decorationCircuitikz different ground symbolHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?Why do I get an extra white page before my TikZ picture?TikZ: 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?






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








4















Here is a short compilable example



documentclassarticle
usepackagetikz
usepackagecircuitikz

begindocument
begincircuitikz
draw node[ground] to [short,*-] (0,0) to [C] (0,2) to [short,-*] (0,2);
node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
endcircuitikz
enddocument


which produces



enter image description here



The question is: How do you draw the first line of the ground in the marked point? The CircuiTikZ documentation for the node ground does not define an anchor in that exact position.










share|improve this question




























    4















    Here is a short compilable example



    documentclassarticle
    usepackagetikz
    usepackagecircuitikz

    begindocument
    begincircuitikz
    draw node[ground] to [short,*-] (0,0) to [C] (0,2) to [short,-*] (0,2);
    node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
    endcircuitikz
    enddocument


    which produces



    enter image description here



    The question is: How do you draw the first line of the ground in the marked point? The CircuiTikZ documentation for the node ground does not define an anchor in that exact position.










    share|improve this question
























      4












      4








      4


      0






      Here is a short compilable example



      documentclassarticle
      usepackagetikz
      usepackagecircuitikz

      begindocument
      begincircuitikz
      draw node[ground] to [short,*-] (0,0) to [C] (0,2) to [short,-*] (0,2);
      node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
      endcircuitikz
      enddocument


      which produces



      enter image description here



      The question is: How do you draw the first line of the ground in the marked point? The CircuiTikZ documentation for the node ground does not define an anchor in that exact position.










      share|improve this question














      Here is a short compilable example



      documentclassarticle
      usepackagetikz
      usepackagecircuitikz

      begindocument
      begincircuitikz
      draw node[ground] to [short,*-] (0,0) to [C] (0,2) to [short,-*] (0,2);
      node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
      endcircuitikz
      enddocument


      which produces



      enter image description here



      The question is: How do you draw the first line of the ground in the marked point? The CircuiTikZ documentation for the node ground does not define an anchor in that exact position.







      tikz-pgf circuitikz anchor






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 8 hours ago









      MartínMartín

      1267




      1267




















          2 Answers
          2






          active

          oldest

          votes


















          4














          Although I suspect this is a kind of XY problem, no, there is no provision (for now) for a tailless ground symbol. It is quite straightforward to define one, though:



          documentclassarticle
          usepackage[RPvoltages]circuitikz

          makeatletter
          pgf@circ@declaregroundmyground0.60.4
          pgfsetlinewidthctikzvalofmonopoles/ground/thicknesspgfstartlinewidth
          pgfpathmovetopgfpoint-.6pgf@circ@res@step0pt
          pgfpathlinetopgfpoint.6pgf@circ@res@step0pt
          pgfpathmovetopgfpoint-.4pgf@circ@res@step-0.2pgf@circ@res@step
          pgfpathlinetopgfpoint.4pgf@circ@res@step-0.2pgf@circ@res@step
          pgfpathmovetopgfpoint-.25pgf@circ@res@step-0.4pgf@circ@res@step
          pgfpathlinetopgfpoint.25pgf@circ@res@step-0.4pgf@circ@res@step
          pgfusepathdraw

          makeatother

          begindocument
          begincircuitikz
          draw (0,0) node[ground] to [C, *-*] (0,2);
          node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
          draw (4,0) node[myground] to [C, *-*] (4,2);
          endcircuitikz
          enddocument


          tailless ground



          Note that I also simplified out your zero-length short.






          share|improve this answer

























          • It works like a charm. Now, the Vcc connection would have the same implementation to behave as this custom ground? I don't know how to read latex macros

            – Martín
            7 hours ago











          • vcc is just an arrow, see in the manual. Since yesterday's update it is configurable, but no, it's not tailless either. You can substitute it with a simple arrows (see the manual for TikZ arrows) if you don't like it. But again, I am unsure why do you want it. If you look at the second tutorial in the manual, you can find a much better way to have the grounds (or Vcc) on the same line in a more flexible way.

            – Rmano
            6 hours ago



















          1














          You can just shift the ground up a little, if you don't mind overlapping the tail.



          documentclassstandalone
          usepackagetikz
          usepackagecircuitikz

          newlengthkludge

          begindocument
          begincircuitikz
          kludge=ctikzvalofmonopoles/ground/widthcsname pgf@circ@Rlenendcsname
          draw (0,0) node[ground,yshift=1.2kludge] to [C,*-*] (0,2);
          node[right=0.5kludge]$ leftarrow $ Start ground here;
          endcircuitikz
          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%2f496361%2fcircuitikz-start-ground-relative-to-the-closest-component%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            Although I suspect this is a kind of XY problem, no, there is no provision (for now) for a tailless ground symbol. It is quite straightforward to define one, though:



            documentclassarticle
            usepackage[RPvoltages]circuitikz

            makeatletter
            pgf@circ@declaregroundmyground0.60.4
            pgfsetlinewidthctikzvalofmonopoles/ground/thicknesspgfstartlinewidth
            pgfpathmovetopgfpoint-.6pgf@circ@res@step0pt
            pgfpathlinetopgfpoint.6pgf@circ@res@step0pt
            pgfpathmovetopgfpoint-.4pgf@circ@res@step-0.2pgf@circ@res@step
            pgfpathlinetopgfpoint.4pgf@circ@res@step-0.2pgf@circ@res@step
            pgfpathmovetopgfpoint-.25pgf@circ@res@step-0.4pgf@circ@res@step
            pgfpathlinetopgfpoint.25pgf@circ@res@step-0.4pgf@circ@res@step
            pgfusepathdraw

            makeatother

            begindocument
            begincircuitikz
            draw (0,0) node[ground] to [C, *-*] (0,2);
            node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
            draw (4,0) node[myground] to [C, *-*] (4,2);
            endcircuitikz
            enddocument


            tailless ground



            Note that I also simplified out your zero-length short.






            share|improve this answer

























            • It works like a charm. Now, the Vcc connection would have the same implementation to behave as this custom ground? I don't know how to read latex macros

              – Martín
              7 hours ago











            • vcc is just an arrow, see in the manual. Since yesterday's update it is configurable, but no, it's not tailless either. You can substitute it with a simple arrows (see the manual for TikZ arrows) if you don't like it. But again, I am unsure why do you want it. If you look at the second tutorial in the manual, you can find a much better way to have the grounds (or Vcc) on the same line in a more flexible way.

              – Rmano
              6 hours ago
















            4














            Although I suspect this is a kind of XY problem, no, there is no provision (for now) for a tailless ground symbol. It is quite straightforward to define one, though:



            documentclassarticle
            usepackage[RPvoltages]circuitikz

            makeatletter
            pgf@circ@declaregroundmyground0.60.4
            pgfsetlinewidthctikzvalofmonopoles/ground/thicknesspgfstartlinewidth
            pgfpathmovetopgfpoint-.6pgf@circ@res@step0pt
            pgfpathlinetopgfpoint.6pgf@circ@res@step0pt
            pgfpathmovetopgfpoint-.4pgf@circ@res@step-0.2pgf@circ@res@step
            pgfpathlinetopgfpoint.4pgf@circ@res@step-0.2pgf@circ@res@step
            pgfpathmovetopgfpoint-.25pgf@circ@res@step-0.4pgf@circ@res@step
            pgfpathlinetopgfpoint.25pgf@circ@res@step-0.4pgf@circ@res@step
            pgfusepathdraw

            makeatother

            begindocument
            begincircuitikz
            draw (0,0) node[ground] to [C, *-*] (0,2);
            node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
            draw (4,0) node[myground] to [C, *-*] (4,2);
            endcircuitikz
            enddocument


            tailless ground



            Note that I also simplified out your zero-length short.






            share|improve this answer

























            • It works like a charm. Now, the Vcc connection would have the same implementation to behave as this custom ground? I don't know how to read latex macros

              – Martín
              7 hours ago











            • vcc is just an arrow, see in the manual. Since yesterday's update it is configurable, but no, it's not tailless either. You can substitute it with a simple arrows (see the manual for TikZ arrows) if you don't like it. But again, I am unsure why do you want it. If you look at the second tutorial in the manual, you can find a much better way to have the grounds (or Vcc) on the same line in a more flexible way.

              – Rmano
              6 hours ago














            4












            4








            4







            Although I suspect this is a kind of XY problem, no, there is no provision (for now) for a tailless ground symbol. It is quite straightforward to define one, though:



            documentclassarticle
            usepackage[RPvoltages]circuitikz

            makeatletter
            pgf@circ@declaregroundmyground0.60.4
            pgfsetlinewidthctikzvalofmonopoles/ground/thicknesspgfstartlinewidth
            pgfpathmovetopgfpoint-.6pgf@circ@res@step0pt
            pgfpathlinetopgfpoint.6pgf@circ@res@step0pt
            pgfpathmovetopgfpoint-.4pgf@circ@res@step-0.2pgf@circ@res@step
            pgfpathlinetopgfpoint.4pgf@circ@res@step-0.2pgf@circ@res@step
            pgfpathmovetopgfpoint-.25pgf@circ@res@step-0.4pgf@circ@res@step
            pgfpathlinetopgfpoint.25pgf@circ@res@step-0.4pgf@circ@res@step
            pgfusepathdraw

            makeatother

            begindocument
            begincircuitikz
            draw (0,0) node[ground] to [C, *-*] (0,2);
            node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
            draw (4,0) node[myground] to [C, *-*] (4,2);
            endcircuitikz
            enddocument


            tailless ground



            Note that I also simplified out your zero-length short.






            share|improve this answer















            Although I suspect this is a kind of XY problem, no, there is no provision (for now) for a tailless ground symbol. It is quite straightforward to define one, though:



            documentclassarticle
            usepackage[RPvoltages]circuitikz

            makeatletter
            pgf@circ@declaregroundmyground0.60.4
            pgfsetlinewidthctikzvalofmonopoles/ground/thicknesspgfstartlinewidth
            pgfpathmovetopgfpoint-.6pgf@circ@res@step0pt
            pgfpathlinetopgfpoint.6pgf@circ@res@step0pt
            pgfpathmovetopgfpoint-.4pgf@circ@res@step-0.2pgf@circ@res@step
            pgfpathlinetopgfpoint.4pgf@circ@res@step-0.2pgf@circ@res@step
            pgfpathmovetopgfpoint-.25pgf@circ@res@step-0.4pgf@circ@res@step
            pgfpathlinetopgfpoint.25pgf@circ@res@step-0.4pgf@circ@res@step
            pgfusepathdraw

            makeatother

            begindocument
            begincircuitikz
            draw (0,0) node[ground] to [C, *-*] (0,2);
            node[xshift=1.75cm](0,0)$ leftarrow $ Start ground here;
            draw (4,0) node[myground] to [C, *-*] (4,2);
            endcircuitikz
            enddocument


            tailless ground



            Note that I also simplified out your zero-length short.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 6 hours ago

























            answered 7 hours ago









            RmanoRmano

            8,99621751




            8,99621751












            • It works like a charm. Now, the Vcc connection would have the same implementation to behave as this custom ground? I don't know how to read latex macros

              – Martín
              7 hours ago











            • vcc is just an arrow, see in the manual. Since yesterday's update it is configurable, but no, it's not tailless either. You can substitute it with a simple arrows (see the manual for TikZ arrows) if you don't like it. But again, I am unsure why do you want it. If you look at the second tutorial in the manual, you can find a much better way to have the grounds (or Vcc) on the same line in a more flexible way.

              – Rmano
              6 hours ago


















            • It works like a charm. Now, the Vcc connection would have the same implementation to behave as this custom ground? I don't know how to read latex macros

              – Martín
              7 hours ago











            • vcc is just an arrow, see in the manual. Since yesterday's update it is configurable, but no, it's not tailless either. You can substitute it with a simple arrows (see the manual for TikZ arrows) if you don't like it. But again, I am unsure why do you want it. If you look at the second tutorial in the manual, you can find a much better way to have the grounds (or Vcc) on the same line in a more flexible way.

              – Rmano
              6 hours ago

















            It works like a charm. Now, the Vcc connection would have the same implementation to behave as this custom ground? I don't know how to read latex macros

            – Martín
            7 hours ago





            It works like a charm. Now, the Vcc connection would have the same implementation to behave as this custom ground? I don't know how to read latex macros

            – Martín
            7 hours ago













            vcc is just an arrow, see in the manual. Since yesterday's update it is configurable, but no, it's not tailless either. You can substitute it with a simple arrows (see the manual for TikZ arrows) if you don't like it. But again, I am unsure why do you want it. If you look at the second tutorial in the manual, you can find a much better way to have the grounds (or Vcc) on the same line in a more flexible way.

            – Rmano
            6 hours ago






            vcc is just an arrow, see in the manual. Since yesterday's update it is configurable, but no, it's not tailless either. You can substitute it with a simple arrows (see the manual for TikZ arrows) if you don't like it. But again, I am unsure why do you want it. If you look at the second tutorial in the manual, you can find a much better way to have the grounds (or Vcc) on the same line in a more flexible way.

            – Rmano
            6 hours ago














            1














            You can just shift the ground up a little, if you don't mind overlapping the tail.



            documentclassstandalone
            usepackagetikz
            usepackagecircuitikz

            newlengthkludge

            begindocument
            begincircuitikz
            kludge=ctikzvalofmonopoles/ground/widthcsname pgf@circ@Rlenendcsname
            draw (0,0) node[ground,yshift=1.2kludge] to [C,*-*] (0,2);
            node[right=0.5kludge]$ leftarrow $ Start ground here;
            endcircuitikz
            enddocument





            share|improve this answer





























              1














              You can just shift the ground up a little, if you don't mind overlapping the tail.



              documentclassstandalone
              usepackagetikz
              usepackagecircuitikz

              newlengthkludge

              begindocument
              begincircuitikz
              kludge=ctikzvalofmonopoles/ground/widthcsname pgf@circ@Rlenendcsname
              draw (0,0) node[ground,yshift=1.2kludge] to [C,*-*] (0,2);
              node[right=0.5kludge]$ leftarrow $ Start ground here;
              endcircuitikz
              enddocument





              share|improve this answer



























                1












                1








                1







                You can just shift the ground up a little, if you don't mind overlapping the tail.



                documentclassstandalone
                usepackagetikz
                usepackagecircuitikz

                newlengthkludge

                begindocument
                begincircuitikz
                kludge=ctikzvalofmonopoles/ground/widthcsname pgf@circ@Rlenendcsname
                draw (0,0) node[ground,yshift=1.2kludge] to [C,*-*] (0,2);
                node[right=0.5kludge]$ leftarrow $ Start ground here;
                endcircuitikz
                enddocument





                share|improve this answer















                You can just shift the ground up a little, if you don't mind overlapping the tail.



                documentclassstandalone
                usepackagetikz
                usepackagecircuitikz

                newlengthkludge

                begindocument
                begincircuitikz
                kludge=ctikzvalofmonopoles/ground/widthcsname pgf@circ@Rlenendcsname
                draw (0,0) node[ground,yshift=1.2kludge] to [C,*-*] (0,2);
                node[right=0.5kludge]$ leftarrow $ Start ground here;
                endcircuitikz
                enddocument






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 4 hours ago

























                answered 4 hours ago









                John KormyloJohn Kormylo

                48.2k32775




                48.2k32775



























                    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%2f496361%2fcircuitikz-start-ground-relative-to-the-closest-component%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

                    ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

                    Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

                    19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу