1

I would like to make a CircuiTikz Symbol as follows:

enter image description here

it is a monopole (the 'connection pin' is on the left). How can I do that? I tried to reverse-engineer some of the existing symbols, but I was unable to find out how such a circular section could be made.


The monopole was a good idea. I have managed to write the code:

\pgfdeclareshape{radialstub}{\anchor{center}{\pgfpointorigin‌​} 
\behindforegroundpath{
  \pgfscope
    \pgfstartlinewidth=\pgflinewidth 
    \pgfsetlinewidth{\pgfkeysvalueof{/tikz/circuitikz/bipoles/th‌​ickness}
    \pgfstartlin‌​ewidth} 
    \pgfpathmoveto{\pgfpointorigin} 
    \pgfpathlineto{\pgfpointpolar{30}{6mm}} 
    \pgfpatharc{30}{150}{6mm} 
    \pgfpathclose 
    \pgfusepath{draw} 
  \endpgfscope } }
  • \pgfpatharc on page 988 of the tikz manual. – John Kormylo Oct 5 '16 at 16:38
  • yes, but I need to include that in a CircuiTikz shape. I want something similar like a resistor. – T. Pluess Oct 5 '16 at 18:17
  • You should use a monopole like ground as a template. The connecting pin will be at the origin of the shape. – John Kormylo Oct 5 '16 at 19:30
  • The monopole was a good idea. I have managed to write the code: ` \pgfdeclareshape{radialstub}{\anchor{center}{\pgfpointorigin} \behindforegroundpath{ \pgfscope \pgfstartlinewidth=\pgflinewidth \pgfsetlinewidth{\pgfkeysvalueof{/tikz/circuitikz/bipoles/thickness}\pgfstartlinewidth} \pgfpathmoveto{\pgfpointorigin} \pgfpathlineto{\pgfpointpolar{30}{6mm}} \pgfpatharc{30}{150}{6mm} \pgfpathclose \pgfusepath{draw} \endpgfscope } } ` – T. Pluess Oct 5 '16 at 20:02
  • 1
    BTW, you can answer your own question. It might help to use a full MWE (see tex.stackexchange.com/questions/222424/… for example). You can even accept your own answer (eventually). – John Kormylo Oct 7 '16 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.