Is it possible to make circuitikz
draw all resistors red or all capacitors blue? I can make all bipoles thick, for example, but cant make all resistors red. I have to write the color explicitly. I cannot find a ctikzset
command for this.
This is an example. I want to get rid of the color=red
for all resistors.
\documentclass{standalone}
\usepackage[american,cuteinductors]{circuitikz}
\usetikzlibrary{shapes,arrows,circuits,calc,babel}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}[transform shape, scale=1.0,thick]
\ctikzset{bipoles/thickness=2}
\ctikzset{label/align = smart}
\draw (0, 0) to [battery1, color=green, l=$\mathcal{E}$, invert] (0, 4) -- (4,4) to [R, l^=$R_1$, color=red] (2,2) to [R=$R_2$, color=red] (4, 0) -- (0, 0);
\draw (4, 4) to [R=$R_4$, color=red] (6, 2) to [R = $R_3$, color=red] (4, 0);
\draw (2, 2) to [C = $C$, color=blue] (6,2);
\end{tikzpicture}
\end{document}
Thanks in advance. Edit: Making the code compilable.