Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
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 Jan 30 '12 at 15:39
    
I have just found this discussion: sourceforge.net/mailarchive/… –  student Apr 13 '12 at 19:16

1 Answer 1

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

share|improve this answer
2  
There are some problems about mixing the two, Here is a sample of it. –  percusse Feb 28 '12 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. –  Harish Kumar Feb 28 '12 at 10:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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