[Tex/LaTex] Circuitikz symbols in TikZ circuit library

circuitikztikz-circuit-libtikz-pgf

Some time ago, I asked about Relationship between tikz circuit library and circuitikz?. wh1t3 wrote: "However, as far as I know there is nothing the circuitikz package does that the TikZ circuit library can't."

So if it is true that the tikz library is more powerful, how do I get all the symbols described in the circuitikz manual using the TikZ circuit library?

Especially I am missing the symbols for ammeters and voltmeters.

Best Answer

This is like a short cut which saves from building symbols afresh from tikz circuit library. If you do not mind using circuitikz, there is a way you can use those symbols inside tikzpicture.

\documentclass[10pt,a4paper,parskip]{scrbook}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usepackage[active,tightpage]{preview}
\usepackage[siunitx]{circuitikz} %<------------ 
\PreviewEnvironment{tikzpicture}
%=======================
\begin{document}
%======================
\begin{tikzpicture}
\draw (0,0) to[voltmeter] (2,0);
\draw (0,1) to[ammeter] (2,1);
\draw (3,0) node [ground] {};
\draw (0,2) to[american voltage source] (2,2);
\draw (4.2,0.5) to[sI=$a_1$] (4.2,2.3);
\end{tikzpicture}
%========================
\end{document} 

You may notice that here \begin{circuitikz}....\end{circuitikz} is not used. But the circuitikz symbols are accessible through \usepackage{circuitikz}. Hope this helps.

enter image description here