Is it possible to produce a variable battery1 sign (battery with one up slanted arrow) in circuitikz? There are options for vR and vL (variable resistor) but not for the battery1. I need it to represent a variable power supply. MWE is appended below
\documentclass{article}
\usepackage{tikz,circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,-2) to[battery1] (2,-2) node [right] {Powersupply};
\end{circuitikz}
\end{document}
Generated from MWE
What I want
I can manually put an up arrow and position it to the middle of battery1 sign but any shortcut like vR or vL would help.
Best Answer
Just define your own component. I copy&pasted the
battery1
definition and added the arrow.Output: