I am drawing a simple diagram on circuitikz with the following code
\documentclass{standalone}
\usepackage[american]{circuitikz}
\usepackage{siunitx}
\begin{document}
\begin{circuitikz}[scale=1.25]
\ctikzset{label/align=smart,bipoles/length=1.5cm}
\draw (0,0) to[R,l_=\mbox{$R_1=\SI{2}{\ohm}$},*-*] (4,0);
\draw (4,0) to[R,l^=\mbox{$R_2=\SI{2}{\ohm}$},*-*] (2,3);
\draw (2,3) to[R,l_=\mbox{$R_3=\SI{2}{\ohm}$},*-*] (0,0);
\end{circuitikz}
\end{document}
It seems that l_=
and l^=
does not work with diagonal elements or am I missing something? How can I put $R_2$ and $R_3$ on top of the resistor?