[NTG-context] circuitikz meters

Martin Althoff martin.althoff at yahoo.com
Mon Sep 30 18:07:33 CEST 2019


Hello ...

I am drawing some simple circuits for an electro-physics class I am teaching using
circuitikz. Using meters gives some effects I don't quite understand.

The MWE works as shown. The commented lines fail with "Undefined control sequence". If I
put the same 3 lines into Latex (via Texstudio on Linux), just the opposite happens. The
line with rmeter fails, the other two work. 

Why the difference? Some version issue? The "circuitikz manual version 0.9.4.pdf" shows
all 3 types of meters as choice. 

Actually I would prefer to use the "ammeter" and "voltmeter" within Context.

Thanks for any pointers.

Greetings, Martin

\usemodule[circuitikz]
\starttext
\starttikzpicture
%\draw (0,0)to[ammeter, t=A, i=$i$] ++(3,0);
\draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ;
%\draw (0,2) to[voltmeter, l=$U$] (++3,2);
\stoptikzpicture
\stoptext


Latex MWE, works as shown

\documentclass{article}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
	\draw (0,0) to[ammeter, t=A, i=$i$] ++(3,0);
	%\draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ;
	\draw (0,2) to[voltmeter, l=$U$] (++3,2);
\end{circuitikz}
\end{document}




More information about the ntg-context mailing list