I'd like to know if it is possible to place a current source that looks like the following:

Current source

  • 1
    Yes. You can do it yourself elfsoft2000.com/projects/bipole.pdf or give me a couple of days. What exactly do you call this? Aug 14, 2013 at 20:24
  • Oh wow, thanks! It's just a 'Current Source'!
    – user968243
    Aug 15, 2013 at 2:41
  • I would like to add this to my collection, but I need to give it a name. I read that this symbol is more common in Europe, but Europe is big place, and we already have a European current source. I suppose I could give it an acronym (YAFCS) or something. Aug 16, 2013 at 1:30
  • Hi, well I'm from Australia where this source is sometimes used. Some datasheets also use it. I just called it 'Iring'. Curiously, how is it that you 'add it to your collection'? Is there someone where I can just save the component so Circuitikz remembers it?
    – user968243
    Aug 16, 2013 at 1:58
  • You can put the definition into a separate file and \input it in the header (sort of like \usepackage). BTW, isourcebr it is. Aug 16, 2013 at 14:34

1 Answer 1



% preparation to create bipoles


\pgf@circ@Rlen = \pgfkeysvalueof{/tikz/circuitikz/bipoles/length}

\newlength{\ResUp} \newlength{\ResDown}
\newlength{\ResLeft} \newlength{\ResRight}

% set default dohicky size


% create doohicky shape


  \pgfusepath{draw} %draw doohicky
    \pgfusepath{draw}   %draw arrow

% create doohicky to-path style

\tikzset{doohicky/.style = {\circuitikzbasekey, /tikz/to path=\doohickypath, l=#1}}

% end of setup


 \draw (0,0) to[doohicky, l=I, o-*] (0,2);



enter image description here

  • The code doesn't compile <to be read again> \pgfk@/tikz/circuitikz/bipoles/length l.14 ...ysvalueof{/tikz/circuitikz/bipoles/length}
    – Viesturs
    Jun 5, 2023 at 15:25
  • @viesturs - Circuitikz has changed since 2013. More importantly, it now provides ioosoiurce, voosource and oosourcetrans (page 70). Jun 5, 2023 at 16:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .