How can I get a battery symbol like this from either CircuiTikZ or TikZ's circuit libraries? I haven't been able to find any that have a thick negative terminal. pst-circ
's \battery
command is exactly what I want, but I'd prefer to stick to TikZ.
MWE:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{circuits.ee.IEC}
\begin{document}
\begin{tikzpicture}[circuit ee IEC]
\draw (0, 1) to [battery] (0, 0) {};
\end{tikzpicture}
\end{document}
Best Answer
Perhaps I should have mentioned that you also have to split the component into two paths to implement two different line widths,
Note, you probably could reuse
\linethickness
instead of\tempwidth
. A quick search of sty files only found it used ingeometry
andgkpmac
(?). Besides, local changes won't get out oftikzpicture
.