10

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.

2
  • You'll probably have to build them. You van use as a starting point the symbol for voltage source and tinker around with it.
    – Count Zero
    Commented Jan 30, 2012 at 15:39
  • I have just found this discussion: sourceforge.net/mailarchive/…
    – student
    Commented Apr 13, 2012 at 19:16

1 Answer 1

3

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

3
  • 2
    There are some problems about mixing the two, Here is a sample of it.
    – percusse
    Commented Feb 28, 2012 at 9:13
  • @percusse, I accept. Thanks for noting it. But this is a short cut where both the libraries should not be mixed. I mean one should use only circuitikz libraries.
    – user11232
    Commented Feb 28, 2012 at 10:02
  • Notice that as per now (2022) there is a compatibility mode in circuitos, even if it's not recommended.
    – Rmano
    Commented Jun 29, 2022 at 11:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .