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.

How can I make the Voltmeter and Ammeter symbols look like in the follwing picture using the circuits.ee.IEC library?

Ammeter and Voltmeter

I just managed to do this:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{circuits}
\usetikzlibrary{circuits.ee.IEC}


\tikzset{circuit declare symbol = ammeter}
\tikzset{set ammeter graphic ={draw,generic circle IEC, minimum size=5mm}}


\begin{document}

\begin{tikzpicture}[circuit ee IEC]
   \draw (0,0) to[ammeter] (2,0);
\end{tikzpicture}

\end{document}

empty ammeter

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

You can simply use the generic circle IEC shape. So you would put \node (name) [generic circle IEC, draw] at (location) {A} for the Ammeter. Just replace the A with a V for the voltmeter. If this is not exactly what you mean or you need additional information on how to apply it to your specific case, you should provide a minimal working example showing the diagram you have so far without the meters.

Edit: In response to your edit, you can simply use the info option to get a label and use center as the angle to position this label in the center of the shape. Your example then becomes:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{circuits}
\usetikzlibrary{circuits.ee.IEC}
\tikzset{circuit declare symbol = ammeter}
\tikzset{set ammeter graphic ={draw,generic circle IEC, minimum size=5mm,info=center:A}}
\begin{document}
  \begin{tikzpicture}[circuit ee IEC]
    \draw (0,0) to[ammeter] (2,0);
  \end{tikzpicture}    
\end{document}

Resulting in:

Annotated symbol

share|improve this answer
    
@student: see the updated answer. –  Roelof Spijker Jan 30 '12 at 19:40
add comment

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.