I am very new to Latex. I have tried to draw a circuit, using package from circuitikz.
What do you guys think? can I do this circuit any simpler?
Code: Select all
\documentclass[a4paper 12pt]{article}
\usepackage[danish]{babel}
\usepackage{circuitikz}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h!]
\begin{center}\begin{circuitikz}
\draw (0,0) to [R, l=$R_1$, i_>=$i_1$] (2,0)
--(3,0)to[R,l=$R_4$,i_>=$i_4$](5,0)
--(6,0)to[R,l=$R_8$,i_>=$i_8$](8,0)
--(9,0)--(9,-3)--(8,-3)to[R, l=$R_7$, i<^=$i_7$] (6,-3)
--(5,-3)to[R,l=$R_5$,i<^=$i_5$](3,-3)
--(2,-3)to[R,l=$R_2$,i<^=$i_2$](-1,-3)--(-1,0)--(0,0)
;
\draw (2.5,0)to[R,l_=$R_3$,i>=$i_3$,*-*](2.5,-3)
;
\draw (5.5,0)to[R,l_=$R_6$,i>=$i_6$,*-*](5.5,-3)
;
\draw (9,-1.5)to[short,*-](10,-1.5)--(10,-5)to[battery1, v=$V_0$, i>=$i_t$](-2,-5)--(-2,-1.5)to[short,-*](-1,-1.5)
(-1,-1.5)node[anchor=west] {A}
(2.5,0)node[anchor=south] {B}
(2.5,-3)node[anchor=north] {C}
(5.5,0)node[anchor=south] {D}
(5.5,-3)node[anchor=north] {E}
(9,-1.5)node[anchor=east] {F} (9,-1.5)
;
\end{circuitikz} \end{center}
\end{figure}
\end{document}