# How can I do a circuit on LaTex? [closed]

I need to do a drawing of this circuit on my TeX, can anyone help me with the code to make it?

• There are many examples of circuits on this site. Have you done a proper search and looked at some answers? For example, just look at the circuits tag (there are also others).
– Werner
Oct 5 '21 at 18:53
• also this tag tex.stackexchange.com/questions/tagged/circuitikz Oct 5 '21 at 18:55
• I’m voting to close this question because it can be answered by reading the documentation for circuitikz. Oct 5 '21 at 19:29
• I made the circuit. Thanks to you all. Oct 5 '21 at 19:45
• Awesome, congrats on drawing your first circuit! Oct 5 '21 at 19:53

It's rather easy with pstricks, more specifically with the dedicated package – pst-circ:

\documentclass[11pt]{article}
\usepackage{sansmath}
\usepackage{pst-circ}

\begin{document}

\sffamily\sansmath
\begin{pspicture}(-1,-1)(3,3)
\psset{unit = 1.5cm, linejoin=1}
\pnodes(0,0){A}(0,4){B}(4,4){C}(4,0){D}
\vac[labeloffset=32pt](A)(B){CA}
\resistor[dipolestyle=zigzag, labeloffset=20pt](B)(C){R1}
\coil(C)(D){L1}
\capacitor(D)(A){C1}
\end{pspicture}

\end{document}