I have a problema when i want to put a circuit inside a subfigure. The problem is on ">" and "<", because if i take off these, the code works!
I'm using the following packages:
\usepackage{subfigure}
Code:
\begin{figure}[h]
\centering
\subfigure[circuit]{
\begin{circuitikz}[scale=0.75,transform shape]
\draw (0,0) coordinate (base)
(base) to [R,l=$R_2$] ++ (0,-3) node[ground]{}
(base) to [R,l_=$R_1$] ++ (0,3)
to [short,-*] ++ (2.5,0) coordinate (cole);
\draw (base) to [open] ++ (2.5,0) node[npn](Q){}
(base) to [short,*-, f < = $I_B$] (Q.B)
%HERE THE PROBLEM! ("f < =")
(Q.E) to [R,l=$R_E$] ++ (0,-2.25) node [ground]{}
(Q.C) to [R,l_=$R_C$] (cole);
\draw (cole) to [short] ++ (3,0)
to [battery,l=$V_{CC}$] ++ (0,-6) node[ground]{};
\end{circuitikz}
}
\end{figure}
The error is:
Argument of \language@active@arg< has an extra }. }
if i put the package: "subcaption" the error is:
Package subcaption Error: This package can't be used in cooperation(subcaption) with the subfigure package. \subcaption@CheckCompatibility
Thanks in advance!!


subfigurepackage. Try to replace it bysubfigor even bettersubcaptionpackage and accordingly replacesubfigurewith code defined in the mentioned packages. – Zarko Oct 24 '20 at 17:40f<=, no spaces betweenfand<– Rmano Oct 24 '20 at 17:59Argument of \language@active@arg< has an extra }., is very typically related tobabel. See for example https://tex.stackexchange.com/questions/166772/problem-with-babel-and-tikz-using-draw --- even if it's a different char, the problem (could) be similar. – Rmano Oct 25 '20 at 09:58