2

When I use the battery symbol and specify a voltage it draws a directional arrow above the battery symbol, which I want to remove.

MWE:

\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage{siunitx}
\usepackage{circuitikz}

\begin{document}

\tikzset{component/.style={draw,thick,circle,fill=white,minimum size =0.75cm,inner sep=0pt}}

\begin{circuitikz}[european]
\draw (0,0) to [battery1=9V] (3,0); 
\end{circuitikz}

\end{document}

produces:

enter image description here

0
1

The to[battery1=...] is translated as to[battery1,v=...] by default. whereas to[battery1,l=...] is what you want. Note: this is a component dependent feature and comes from the definition of battery1/.style.

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage{siunitx}
\usepackage{circuitikz}

\begin{document}

\tikzset{component/.style={draw,thick,circle,fill=white,minimum size =0.75cm,inner sep=0pt}}

\begin{circuitikz}[european]
\draw (0,0) to [battery1,l=9V] (3,0); 
\end{circuitikz}

\end{document}

demo

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.