1

enter image description here

Hello all I hope you are doing well. I am using circuitikz to draw the electrical circuit. now I need to draw a transformer symbol like below, but I don't know how to use it. Can you help me?

0

1 Answer 1

1

Like this?

\documentclass[tikz,border=3.14mm]{standalone} 
\usepackage[american]{circuitikz}
\begin{document}
  \begin{tikzpicture} 
      \draw (0,0) to [voosource,fill=cyan!40, l=$T_1$,name=T1] (0,-2)  node[ground]{};
  \node [xshift=-13mm] at (T1.90) {$10/0.4$};
  \end{tikzpicture}
\end{document}

enter image description here

10
  • but i get an error: Package pgfkeys Error: I do not know the key '/tikz/voosource' and I am going to ignore it. Perhaps you misspelled it. \draw (0,0) to [voosource] (0,-2) Jun 1, 2019 at 11:34
  • 3
    What is your circuitikz version? I am on 0.9.0.
    – user31034
    Jun 1, 2019 at 11:36
  • 1
    TextStudio is your writing environment. What is your operating system (Win or Mac or Unix/Linux?) and what is your TeX distribution? Based on your operating system and TeX distribution, please "google" it for updates.
    – user31034
    Jun 1, 2019 at 12:03
  • 1
    @ferahfeza Nice, +1, but notice that the .90 label is always referred to the horizontally laid component. It would be more natural to just say \draw (0,0) to [voosource,fill=cyan!40, l=$T_1$,a=$10/0.4$] (0,-2) (but yes, in your way you have more control on the label position).
    – Rmano
    Jun 2, 2019 at 18:32
  • 1
    @Rmano, You are right, but I gave my answer to show the fillable and node properties on the component.
    – user31034
    Jun 2, 2019 at 18:38

You must log in to answer this question.

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