CircuiTikZ: Start ground relative to the closest componentCircuiTikZ — create new componentRotate a node...

Helping ease my back pain by studying 13 hours everyday , even weekends

Constitutionality of U.S. Democratic Presidential Candidate's Supreme Court Suggestion

Why don't countries like Japan just print more money?

"Correct me if I'm wrong"

Why does independence imply zero correlation?

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

Will generated tokens be progressively stronger when using Cathar's Crusade and Sorin, Grim Nemesis?

Cut the gold chain

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

Is there any difference between Т34ВМ1 and КМ1858ВМ1/3?

What is the meaning of "понаехать"?

Why is it recommended to mix yogurt starter with a small amount of milk before adding to the entire batch?

Why is it easier to balance a non-moving bike standing up than sitting down?

Heavily limited premature compiler translates text into excecutable python code

Count All Possible Unique Combinations of Letters in a Word

Identifying unknown map projection for image

How to remove this component from PCB

If the Dragon's Breath spell is cast on a familiar, does it use the wizard's DC or familiar's DC?

How did Gollum enter Moria?

Confusion over 220 and 230 volt outlets

Why do all the teams that I have worked with always finish a sprint without completion of all the stories?

Am I legally required to provide a (GPL licensed) source code even after a project is abandoned?

Should I include an appendix for inessential, yet related worldbuilding to my story?

Can Ogre clerics use Purify Food and Drink on humanoid characters?



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



documentclass{article}
usepackage{tikz}
usepackage{circuitikz}

begin{document}
begin{circuitikz}
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};
end{circuitikz}
end{document}


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



    documentclass{article}
    usepackage{tikz}
    usepackage{circuitikz}

    begin{document}
    begin{circuitikz}
    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};
    end{circuitikz}
    end{document}


    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



      documentclass{article}
      usepackage{tikz}
      usepackage{circuitikz}

      begin{document}
      begin{circuitikz}
      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};
      end{circuitikz}
      end{document}


      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



      documentclass{article}
      usepackage{tikz}
      usepackage{circuitikz}

      begin{document}
      begin{circuitikz}
      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};
      end{circuitikz}
      end{document}


      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:



          documentclass{article}
          usepackage[RPvoltages]{circuitikz}

          makeatletter
          pgf@circ@declareground{myground}{0.6}{0.4}{
          pgfsetlinewidth{ctikzvalof{monopoles/ground/thickness}pgfstartlinewidth}
          pgfpathmoveto{pgfpoint{-.6pgf@circ@res@step}{0pt}}
          pgfpathlineto{pgfpoint{.6pgf@circ@res@step}{0pt}}
          pgfpathmoveto{pgfpoint{-.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
          pgfpathlineto{pgfpoint{.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
          pgfpathmoveto{pgfpoint{-.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
          pgfpathlineto{pgfpoint{.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
          pgfusepath{draw}
          }
          makeatother

          begin{document}
          begin{circuitikz}
          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);
          end{circuitikz}
          end{document}


          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
            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.



          documentclass{standalone}
          usepackage{tikz}
          usepackage{circuitikz}

          newlength{kludge}

          begin{document}
          begin{circuitikz}
          kludge=ctikzvalof{monopoles/ground/width}csname pgf@circ@Rlenendcsname
          draw (0,0) node[ground,yshift=1.2kludge]{} to [C,*-*] (0,2);
          node[right=0.5kludge]{$ leftarrow $ Start ground here};
          end{circuitikz}
          end{document}





          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:



            documentclass{article}
            usepackage[RPvoltages]{circuitikz}

            makeatletter
            pgf@circ@declareground{myground}{0.6}{0.4}{
            pgfsetlinewidth{ctikzvalof{monopoles/ground/thickness}pgfstartlinewidth}
            pgfpathmoveto{pgfpoint{-.6pgf@circ@res@step}{0pt}}
            pgfpathlineto{pgfpoint{.6pgf@circ@res@step}{0pt}}
            pgfpathmoveto{pgfpoint{-.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
            pgfpathlineto{pgfpoint{.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
            pgfpathmoveto{pgfpoint{-.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
            pgfpathlineto{pgfpoint{.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
            pgfusepath{draw}
            }
            makeatother

            begin{document}
            begin{circuitikz}
            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);
            end{circuitikz}
            end{document}


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


















            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:



            documentclass{article}
            usepackage[RPvoltages]{circuitikz}

            makeatletter
            pgf@circ@declareground{myground}{0.6}{0.4}{
            pgfsetlinewidth{ctikzvalof{monopoles/ground/thickness}pgfstartlinewidth}
            pgfpathmoveto{pgfpoint{-.6pgf@circ@res@step}{0pt}}
            pgfpathlineto{pgfpoint{.6pgf@circ@res@step}{0pt}}
            pgfpathmoveto{pgfpoint{-.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
            pgfpathlineto{pgfpoint{.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
            pgfpathmoveto{pgfpoint{-.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
            pgfpathlineto{pgfpoint{.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
            pgfusepath{draw}
            }
            makeatother

            begin{document}
            begin{circuitikz}
            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);
            end{circuitikz}
            end{document}


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
















            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:



            documentclass{article}
            usepackage[RPvoltages]{circuitikz}

            makeatletter
            pgf@circ@declareground{myground}{0.6}{0.4}{
            pgfsetlinewidth{ctikzvalof{monopoles/ground/thickness}pgfstartlinewidth}
            pgfpathmoveto{pgfpoint{-.6pgf@circ@res@step}{0pt}}
            pgfpathlineto{pgfpoint{.6pgf@circ@res@step}{0pt}}
            pgfpathmoveto{pgfpoint{-.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
            pgfpathlineto{pgfpoint{.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
            pgfpathmoveto{pgfpoint{-.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
            pgfpathlineto{pgfpoint{.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
            pgfusepath{draw}
            }
            makeatother

            begin{document}
            begin{circuitikz}
            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);
            end{circuitikz}
            end{document}


            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:



            documentclass{article}
            usepackage[RPvoltages]{circuitikz}

            makeatletter
            pgf@circ@declareground{myground}{0.6}{0.4}{
            pgfsetlinewidth{ctikzvalof{monopoles/ground/thickness}pgfstartlinewidth}
            pgfpathmoveto{pgfpoint{-.6pgf@circ@res@step}{0pt}}
            pgfpathlineto{pgfpoint{.6pgf@circ@res@step}{0pt}}
            pgfpathmoveto{pgfpoint{-.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
            pgfpathlineto{pgfpoint{.4pgf@circ@res@step}{-0.2pgf@circ@res@step}}
            pgfpathmoveto{pgfpoint{-.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
            pgfpathlineto{pgfpoint{.25pgf@circ@res@step}{-0.4pgf@circ@res@step}}
            pgfusepath{draw}
            }
            makeatother

            begin{document}
            begin{circuitikz}
            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);
            end{circuitikz}
            end{document}


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





















            • 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
              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



















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







            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.



            documentclass{standalone}
            usepackage{tikz}
            usepackage{circuitikz}

            newlength{kludge}

            begin{document}
            begin{circuitikz}
            kludge=ctikzvalof{monopoles/ground/width}csname pgf@circ@Rlenendcsname
            draw (0,0) node[ground,yshift=1.2kludge]{} to [C,*-*] (0,2);
            node[right=0.5kludge]{$ leftarrow $ Start ground here};
            end{circuitikz}
            end{document}





            share|improve this answer






























              1














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



              documentclass{standalone}
              usepackage{tikz}
              usepackage{circuitikz}

              newlength{kludge}

              begin{document}
              begin{circuitikz}
              kludge=ctikzvalof{monopoles/ground/width}csname pgf@circ@Rlenendcsname
              draw (0,0) node[ground,yshift=1.2kludge]{} to [C,*-*] (0,2);
              node[right=0.5kludge]{$ leftarrow $ Start ground here};
              end{circuitikz}
              end{document}





              share|improve this answer




























                1












                1








                1







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



                documentclass{standalone}
                usepackage{tikz}
                usepackage{circuitikz}

                newlength{kludge}

                begin{document}
                begin{circuitikz}
                kludge=ctikzvalof{monopoles/ground/width}csname pgf@circ@Rlenendcsname
                draw (0,0) node[ground,yshift=1.2kludge]{} to [C,*-*] (0,2);
                node[right=0.5kludge]{$ leftarrow $ Start ground here};
                end{circuitikz}
                end{document}





                share|improve this answer















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



                documentclass{standalone}
                usepackage{tikz}
                usepackage{circuitikz}

                newlength{kludge}

                begin{document}
                begin{circuitikz}
                kludge=ctikzvalof{monopoles/ground/width}csname pgf@circ@Rlenendcsname
                draw (0,0) node[ground,yshift=1.2kludge]{} to [C,*-*] (0,2);
                node[right=0.5kludge]{$ leftarrow $ Start ground here};
                end{circuitikz}
                end{document}






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 3 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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...