From: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
To: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
Cc: Aditya Mahajan <adityam@umich.edu>
Subject: Re: [DKIM] Re: [DKIM] circuitikz module seems broken
Date: Mon, 6 Dec 2021 12:39:16 -0500 (EST) [thread overview]
Message-ID: <nycvar.YAK.7.78.908.2112061227170.2156027@nqv-guvaxcnq> (raw)
In-Reply-To: <nycvar.YAK.7.78.908.2112060347310.2156027@nqv-guvaxcnq>
On Mon, 6 Dec 2021, Aditya Mahajan via ntg-context wrote:
>
> Something is still not working correctly though. With the simple example that Hans sent, I get error messages:
>
> tex error > tex error on line 76 in file m-circuitikz.mkxl: Package pgfkeys Error: I do not know the key '/tikz/resistor', to which you passed 'american', and I am going to ignore it. Perhaps you misspelled it
>
> which are weird because tikz is looking at keys tikz/resistor rather than tikz/circuittikz/resistor. But I don't understand why this is the case.
Here is a minimal example to show the error.
\usemodule[m][tikz]
\tikzinputfile{pgfcirc.defines.tex}
\tikzinputfile{pgfcircbipoles.tex}
\starttext
\bgroup
\loggingall
\ctikzset{resistor=american}
\egroup
\stoptext
which gives the error
tex error > tex error on line 10 in file ./t2.tex: Package pgfkeys Error: I do not know the key '/tikz/resistor', to which you passed 'american', and I am going to ignore it. Perhaps you misspelled it
The file pgfcirc.defines.tex has:
\def\circuitikzbasekey{/tikz/circuitikz}
\pgfkeys{\circuitikzbasekey/.is family}
\def\circuitikzset{\expandafter\pgfqkeys\expandafter{\circuitikzbasekey}}
\let\ctikzset\circuitikzset
The file pgfcircbipoles.tex has the code:
\newif\ifpgf@circuit@europeanresistor
\ctikzset{resistor/.is choice}
\ctikzset{resistor/american/.code = \pgf@circuit@europeanresistorfalse }
\ctikzset{resistor/european/.code = \pgf@circuit@europeanresistortrue }
\tikzset{american resistors/.style = {\circuitikzbasekey/resistor = american}}
\tikzset{european resistors/.style = {\circuitikzbasekey/resistor = european}}%
So, the key which is defined is \circuitikzbasekey/resistor. Not sure why pgfkeys is searching for tikz/resistor.
@Hans, does the above code work correctly for you? If so, then we can wait until the next upload and test again.
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-12-06 17:39 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 7:54 Jan-Erik Hägglöf via ntg-context
2021-12-03 9:49 ` [DKIM] " Hans Hagen via ntg-context
2021-12-03 13:54 ` [DKIM] " Hans Hagen via ntg-context
2021-12-03 14:17 ` skrantajanneman via ntg-context
2021-12-03 14:40 ` [DKIM] " Hans Hagen via ntg-context
2021-12-03 14:47 ` Aditya Mahajan via ntg-context
2021-12-03 18:16 ` Hans Hagen via ntg-context
2021-12-03 22:39 ` Jan-Erik Hägglöf via ntg-context
2021-12-03 23:27 ` Aditya Mahajan via ntg-context
2021-12-04 9:05 ` Henning Hraban Ramm via ntg-context
2021-12-04 21:37 ` Jan-Erik Hägglöf via ntg-context
2021-12-05 15:35 ` [DKIM] " Hans Hagen via ntg-context
2021-12-05 20:45 ` [DKIM] " Jan-Erik Hägglöf via ntg-context
2021-12-06 6:54 ` [DKIM] " Aditya Mahajan via ntg-context
2021-12-06 9:02 ` Aditya Mahajan via ntg-context
2021-12-06 17:39 ` Aditya Mahajan via ntg-context [this message]
2021-12-06 19:30 ` Hans Hagen via ntg-context
2021-12-06 20:49 ` Jan-Erik Hägglöf via ntg-context
2021-12-07 8:48 ` [DKIM] " Hans Hagen via ntg-context
2021-12-08 5:30 ` Aditya Mahajan via ntg-context
2021-12-13 20:08 ` Aditya Mahajan via ntg-context
2021-12-13 20:14 ` Jan-Erik Hägglöf via ntg-context
2021-12-13 22:35 ` Jan-Erik Hägglöf via ntg-context
2021-12-13 23:54 ` Hans Hagen via ntg-context
2021-12-14 3:57 ` Aditya Mahajan via ntg-context
2021-12-14 13:14 ` Jan-Erik Hägglöf via ntg-context
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=nycvar.YAK.7.78.908.2112061227170.2156027@nqv-guvaxcnq \
--to=ntg-context@ntg.nl \
--cc=adityam@umich.edu \
/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).