On Mon, 6 Dec 2021, Aditya Mahajan via ntg-context wrote:
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.
There was an error in circuitikz, which is now fixed in the latest version: https://github.com/circuitikz/circuitikz/pull/600 So, the following works (with latest circuittiz from ctan): \usemodule[t][circuitikz] \starttext \startcircuitikz \draw (0,2) to[I] (2,2); \stopcircuitikz \stoptext But fails with m-circuitikz (even after I remove \unprotect ... \protect from \starttikzinput as in the other thread). So, I don't know what is going wrong with the catcodes in m-circuitikz. Aditya