13 dec. 2021 kl. 21:14 skrev Jan-Erik Hägglöf <skrantajanneman@gmail.com>:

Good work and thank you very much. I dig in to it and try it out



Den mån 13 dec. 2021 21:09Aditya Mahajan via ntg-context <ntg-context@ntg.nl> skrev:
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:


So, the following works (with latest circuittiz from ctan):



  \draw (0,2) to[I] (2,2);


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.

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