Ok, so if I understand this correctly, you recommend install directly from ctan. The question is, I’m not sure how, but is it the tds arcive? If I test it under mkiv do I need a separate install? The wiki seems to indicate that the mkiv version is included in the LMTX installation, if so it doesn’t work but I give it a second try. Your commitment is truly fantastic and I thank you once again. Jan-Erik
6 dec. 2021 kl. 18:39 skrev Aditya Mahajan via ntg-context
: 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 ___________________________________________________________________________________