ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* European style Circuitikz error
@ 2020-02-27 12:23 Jan-Erik Hägglöf
  2020-02-27 12:54 ` Jan-Erik Hägglöf
  0 siblings, 1 reply; 2+ messages in thread
From: Jan-Erik Hägglöf @ 2020-02-27 12:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 498 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1455 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: European style Circuitikz error
  2020-02-27 12:23 European style Circuitikz error Jan-Erik Hägglöf
@ 2020-02-27 12:54 ` Jan-Erik Hägglöf
  0 siblings, 0 replies; 2+ messages in thread
From: Jan-Erik Hägglöf @ 2020-02-27 12:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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@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@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
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-27 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-27 12:23 European style Circuitikz error Jan-Erik Hägglöf
2020-02-27 12:54 ` Jan-Erik Hägglöf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).