I follow a convention in which I make voltages blue and currents red.
Making the current direction red is pretty simple. I just add "color=red" to the options for the specific current direction. But what about the text?
The PGF manual suggests changing the style, like so:
\begin{tikzpicture}[circuit ee IEC,every info/.style=red]
\node [resistor,info=$3\Omega$] {};
\end{tikzpicture}
The trouble with this is that it makes ALL the info labels red. I just want the current direction labels to be red.
Here is my minimal working example:
\documentclass{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows,circuits.ee.IEC,positioning}
\begin{document}
\begin{tikzpicture}[circuit ee IEC,x=2cm,y=1.5cm,
small circuit symbols,
set inductor graphic=var inductor IEC graphic,
set diode graphic=var diode IEC graphic]
\foreach \contact/\x in {0/0,2/3}
{
\node [contact] (upper contact \contact) at (\x,4) {};
}
\node [coordinate] (upper right limit) at (6,4) {};
\node [coordinate] (lower right limit) at (6,0) {};
\draw (upper contact 0) to[current direction={near start,color=red,text=red,info=$\text{I}_2$},resistor={info={$\text{R}_1$}}] (upper contact 2);
\end{tikzpicture}
\end{document}
I tried adding "text=red", after I saw it in this example, but that does not work.
