I am a beginner in LaTeX, and TikZ, trying to use them for industrial documents.
The sample code below (largely made with previous help) shows a circuit made with circuitikz. However I have now the need to make some variants of this circuit, and wonder if the code could be made more flexible using another approach, such as \foreach or other solution, minimizing the number of hard coded coordinates, and therefore simplifying the adjustments of some dimensions. Any help appreciated.
\documentclass{article}
\usepackage{tikz}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[scale =1]
% Side vertical lines
\draw [ultra thick, gray!50] (0,-5)-- (0,2);
\draw [ultra thick, gray!50] (5,-5) -- (5,2);
% Black resistors
\draw (0,1) to[R=$R_1$,*-*] (2,1);
\draw (3,0) to [R=$R_1$,*-*] (5,0);
\draw (0,-1) to[R=$R_1$,*-*] (2,-1);
\draw (3,-2) to[R=$R_1$,*-*] (5,-2);
\draw (0,-3) to[R=$R_1$,*-*] (2,-3);
\draw (3,-4) to[R=$R_1$,*-*] (5,-4);
% Blue resistors
\begin{scope}[color=blue]
\draw (2,1) to [R=$R_2$] (3,0);
\draw (2,-1) to[R=$R_2$] (3,0);
\draw (2,-1) to [R=$R_2$] (3,-2);
\draw (2,-3) to[R=$R_2$] (3,-2);
\draw (2,-3) to[R=$R_2$] (3,-4);
\end{scope}
% the side messages
\node [anchor=south,rotate=90, gray] at (current bounding box.west) {\Large\textbf {Pin side}};
\node [anchor=north,rotate=90,gray] at (current bounding box.east) {\Large\textbf{Socket side}};
\end{circuitikz}
\end{document}
circuitikzso much, instead I use the library provided withtikz. (You can load it by adding\usetikzlibrary{circuits.ee.IEC}in the preamble of your document.circuits.ee.IECcan be replaced bycircuits.logic.USorcircuits.logic.IEC, depending on your needs.) There for instance you have more flexibility in customizing your symbols, if that's what you're after. But as percusse said, we need to know what you have in mind. – Count Zero May 28 '12 at 19:23