So I am trying to create a very simple circuit. Here is my code:
\documentclass[border=10pt,multi,tikz]{standalone}
\usepackage{circuitikz,siunitx}% cfr: these seem necessary but what else?
\standaloneenv{circuitikz}
\begin{document}
\ctikzset{bipoles/resistor/height=0.15}
\ctikzset{bipoles/resistor/width=0.4}
\begin{circuitikz}
\draw (0,0)
to[I,i=$1 \mA$,] (0,5) % The voltage source
to[short] (0,5)
to[short] (4,5) % The resistor
to[R=$ 1\kilo\ohm$,] (4,0) % The resistor
to[short] (0,0);
\draw (4,5)
to[R=$1\kilo\ohm$] (8,5) % The resistor
%to[short] (8,5)
to[R=$10 \kilo\ohm$] (8,0) % The voltage source
to[short] (0,0);
\draw (8,5)
to[R=$1 \kilo\ohm$] (14,5) % The voltage source
to[R=$1 \kilo\ohm $] (14,3)
to[cV=$A V_{in} $] (14,0)
to[short] (0,0);
\draw (10,5)
to[short] (16,5) node[anchor=west]{A}
to [open,o-o] (16,0)node[anchor=west]{B}
to[short] (0,0);
\draw [red,latex-] (2,2) node[above,color=red]{$i_2$} arc(-90:145:5mm)
\end{circuitikz}
\end{document}
All that I would like to do is be able to write i_1, i_2,i_3
inside the drawn thin circle to denote current flowing throughout enouch mesh.
When I try to put a circle arrow, I get an error.
\documentclass{...}
and ending with\end{document}
.circuitikz
andsiunitx
to the preamble, but I'm still getting undefined control sequences. What do I need to load in addition? Also, what shouldenouch
say?siunitx
doesn't even help. I get a different error, but at the same line.