From: "Jan-Erik Hägglöf" <janerik.hagglof@bahnhof.se>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: European style Circuitikz error
Date: Thu, 27 Feb 2020 13:54:47 +0100 [thread overview]
Message-ID: <BBE663EA-1156-4C39-A8ED-38B97B9FD0C2@bahnhof.se> (raw)
In-Reply-To: <94062190-0398-42B3-8D2D-0AD556B7FB2B@bahnhof.se>
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
___________________________________________________________________________________
prev parent reply other threads:[~2020-02-27 12:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-27 12:23 Jan-Erik Hägglöf
2020-02-27 12:54 ` Jan-Erik Hägglöf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BBE663EA-1156-4C39-A8ED-38B97B9FD0C2@bahnhof.se \
--to=janerik.hagglof@bahnhof.se \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).