When I make a simple circuit containing a cell with to[battery2, V=$1.5V$] and a resistor (R), I get the circle for the battery symbol:
\documentclass{article}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[battery2, V=$1.5V$] (0,2)
to[short, i=$I_0$] (2,2)
to[R] (2,0)
to[short] (0,0)
;
\end{circuitikz}
\end{document}
If I leave out the info for the battery and just use to[battery2], I get the battery symbol consisting of the long and short bar.
\documentclass{article}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[battery2] (0,2)
to[short, i=$I_0$] (2,2)
to[R] (2,0)
to[short] (0,0)
;
\end{circuitikz}
\end{document}
Why is my battery symbol changing? I want to keep the long and short bar symbol for my battery.
[battery2, v=$1.5V$]
(V
is wrong, it call symbol for voltage generator).$1.5V$
really means 1.5 multiplied by the variable V. If you want to say "1.5 volts", better use\qty{1.5}{V}
with thesiunitx
package (print both side to side and observe the difference!).