[NTG-context] European style Circuitikz error

Jan-Erik Hägglöf janerik.hagglof at bahnhof.se
Thu Feb 27 13:54:47 CET 2020


It is solved.

Draw circuits in this way:

\usemodule[circuitikz]

\starttext

\starttikzpicture[european]
% Circuit 1
\draw (0,0) to[short] (0,4) to[battery1] (2,4) to[rmeter, t=A] (4,4);
\draw (0,2) to[R=$115 \Omega$,l^=$115 \Omega$] (2,2) to[R=$R_1$,l^=$325 \Omega$] (4,2);
\draw (0,0) to[R=$R_1$,l^=$100 \Omega$] (2,0) to[R=$R_1$,l^=$120\Omega$] (4,0);
\draw (4,0) to[short] (4,4);
% Circuit 2
\draw (6,2) to[short] (6,4) to[battery1] (8,4) to[rmeter, t=A] (10,4);
\draw (6,2) to[R=$R$,l^=$R$] (10,2) to[short] (10,4);
\stoptikzpicture

\stoptext

Makes the resistor components visible as rectangles instead

/Janne

> 27 feb. 2020 kl. 13:23 skrev Jan-Erik Hägglöf <janerik.hagglof at bahnhof.se>:
> 
> In page 8 inte e Circuitikz manual the settings to get European style components e.g resistors like rectangular boxes instead of default looking.
> 
> It says this
> 
> \usemodule[circuitikz][american]
> 
> When I do this 
> 
> \usemodule[circuitikz][european]
> 
> It gives an error.
> 
>  ! Package pgfkeys Error: I do not know the key '/tikz/short' and I am going to ignore it. Perhaps you misspelled it.
> 
> So it must be some other way to set this, how do I make it possible?
> 
> Thanks in advance
> 
> /Janne
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________



More information about the ntg-context mailing list