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