ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* circuitikz module seems broken
@ 2021-12-03  7:54 Jan-Erik Hägglöf via ntg-context
  2021-12-03  9:49 ` [DKIM] " Hans Hagen via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2021-12-03  7:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf

Dear List!

I’ve been struggeling with the circuitikz module since my upgrade to LMTX.

The following test of installation failed, running file 

circuitikz-context.tex in ../modules/t-tikz/ directory 

% Copyright 2018-2021 by Romano Giannetti
% Copyright 2015-2021 by Stefan Lindner
% Copyright 2013-2021 by Stefan Erhardt
% Copyright 2007-2021 by Massimo Redaelli
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the files gpl-3.0_license.txt and lppl-1-3c_license.txt for more details.


\usemodule[circuitikz]

\starttext

A simple example to test the installation.

\startcircuitikz[scale=1.2]
	\draw
  (0,2) to[I=1\milli\ampere] (2,2)
        to[R, l_=2\kilo\ohm, *-*] (0,0)
        to[R, l_=2\kilo\ohm] (2,0)
        to[V, v_=2\volt] (2,2)
        to[cspst, l=$t_0$] (4,2) -- (4,1.5)
        to [generic, i=$i_1$, v=$v_1$] (4,-.5) -- (4,-1.5)
  (0,2) -- (0,-1.5) to[V, v_=4\volt] (2,-1.5)
        to [R, l=1\kilo\ohm] (4,-1.5)
  (5,2) node[dipchip, anchor=pin 1]{}
  (5,-2) node[flipflop JK, anchor=pin 1]{};

\stopcircuitikz

\stoptext

with this error message

pgfcircutils.tex|103 error| Undefined control sequence \undefined 

Below is a snippet from pgfcircutils.tex

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% subcircuits (experimental)
%%
%% introduced by Romano Giannetti around April 2021
%% changes suggested by Jonathan P. Spratte
%%
\newbox\ctikz@scratchbox
\pgfutil@protected\def\ctikzsubcircuitdef#1#2#3{%
    \expandafter\gdef\csname #1@Anchor\endcsname{}%
    \expandafter\gdef\csname #1@setanchors\endcsname{%
        \setbox\ctikz@scratchbox=\hbox{%
        \begin{circuitikz}
        \draw (0,0) \csname#1\endcsname{T-#1}{};
        \foreach [count=\i] \anchor in {#2}
        % reference anchor is -center
        \draw (0,{2-\i/2}) let \p1 = ($(T-#1-subckt@reference)-(T-#1-\anchor)$) in
            node[right]{\anchor: \x1,\y1 \expandafter\xdef\csname #1@Anchor\anchor\endcsname{++(\x1,\y1)}};
        \end{circuitikz}%
        }%
    }%
    \expandafter\gdef\csname#1\endcsname##1##2{%
        \csname #1@Anchor##2\endcsname coordinate(##1-subckt@reference)#3%
    }%
}
\long\def\ctikzsubcircuitactivate#1{\csname #1@setanchors\endcsname}

My installation info:

context --version
mtx-context     | ConTeXt Process Management 1.04
mtx-context     |
mtx-context     | main context file: /Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2021.10.28 10:19
mtx-context     | main context file: /Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context     | current version: 2021.10.28 10:19

Because of my lack of knowledge in this matter, I have no idea what is wrong here.

Many thanks in advance

Jan-Erik Hägglöf

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM]  circuitikz module seems broken
  2021-12-03  7:54 circuitikz module seems broken Jan-Erik Hägglöf via ntg-context
@ 2021-12-03  9:49 ` Hans Hagen via ntg-context
  2021-12-03 13:54   ` [DKIM] " Hans Hagen via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-03  9:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 12/3/2021 8:54 AM, Jan-Erik Hägglöf via ntg-context wrote:
> Dear List!
> 
> I’ve been struggeling with the circuitikz module since my upgrade to LMTX.
> 
> The following test of installation failed, running file
> 
> circuitikz-context.tex in ../modules/t-tikz/ directory
> 
> % Copyright 2018-2021 by Romano Giannetti
> % Copyright 2015-2021 by Stefan Lindner
> % Copyright 2013-2021 by Stefan Erhardt
> % Copyright 2007-2021 by Massimo Redaelli
> %
> % This file may be distributed and/or modified
> %
> % 1. under the LaTeX Project Public License and/or
> % 2. under the GNU Public License.
> %
> % See the files gpl-3.0_license.txt and lppl-1-3c_license.txt for more details.
> 
> 
> \usemodule[circuitikz]
> 
> \starttext
> 
> A simple example to test the installation.
> 
> \startcircuitikz[scale=1.2]
> 	\draw
>    (0,2) to[I=1\milli\ampere] (2,2)
>          to[R, l_=2\kilo\ohm, *-*] (0,0)
>          to[R, l_=2\kilo\ohm] (2,0)
>          to[V, v_=2\volt] (2,2)
>          to[cspst, l=$t_0$] (4,2) -- (4,1.5)
>          to [generic, i=$i_1$, v=$v_1$] (4,-.5) -- (4,-1.5)
>    (0,2) -- (0,-1.5) to[V, v_=4\volt] (2,-1.5)
>          to [R, l=1\kilo\ohm] (4,-1.5)
>    (5,2) node[dipchip, anchor=pin 1]{}
>    (5,-2) node[flipflop JK, anchor=pin 1]{};
> 
> \stopcircuitikz
> 
> \stoptext
> 
> with this error message
> 
> pgfcircutils.tex|103 error| Undefined control sequence \undefined
i get

tex error       > tex error on line 19 in file ./x.tex: Package tikz 
Error: Giving up on this path. Did you forget a semicolon?

so i suppose i have a different version (i admit that i never use tikz 
so i'm not even sure what to install)

so i updated both tikz and your module and get

fonts           > 'fallback modern-designsize rm 12pt' is loaded
tex error       > tex error on line 24 in file ./x.tex: Package tikz 
Error: Giving up on this path. Did you forget a semicolon?

I get something with:

\pushcatcodetable \setcatcodetable\texcatcodes

\startcircuitikz[scale=1.2]
     \draw
         (0,2)
     %         to[I=1] (2,2)
         to[R, l_=2, *-*] (0,0)
         to[R, l_=2] (2,0)
     %         to[V, v_=2] (2,2)
         to[cspst, l=$t_0$]
         (4,2) -- (4,1.5)
     %         to [generic, i=$i_1$, v=$v_1$]
         (4,-.5) -- (4,-1.5)
         (0,2) -- (0,-1.5)
     %          to[V, v_=4] (2,-1.5)
          to [R, l=1]
         (4,-1.5) -- (5,2)
         node[dipchip, anchor=pin 1]{}
         (5,-2)
         node[flipflop JK, anchor=pin 1]{}
   ;
\stopcircuitikz

\popcatcodetable

and leave the rest to others to figure out .. maybe some catcode issues

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-03  9:49 ` [DKIM] " Hans Hagen via ntg-context
@ 2021-12-03 13:54   ` Hans Hagen via ntg-context
  2021-12-03 14:17     ` skrantajanneman via ntg-context
  2021-12-03 14:47     ` Aditya Mahajan via ntg-context
  0 siblings, 2 replies; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-03 13:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 12/3/2021 10:49 AM, Hans Hagen via ntg-context wrote:

>> I’ve been struggeling with the circuitikz module since my upgrade to 
>> LMTX.
btw, We can have more 'catches' in the loader (t) module if needed. In 
any case, also check if things work with mkiv. That version has hardly 
been touched the last few years (and basically is frozen, apart from bug 
fixes) so if it doesn't work there it might be an indication of 
something in tikz or circuit.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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
  1 sibling, 1 reply; 26+ messages in thread
From: skrantajanneman via ntg-context @ 2021-12-03 14:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: skrantajanneman


[-- Attachment #1.1: Type: text/plain, Size: 1807 bytes --]

My thougts on this, if it is a possible alternative, to do such things in metafun instead?By the way I try this out.Thanks for all help,  appreciated.mvh Jan-Erik Hägglöf 
-------- Originalmeddelande --------Från: Hans Hagen via ntg-context <ntg-context@ntg.nl> Datum: 2021-12-03  14:55  (GMT+01:00) Till: mailing list for ConTeXt users <ntg-context@ntg.nl> Kopia: Hans Hagen <j.hagen@xs4all.nl> Ämne: Re: [NTG-context] [DKIM] Re: [DKIM] circuitikz module seems broken On 12/3/2021 10:49 AM, Hans Hagen via ntg-context wrote:>> I’ve been struggeling with the circuitikz module since my upgrade to >> LMTX.btw, We can have more 'catches' in the loader (t) module if needed. In any case, also check if things work with mkiv. That version has hardly been touched the last few years (and basically is frozen, apart from bug fixes) so if it doesn't work there it might be an indication of something in tikz or circuit.Hans-----------------------------------------------------------------                                           Hans Hagen | PRAGMA ADE               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl-----------------------------------------------------------------___________________________________________________________________________________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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : https://bitbucket.org/phg/context-mirror/commits/wiki     : http://contextgarden.net___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 2749 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-03 14:17     ` skrantajanneman via ntg-context
@ 2021-12-03 14:40       ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-03 14:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 12/3/2021 3:17 PM, skrantajanneman via ntg-context wrote:
> 
> My thougts on this, if it is a possible alternative, to do such things 
> in metafun instead?
i guess so but we needs specs etc and time (nothing wrong with using 
tikz if one likes the syntax, apart from it being a dependency and a 
rather huge load (quite some files) and slower than mp)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-03 13:54   ` [DKIM] " Hans Hagen via ntg-context
  2021-12-03 14:17     ` skrantajanneman via ntg-context
@ 2021-12-03 14:47     ` Aditya Mahajan via ntg-context
  2021-12-03 18:16       ` Hans Hagen via ntg-context
  1 sibling, 1 reply; 26+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-03 14:47 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Aditya Mahajan

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

On Fri, 3 Dec 2021, Hans Hagen via ntg-context wrote:

> On 12/3/2021 10:49 AM, Hans Hagen via ntg-context wrote:
> 
> >> I’ve been struggeling with the circuitikz module since my upgrade to 
> >> LMTX.
> btw, We can have more 'catches' in the loader (t) module if needed. In 
> any case, also check if things work with mkiv. 

I tested the example on mkiv, I got error that dipchip and fliflop JK are not defined. The file compiles if I comment those out. But in LMTX, I also get a "missing semicolon" error. There is also this warning, which may have something to do with what is going wrong:

system          > module wrapping error in 'tikz'

The error appears to be related to keyword arguments. The following example works:

    \usemodule[circuitikz]
    \starttext
    \startcircuitikz
            \draw (0,2) to[I] (2,2) ;
    \stopcircuitikz
    \stoptext

But this does not:

    \usemodule[circuitikz]
    \starttext
    \startcircuitikz
            \draw (0,2) to[I=1] (2,2) ;
    \stopcircuitikz
    \stoptext


Aditya

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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
  0 siblings, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-03 18:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

On 12/3/2021 3:47 PM, Aditya Mahajan via ntg-context wrote:
> On Fri, 3 Dec 2021, Hans Hagen via ntg-context wrote:
> 
>> On 12/3/2021 10:49 AM, Hans Hagen via ntg-context wrote:
>>
>>>> I’ve been struggeling with the circuitikz module since my upgrade to
>>>> LMTX.
>> btw, We can have more 'catches' in the loader (t) module if needed. In
>> any case, also check if things work with mkiv.
> 
> I tested the example on mkiv, I got error that dipchip and fliflop JK are not defined. The file compiles if I comment those out. But in LMTX, I also get a "missing semicolon" error. There is also this warning, which may have something to do with what is going wrong:
> 
> system          > module wrapping error in 'tikz'
> 
> The error appears to be related to keyword arguments. The following example works:
> 
>      \usemodule[circuitikz]
>      \starttext
>      \startcircuitikz
>              \draw (0,2) to[I] (2,2) ;
>      \stopcircuitikz
>      \stoptext
> 
> But this does not:
> 
>      \usemodule[circuitikz]
>      \starttext
>      \startcircuitikz
>              \draw (0,2) to[I=1] (2,2) ;
>      \stopcircuitikz
>      \stoptext
can you test the attached ... this works here

\usemodule[circuitikz]
% \usemodule[tikz]

\starttext

\starttikzpicture
     \draw (0,2) -- (2,2) ;
\stoptikzpicture

\startcircuitikz
     \draw (0,2) to[I=1] (2,2) ;
\stopcircuitikz

\stoptext



Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: m-circuitikz.mkxl --]
[-- Type: text/plain, Size: 3741 bytes --]

%D \module
%D   [       file=m-circuitikz,
%D        version=2021.12.03,
%D          title=\CONTEXT\ Extra Modules,
%D       subtitle=CURCUITIKZ support,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D A fixed variant of the t-curcuitikz module distributed with tikz. This one
%D is for \LMTX.

\usemodule[m][tikz]

\startmodule[circuitikz]

\def\pgfcircversion     {1.4.4}
\def\pgfcircversiondate {2021/10/31}

\usetikzlibrary[calc]
\usetikzlibrary[arrows.meta, bending]
\usetikzlibrary[fpu] % may be needed for use fpu reciprocal (v1.0.1)

\tikzinputfile{pgfcirc.defines.tex}
\tikzinputfile{pgfcircutils.tex}
\tikzinputfile{pgfcircpath.tex}

\tikzinputfile{pgfcircshapes.tex}
\tikzinputfile{pgfcircmonopoles.tex}
\tikzinputfile{pgfcircbipoles.tex}
\tikzinputfile{pgfcirctripoles.tex}
\tikzinputfile{pgfcircquadpoles.tex}
\tikzinputfile{pgfcircmultipoles.tex}

\tikzinputfile{pgfcirclabel.tex}
\tikzinputfile{pgfcircvoltage.tex}
\tikzinputfile{pgfcirccurrent.tex}
\tikzinputfile{pgfcircflow.tex}

% defaults

\setupmodule
  [current=european,
   voltage=european,
   resistor=american,
   inductor=cute,
   logic=american,
   siunitx=true,
   arrowmos=false]

% can be done nicer ... todo

\processaction
  [\currentmoduleparameter{voltage}]
  [european=>\ctikzset{voltage=european},
   american=>\ctikzset{voltage=american}]

\processaction
  [\currentmoduleparameter{current}]
  [european=>\ctikzset{ current=european},
   american=>\ctikzset{ current=american}]

\processaction
  [\currentmoduleparameter{label}]
  [straight=>\ctikzset{label/align = straight},
   align=>\ctikzset{label/align = rotate},
   smart=>\ctikzset{label/align = smart}]

\processaction
  [\currentmoduleparameter{resistor}]
  [european=>\ctikzset{ resistor=european},
   american=>\ctikzset{ resistor=american}]

\processaction
  [\currentmoduleparameter{inductor}]
  [european=>\ctikzset{ inductor=european},
   american=>\ctikzset{ inductor=american},
   cute=>\ctikzset{ inductor=cute}]

\processaction
  [\currentmoduleparameter{diode}]
  [full=>\ctikzset{ diode=full},
   empty=>\ctikzset{ diode=empty}]

\processaction
  [\currentmoduleparameter{logic}]
  [european=>\ctikzset{ logic ports=european},
   american=>\ctikzset{ logic ports=american}]

% hm, we have units built in and in mkii one can load the units module
% ... always been so ...

\processaction
  [\currentmoduleparameter{siunitx}]
  [true=>\def\SI    #1#2{#1\,#2}
         \def\ampere    {\rm{A}}
         \def\volt      {\rm{V}}
         \def\ohm       {\Omega}
         \def\siemens   {\rm{S}}
         \def\farad     {\rm{F}}
         \def\henry     {\rm{H}}
         \def\second    {\rm{s}}
         \def\coulomb   {\rm{C}}
         \def\siemens   {\rm{S}}
         \def\radians   {\rm{rad}}
         \def\milli     {\rm{m}}
         \def\micro     {\mu}
         \def\nano      {\rm{n}}
         \def\pico      {\rm{p}}
         \def\kilo      {\rm{k}}
         \def\mega      {\rm{M}}
         \def\giga      {\rm{G}}
         \def\tera      {\rm{T}}]

\unprotect

\processaction
  [\currentmoduleparameter{arrowmos}]
  [true=>\pgf@circuit@mos@arrowstrue,
   false=>\pgf@circuit@mos@arrowsfalse]

\protect

\ctikzset{tripoles/op amp/font/.initial=\switchtobodyfont[small]}

\aliased\let\stopcircuitikz\relax

\permanent\protected\def\startcircuitikz#1\stopcircuitikz
  {\starttikzpicture#1\stoptikzpicture}

\stopmodule

\endinput

[-- Attachment #3: m-tikz.mkxl --]
[-- Type: text/plain, Size: 3295 bytes --]

%D \module
%D   [       file=m-tikz,
%D        version=2021.07.12,
%D          title=\CONTEXT\ Extra Modules,
%D       subtitle=TIKZ support,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D A fixed variant of the t-tikz module distributed with tikz. For
%D practical reasons per 2021 we split the module for \MKIV\ and
%D \LMTX. (Maybe some day I'll optimize TIKZ a bit.)

\ifdefined\pdflastxpos \else
    \unprotect
        \frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax}
        \frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax}
    \protect
\fi

\permanent\protected\def\starttikzinput
  {\pushoverloadmode
   \pushcatcodetable
   \setcatcodetable\texcatcodes
   \unprotect
   \catcode`\@=11
   \catcode`\|=12
   \catcode`\!=12
   \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzinput
  {\autoparagraphmode\plusone
   \protect
   \popcatcodetable
   \popoverloadmode}

\permanent\protected\def\tikzinputfile#1%
  {\starttikzinput
   \input{#1}
   \stoptikzinput}

\tikzinputfile{t-pgf.tex}
\tikzinputfile{t-pgffor.tex}
\tikzinputfile{tikz.code.tex}

\permanent\protected\def\tikzerrormessage#1#2#3%
  {\writestatus{#1}{#2}}

% For now we need this but we need to educate the user to wrap settings in the
% wrappers. So some day the next line will go. I need to check what commands are
% possible outside a picture.

\overloadmode\zerocount

\permanent\protected\def\starttikzsettings
  {\pushoverloadmode}

\permanent\protected\def\stoptikzsettings
  {\popoverloadmode}

\permanent\protected\def\starttikzpicture
  {\dontleavehmode
   \hcontainer\bgroup
   \autoparagraphmode\zerocount
 % \pushoverloadmode
   \ifdefined\PackageError\else \let\PackageError\tikzerrormessage \fi
   \tikzpicture}

\permanent\protected\def\stoptikzpicture
  {\endtikzpicture
 % \popoverloadmode
   \egroup}

\ifx\pgfdefined\undefined

    \let\pgfdefined\relax

    \ifx\pgfcoredefined\undefined

        \let\pgfcoredefined\relax

        \tikzinputfile{pgfsys.code.tex}
        \tikzinputfile{pgfsyssoftpath.code.tex}
        \tikzinputfile{pgfsysprotocol.code.tex}
        \tikzinputfile{pgfcore.code.tex}

        \let\startpgfpicture             \pgfpicture              \let\stoppgfpicture            \endpgfpicture
        \let\startpgfscope               \pgfscope                \let\stoppgfscope              \endpgfscope
        \let\startpgflowlevelscope       \pgflowlevelscope        \let\stoppgflowlevelscope      \endpgflowlevelscope
        \let\startpgfinterruptpath       \pgfinterruptpath        \let\stoppgfinterruptpath      \endpgfinterruptpath
        \let\startpgfinterruptpicture    \pgfinterruptpicture     \let\stoppgfinterruptpicture   \endpgfinterruptpicture
        \let\startpgfinterruptboundingbox\pgfinterruptboundinbox  \let\stoppgfinterruptboudingbox\endpgfinterruptboundingbox

    \fi

    \let\normalusepgfmodule\usepgfmodule

    \protected\def\usepgfmodule[#1]%
      {\starttikzinput
       \normalusepgfmodule[#1]%
       \stoptikzinput}

    \usepgfmodule[shapes,plot]

\fi

\stopmodule

[-- Attachment #4: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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
  0 siblings, 1 reply; 26+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2021-12-03 22:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf


[-- Attachment #1.1: Type: text/plain, Size: 270 bytes --]

The result of testing, different error messages in MKIV and LMTX.

The attached files belongs to LMTX run with the attached m-circuitikz.mkxl and m-tikz.mkxl in texmf-local


> 3 dec. 2021 kl. 19:16 skrev Hans Hagen via ntg-context <ntg-context@ntg.nl>:
> 
> 


[-- Attachment #1.2.1: Type: text/html, Size: 449 bytes --]

[-- Attachment #1.2.2: asdf-error.log --]
[-- Type: application/octet-stream, Size: 533 bytes --]

return {
 ["errortype"]=0,
 ["filename"]="/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-local/m-circuitikz.mkxl",
 ["lastcontext"]="\n<line 5.28> \n    \\tikzinputfile\n    {pgfcirc.defines.tex}\n\n",
 ["lastluaerror"]="",
 ["lasttexerror"]="Undefined control sequence \\undefined ",
 ["lasttexhelp"]="The control sequence at the end of the top line of your error message was never\n\\def'ed. You can just continue as I'll forget about whatever was undefined.",
 ["linenumber"]=28,
 ["offset"]=10,
 ["skiplinenumber"]=26,
}

[-- Attachment #1.2.3: Type: text/html, Size: 197 bytes --]

[-- Attachment #1.2.4: asdf.log --]
[-- Type: application/octet-stream, Size: 12742 bytes --]

system          > callbacks > not registering frozen 'local_box_filter'

system          > 
system          > ConTeXt  ver: 2021.10.28 10:19 LMTX  fmt: 2021.10.30  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'

system          > files > jobname './asdf', input './asdf.tex', result './asdf'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct runtime overhead!
open source     > level 1, order 2, name './asdf.tex'
modules         > 'circuitikz' is loaded
open source     > level 2, order 3, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-local/m-circuitikz.mkxl'
modules         > 'tikz' is loaded
open source     > level 3, order 4, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source     > level 4, order 5, name 't-pgf.tex'
loading         > ConTeXt User Module / pgf
open source     > level 5, order 6, name 't-pgfcor.tex'
loading         > ConTeXt User Module / pgfcor
open source     > level 6, order 7, name 't-pgfsys.tex'
loading         > ConTeXt User Module / pgfsys
open source     > level 7, order 8, name 't-pgfrcs.tex'
loading         > ConTeXt User Module / pgfrcs
open source     > level 8, order 9, name 't-pgfmod.tex'
loading         > ConTeXt User Module / pgfmodules
system          > module wrapping error in 'tikz'
close source    > level 8, order 9, name 't-pgfmod.tex'
open source     > level 8, order 10, name 'pgfutil-common.tex'
open source     > level 9, order 11, name 'pgfutil-common-lists.tex'
close source    > level 9, order 11, name 'pgfutil-common-lists.tex'
close source    > level 8, order 11, name 'pgfutil-common.tex'
open source     > level 8, order 12, name 'pgfutil-context.def'
close source    > level 8, order 12, name 'pgfutil-context.def'
open source     > level 8, order 13, name 'pgfrcs.code.tex'
close source    > level 8, order 13, name 'pgfrcs.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 7, order 13, name 't-pgfrcs.tex'
open source     > level 7, order 14, name 'pgfsys.code.tex'
open source     > level 8, order 15, name 'pgfkeys.code.tex'
open source     > level 9, order 16, name 'pgfkeysfiltered.code.tex'
close source    > level 9, order 16, name 'pgfkeysfiltered.code.tex'
close source    > level 8, order 16, name 'pgfkeys.code.tex'
open source     > level 8, order 17, name 'pgf.cfg'
close source    > level 8, order 17, name 'pgf.cfg'
Driver file for pgf: pgfsys-pdftex.def

open source     > level 8, order 18, name 'pgfsys-pdftex.def'
open source     > level 9, order 19, name 'pgfsys-common-pdf.def'
close source    > level 9, order 19, name 'pgfsys-common-pdf.def'
close source    > level 8, order 19, name 'pgfsys-pdftex.def'
close source    > level 7, order 19, name 'pgfsys.code.tex'
open source     > level 7, order 20, name 'pgfsyssoftpath.code.tex'
close source    > level 7, order 20, name 'pgfsyssoftpath.code.tex'
open source     > level 7, order 21, name 'pgfsysprotocol.code.tex'
close source    > level 7, order 21, name 'pgfsysprotocol.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 6, order 21, name 't-pgfsys.tex'
open source     > level 6, order 22, name 'pgfcore.code.tex'
open source     > level 7, order 23, name 'pgfmath.code.tex'
open source     > level 8, order 24, name 'pgfmathcalc.code.tex'
open source     > level 9, order 25, name 'pgfmathutil.code.tex'
fonts           > beware: no fonts are loaded yet, using 'lm mono' in box
close source    > level 9, order 25, name 'pgfmathutil.code.tex'
open source     > level 9, order 26, name 'pgfmathparser.code.tex'
close source    > level 9, order 26, name 'pgfmathparser.code.tex'
open source     > level 9, order 27, name 'pgfmathfunctions.code.tex'
open source     > level 10, order 28, name 'pgfmathfunctions.basic.code.tex'
close source    > level 10, order 28, name 'pgfmathfunctions.basic.code.tex'
open source     > level 10, order 29, name 'pgfmathfunctions.trigonometric.code.tex'
close source    > level 10, order 29, name 'pgfmathfunctions.trigonometric.code.tex'
open source     > level 10, order 30, name 'pgfmathfunctions.random.code.tex'
close source    > level 10, order 30, name 'pgfmathfunctions.random.code.tex'
open source     > level 10, order 31, name 'pgfmathfunctions.comparison.code.tex'
close source    > level 10, order 31, name 'pgfmathfunctions.comparison.code.tex'
open source     > level 10, order 32, name 'pgfmathfunctions.base.code.tex'
close source    > level 10, order 32, name 'pgfmathfunctions.base.code.tex'
open source     > level 10, order 33, name 'pgfmathfunctions.round.code.tex'
close source    > level 10, order 33, name 'pgfmathfunctions.round.code.tex'
open source     > level 10, order 34, name 'pgfmathfunctions.misc.code.tex'
close source    > level 10, order 34, name 'pgfmathfunctions.misc.code.tex'
open source     > level 10, order 35, name 'pgfmathfunctions.integerarithmetics.code.tex'
close source    > level 10, order 35, name 'pgfmathfunctions.integerarithmetics.code.tex'
close source    > level 9, order 35, name 'pgfmathfunctions.code.tex'
close source    > level 8, order 35, name 'pgfmathcalc.code.tex'
open source     > level 8, order 36, name 'pgfmathfloat.code.tex'
close source    > level 8, order 36, name 'pgfmathfloat.code.tex'
close source    > level 7, order 36, name 'pgfmath.code.tex'
open source     > level 7, order 37, name 'pgfcorepoints.code.tex'
close source    > level 7, order 37, name 'pgfcorepoints.code.tex'
open source     > level 7, order 38, name 'pgfcorepathconstruct.code.tex'
close source    > level 7, order 38, name 'pgfcorepathconstruct.code.tex'
open source     > level 7, order 39, name 'pgfcorepathusage.code.tex'
close source    > level 7, order 39, name 'pgfcorepathusage.code.tex'
open source     > level 7, order 40, name 'pgfcorescopes.code.tex'
close source    > level 7, order 40, name 'pgfcorescopes.code.tex'
open source     > level 7, order 41, name 'pgfcoregraphicstate.code.tex'
close source    > level 7, order 41, name 'pgfcoregraphicstate.code.tex'
open source     > level 7, order 42, name 'pgfcoretransformations.code.tex'
close source    > level 7, order 42, name 'pgfcoretransformations.code.tex'
open source     > level 7, order 43, name 'pgfcorequick.code.tex'
close source    > level 7, order 43, name 'pgfcorequick.code.tex'
open source     > level 7, order 44, name 'pgfcoreobjects.code.tex'
close source    > level 7, order 44, name 'pgfcoreobjects.code.tex'
open source     > level 7, order 45, name 'pgfcorepathprocessing.code.tex'
close source    > level 7, order 45, name 'pgfcorepathprocessing.code.tex'
open source     > level 7, order 46, name 'pgfcorearrows.code.tex'
close source    > level 7, order 46, name 'pgfcorearrows.code.tex'
open source     > level 7, order 47, name 'pgfcoreshade.code.tex'
close source    > level 7, order 47, name 'pgfcoreshade.code.tex'
open source     > level 7, order 48, name 'pgfcoreimage.code.tex'
open source     > level 8, order 49, name 'pgfcoreexternal.code.tex'
close source    > level 8, order 49, name 'pgfcoreexternal.code.tex'
close source    > level 7, order 49, name 'pgfcoreimage.code.tex'
open source     > level 7, order 50, name 'pgfcorelayers.code.tex'
close source    > level 7, order 50, name 'pgfcorelayers.code.tex'
open source     > level 7, order 51, name 'pgfcoretransparency.code.tex'
close source    > level 7, order 51, name 'pgfcoretransparency.code.tex'
open source     > level 7, order 52, name 'pgfcorepatterns.code.tex'
close source    > level 7, order 52, name 'pgfcorepatterns.code.tex'
open source     > level 7, order 53, name 'pgfcorerdf.code.tex'
close source    > level 7, order 53, name 'pgfcorerdf.code.tex'
close source    > level 6, order 53, name 'pgfcore.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 5, order 53, name 't-pgfcor.tex'
open source     > level 5, order 54, name 'pgfmoduleshapes.code.tex'
close source    > level 5, order 54, name 'pgfmoduleshapes.code.tex'
open source     > level 5, order 55, name 'pgfmoduleplot.code.tex'
close source    > level 5, order 55, name 'pgfmoduleplot.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 4, order 55, name 't-pgf.tex'
open source     > level 4, order 56, name 't-pgffor.tex'
loading         > ConTeXt User Module / pgffor
open source     > level 5, order 57, name 't-pgfrcs.tex'
loading         > ConTeXt User Module / pgfrcs
system          > module wrapping error in 'tikz'
close source    > level 5, order 57, name 't-pgfrcs.tex'
open source     > level 5, order 58, name 't-pgfkey.tex'
loading         > ConTeXt User Module / pgfkey
open source     > level 6, order 59, name 'pgfkeys.code.tex'
close source    > level 6, order 59, name 'pgfkeys.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 5, order 59, name 't-pgfkey.tex'
open source     > level 5, order 60, name 'pgffor.code.tex'
open source     > level 6, order 61, name 'pgfmath.code.tex'
close source    > level 6, order 61, name 'pgfmath.code.tex'
close source    > level 5, order 61, name 'pgffor.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 4, order 61, name 't-pgffor.tex'
open source     > level 4, order 62, name 'tikz.code.tex'
open source     > level 5, order 63, name 'pgflibraryplothandlers.code.tex'
close source    > level 5, order 63, name 'pgflibraryplothandlers.code.tex'
open source     > level 5, order 64, name 'pgfmodulematrix.code.tex'
close source    > level 5, order 64, name 'pgfmodulematrix.code.tex'
open source     > level 5, order 65, name 'tikzlibrarytopaths.code.tex'
close source    > level 5, order 65, name 'tikzlibrarytopaths.code.tex'
close source    > level 4, order 65, name 'tikz.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 3, order 65, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source     > level 3, order 66, name 'tikzlibrarycalc.code.tex'
close source    > level 3, order 66, name 'tikzlibrarycalc.code.tex'
open source     > level 3, order 67, name 'pgflibraryarrows.meta.code.tex'
close source    > level 3, order 67, name 'pgflibraryarrows.meta.code.tex'
open source     > level 3, order 68, name 'tikzlibrarybending.code.tex'
open source     > level 4, order 69, name 'pgfmodulebending.code.tex'
open source     > level 5, order 70, name 'pgfmodulenonlineartransformations.code.tex'
close source    > level 5, order 70, name 'pgfmodulenonlineartransformations.code.tex'
open source     > level 5, order 71, name 'pgflibrarycurvilinear.code.tex'
close source    > level 5, order 71, name 'pgflibrarycurvilinear.code.tex'
close source    > level 4, order 71, name 'pgfmodulebending.code.tex'
close source    > level 3, order 71, name 'tikzlibrarybending.code.tex'
open source     > level 3, order 72, name 'tikzlibraryfpu.code.tex'
open source     > level 4, order 73, name 'pgflibraryfpu.code.tex'
close source    > level 4, order 73, name 'pgflibraryfpu.code.tex'
close source    > level 3, order 73, name 'tikzlibraryfpu.code.tex'
tex error       > tex error on line 28 in file /Users/jan-erikhagglof/context/context-osx-64/tex/texmf-local/m-circuitikz.mkxl: Undefined control sequence \undefined 

<line 5.28> 
    \tikzinputfile
    {pgfcirc.defines.tex}

18     
19     \startmodule[circuitikz]
20     
21     \def\pgfcircversion     {1.4.4}
22     \def\pgfcircversiondate {2021/10/31}
23     
24     \usetikzlibrary[calc]
25     \usetikzlibrary[arrows.meta, bending]
26     \usetikzlibrary[fpu] % may be needed for use fpu reciprocal (v1.0.1)
27     
28 >>  \tikzinputfile{pgfcirc.defines.tex}
29     \tikzinputfile{pgfcircutils.tex}
30     \tikzinputfile{pgfcircpath.tex}
31     
32     \tikzinputfile{pgfcircshapes.tex}
33     \tikzinputfile{pgfcircmonopoles.tex}
34     \tikzinputfile{pgfcircbipoles.tex}
35     \tikzinputfile{pgfcirctripoles.tex}
36     \tikzinputfile{pgfcircquadpoles.tex}
37     \tikzinputfile{pgfcircmultipoles.tex}
38     
The control sequence at the end of the top line of your error message was never
\def'ed. You can just continue as I'll forget about whatever was undefined.

[-- Attachment #1.2.5: Type: text/html, Size: 1009 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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
  0 siblings, 1 reply; 26+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-03 23:27 UTC (permalink / raw)
  To: Jan-Erik Hägglöf via ntg-context; +Cc: Aditya Mahajan

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]


On Fri, 3 Dec 2021, Jan-Erik Hägglöf via ntg-context wrote:

> The result of testing, different error messages in MKIV and LMTX.
> 
> The attached files belongs to LMTX run with the attached m-circuitikz.mkxl and m-tikz.mkxl in texmf-local

Not placed at the right place. From your log file:

open source     > level 2, order 3, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-local/m-circuitikz.mkxl'

(I am surprised it gets found! The should be texmf-local/tex/context/ sub-dir)

open source     > level 3, order 4, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'

(I am guessing that this is the old m-tikz.mkxl).

For such experiments, it is simplest if you place the files in the current directory.

Aditya

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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
  0 siblings, 1 reply; 26+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2021-12-04  9:05 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

Am 04.12.21 um 00:27 schrieb Aditya Mahajan via ntg-context:
> 
> Not placed at the right place. From your log file:
> 
> open source     > level 2, order 3, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-local/m-circuitikz.mkxl'
> 
> (I am surprised it gets found! The should be texmf-local/tex/context/ sub-dir)

Well, if the database is made, ConTeXt will find files in *all* the 
texmf trees.

BTW OT, I wouldn’t suggest to use texmf-local or texmf-project; while 
these are never overwritten by an update, you must copy them to a new 
installation. I prefer ~/texmf for my personal fonts, modules etc., 
because it’s independent of the ConTeXt installation I’m currently 
using, while it’s still a valid texmf tree searched by default.

Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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-06  9:02                 ` Aditya Mahajan via ntg-context
  0 siblings, 2 replies; 26+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2021-12-04 21:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

I did replace the attached .mkxl files now in the correct directory tree together with the rest of all m-xyz.mkxl module files.

The same error message appears and i’m back at square one.


[-- Attachment #2: asdf-error.log --]
[-- Type: application/octet-stream, Size: 489 bytes --]

return {
 ["errortype"]=0,
 ["filename"]="pgfcircutils.tex",
 ["lastcontext"]="\n<line 6.103> \n    \\pgfutil@protected\n    \\def\\ctikzsubcircuitdef#1#2#3{%\n\n",
 ["lastluaerror"]="",
 ["lasttexerror"]="Undefined control sequence \\undefined ",
 ["lasttexhelp"]="The control sequence at the end of the top line of your error message was never\n\\def'ed. You can just continue as I'll forget about whatever was undefined.",
 ["linenumber"]=103,
 ["offset"]=10,
 ["skiplinenumber"]=102,
}

[-- Attachment #3: asdf.log --]
[-- Type: application/octet-stream, Size: 12230 bytes --]

system          > callbacks > not registering frozen 'local_box_filter'

system          > 
system          > ConTeXt  ver: 2021.10.28 10:19 LMTX  fmt: 2021.10.30  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'

system          > files > jobname './asdf', input './asdf.tex', result './asdf'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct runtime overhead!
open source     > level 1, order 2, name './asdf.tex'
modules         > 'circuitikz' is loaded
open source     > level 2, order 3, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-circuitikz.mkxl'
modules         > 'tikz' is loaded
open source     > level 3, order 4, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source     > level 4, order 5, name 't-pgf.tex'
loading         > ConTeXt User Module / pgf
open source     > level 5, order 6, name 't-pgfcor.tex'
loading         > ConTeXt User Module / pgfcor
open source     > level 6, order 7, name 't-pgfsys.tex'
loading         > ConTeXt User Module / pgfsys
open source     > level 7, order 8, name 't-pgfrcs.tex'
loading         > ConTeXt User Module / pgfrcs
open source     > level 8, order 9, name 't-pgfmod.tex'
loading         > ConTeXt User Module / pgfmodules
system          > module wrapping error in 'tikz'
close source    > level 8, order 9, name 't-pgfmod.tex'
open source     > level 8, order 10, name 'pgfutil-common.tex'
open source     > level 9, order 11, name 'pgfutil-common-lists.tex'
close source    > level 9, order 11, name 'pgfutil-common-lists.tex'
close source    > level 8, order 11, name 'pgfutil-common.tex'
open source     > level 8, order 12, name 'pgfutil-context.def'
close source    > level 8, order 12, name 'pgfutil-context.def'
open source     > level 8, order 13, name 'pgfrcs.code.tex'
close source    > level 8, order 13, name 'pgfrcs.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 7, order 13, name 't-pgfrcs.tex'
open source     > level 7, order 14, name 'pgfsys.code.tex'
open source     > level 8, order 15, name 'pgfkeys.code.tex'
open source     > level 9, order 16, name 'pgfkeysfiltered.code.tex'
close source    > level 9, order 16, name 'pgfkeysfiltered.code.tex'
close source    > level 8, order 16, name 'pgfkeys.code.tex'
open source     > level 8, order 17, name 'pgf.cfg'
close source    > level 8, order 17, name 'pgf.cfg'
Driver file for pgf: pgfsys-pdftex.def

open source     > level 8, order 18, name 'pgfsys-pdftex.def'
open source     > level 9, order 19, name 'pgfsys-common-pdf.def'
close source    > level 9, order 19, name 'pgfsys-common-pdf.def'
close source    > level 8, order 19, name 'pgfsys-pdftex.def'
close source    > level 7, order 19, name 'pgfsys.code.tex'
open source     > level 7, order 20, name 'pgfsyssoftpath.code.tex'
close source    > level 7, order 20, name 'pgfsyssoftpath.code.tex'
open source     > level 7, order 21, name 'pgfsysprotocol.code.tex'
close source    > level 7, order 21, name 'pgfsysprotocol.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 6, order 21, name 't-pgfsys.tex'
open source     > level 6, order 22, name 'pgfcore.code.tex'
open source     > level 7, order 23, name 'pgfmath.code.tex'
open source     > level 8, order 24, name 'pgfmathcalc.code.tex'
open source     > level 9, order 25, name 'pgfmathutil.code.tex'
fonts           > beware: no fonts are loaded yet, using 'lm mono' in box
close source    > level 9, order 25, name 'pgfmathutil.code.tex'
open source     > level 9, order 26, name 'pgfmathparser.code.tex'
close source    > level 9, order 26, name 'pgfmathparser.code.tex'
open source     > level 9, order 27, name 'pgfmathfunctions.code.tex'
open source     > level 10, order 28, name 'pgfmathfunctions.basic.code.tex'
close source    > level 10, order 28, name 'pgfmathfunctions.basic.code.tex'
open source     > level 10, order 29, name 'pgfmathfunctions.trigonometric.code.tex'
close source    > level 10, order 29, name 'pgfmathfunctions.trigonometric.code.tex'
open source     > level 10, order 30, name 'pgfmathfunctions.random.code.tex'
close source    > level 10, order 30, name 'pgfmathfunctions.random.code.tex'
open source     > level 10, order 31, name 'pgfmathfunctions.comparison.code.tex'
close source    > level 10, order 31, name 'pgfmathfunctions.comparison.code.tex'
open source     > level 10, order 32, name 'pgfmathfunctions.base.code.tex'
close source    > level 10, order 32, name 'pgfmathfunctions.base.code.tex'
open source     > level 10, order 33, name 'pgfmathfunctions.round.code.tex'
close source    > level 10, order 33, name 'pgfmathfunctions.round.code.tex'
open source     > level 10, order 34, name 'pgfmathfunctions.misc.code.tex'
close source    > level 10, order 34, name 'pgfmathfunctions.misc.code.tex'
open source     > level 10, order 35, name 'pgfmathfunctions.integerarithmetics.code.tex'
close source    > level 10, order 35, name 'pgfmathfunctions.integerarithmetics.code.tex'
close source    > level 9, order 35, name 'pgfmathfunctions.code.tex'
close source    > level 8, order 35, name 'pgfmathcalc.code.tex'
open source     > level 8, order 36, name 'pgfmathfloat.code.tex'
close source    > level 8, order 36, name 'pgfmathfloat.code.tex'
close source    > level 7, order 36, name 'pgfmath.code.tex'
open source     > level 7, order 37, name 'pgfcorepoints.code.tex'
close source    > level 7, order 37, name 'pgfcorepoints.code.tex'
open source     > level 7, order 38, name 'pgfcorepathconstruct.code.tex'
close source    > level 7, order 38, name 'pgfcorepathconstruct.code.tex'
open source     > level 7, order 39, name 'pgfcorepathusage.code.tex'
close source    > level 7, order 39, name 'pgfcorepathusage.code.tex'
open source     > level 7, order 40, name 'pgfcorescopes.code.tex'
close source    > level 7, order 40, name 'pgfcorescopes.code.tex'
open source     > level 7, order 41, name 'pgfcoregraphicstate.code.tex'
close source    > level 7, order 41, name 'pgfcoregraphicstate.code.tex'
open source     > level 7, order 42, name 'pgfcoretransformations.code.tex'
close source    > level 7, order 42, name 'pgfcoretransformations.code.tex'
open source     > level 7, order 43, name 'pgfcorequick.code.tex'
close source    > level 7, order 43, name 'pgfcorequick.code.tex'
open source     > level 7, order 44, name 'pgfcoreobjects.code.tex'
close source    > level 7, order 44, name 'pgfcoreobjects.code.tex'
open source     > level 7, order 45, name 'pgfcorepathprocessing.code.tex'
close source    > level 7, order 45, name 'pgfcorepathprocessing.code.tex'
open source     > level 7, order 46, name 'pgfcorearrows.code.tex'
close source    > level 7, order 46, name 'pgfcorearrows.code.tex'
open source     > level 7, order 47, name 'pgfcoreshade.code.tex'
close source    > level 7, order 47, name 'pgfcoreshade.code.tex'
open source     > level 7, order 48, name 'pgfcoreimage.code.tex'
open source     > level 8, order 49, name 'pgfcoreexternal.code.tex'
close source    > level 8, order 49, name 'pgfcoreexternal.code.tex'
close source    > level 7, order 49, name 'pgfcoreimage.code.tex'
open source     > level 7, order 50, name 'pgfcorelayers.code.tex'
close source    > level 7, order 50, name 'pgfcorelayers.code.tex'
open source     > level 7, order 51, name 'pgfcoretransparency.code.tex'
close source    > level 7, order 51, name 'pgfcoretransparency.code.tex'
open source     > level 7, order 52, name 'pgfcorepatterns.code.tex'
close source    > level 7, order 52, name 'pgfcorepatterns.code.tex'
open source     > level 7, order 53, name 'pgfcorerdf.code.tex'
close source    > level 7, order 53, name 'pgfcorerdf.code.tex'
close source    > level 6, order 53, name 'pgfcore.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 5, order 53, name 't-pgfcor.tex'
open source     > level 5, order 54, name 'pgfmoduleshapes.code.tex'
close source    > level 5, order 54, name 'pgfmoduleshapes.code.tex'
open source     > level 5, order 55, name 'pgfmoduleplot.code.tex'
close source    > level 5, order 55, name 'pgfmoduleplot.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 4, order 55, name 't-pgf.tex'
open source     > level 4, order 56, name 't-pgffor.tex'
loading         > ConTeXt User Module / pgffor
open source     > level 5, order 57, name 't-pgfrcs.tex'
loading         > ConTeXt User Module / pgfrcs
system          > module wrapping error in 'tikz'
close source    > level 5, order 57, name 't-pgfrcs.tex'
open source     > level 5, order 58, name 't-pgfkey.tex'
loading         > ConTeXt User Module / pgfkey
open source     > level 6, order 59, name 'pgfkeys.code.tex'
close source    > level 6, order 59, name 'pgfkeys.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 5, order 59, name 't-pgfkey.tex'
open source     > level 5, order 60, name 'pgffor.code.tex'
open source     > level 6, order 61, name 'pgfmath.code.tex'
close source    > level 6, order 61, name 'pgfmath.code.tex'
close source    > level 5, order 61, name 'pgffor.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 4, order 61, name 't-pgffor.tex'
open source     > level 4, order 62, name 'tikz.code.tex'
open source     > level 5, order 63, name 'pgflibraryplothandlers.code.tex'
close source    > level 5, order 63, name 'pgflibraryplothandlers.code.tex'
open source     > level 5, order 64, name 'pgfmodulematrix.code.tex'
close source    > level 5, order 64, name 'pgfmodulematrix.code.tex'
open source     > level 5, order 65, name 'tikzlibrarytopaths.code.tex'
close source    > level 5, order 65, name 'tikzlibrarytopaths.code.tex'
close source    > level 4, order 65, name 'tikz.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 3, order 65, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source     > level 3, order 66, name 'tikzlibrarycalc.code.tex'
close source    > level 3, order 66, name 'tikzlibrarycalc.code.tex'
open source     > level 3, order 67, name 'pgflibraryarrows.meta.code.tex'
close source    > level 3, order 67, name 'pgflibraryarrows.meta.code.tex'
open source     > level 3, order 68, name 'tikzlibrarybending.code.tex'
open source     > level 4, order 69, name 'pgfmodulebending.code.tex'
open source     > level 5, order 70, name 'pgfmodulenonlineartransformations.code.tex'
close source    > level 5, order 70, name 'pgfmodulenonlineartransformations.code.tex'
open source     > level 5, order 71, name 'pgflibrarycurvilinear.code.tex'
close source    > level 5, order 71, name 'pgflibrarycurvilinear.code.tex'
close source    > level 4, order 71, name 'pgfmodulebending.code.tex'
close source    > level 3, order 71, name 'tikzlibrarybending.code.tex'
open source     > level 3, order 72, name 'tikzlibraryfpu.code.tex'
open source     > level 4, order 73, name 'pgflibraryfpu.code.tex'
close source    > level 4, order 73, name 'pgflibraryfpu.code.tex'
close source    > level 3, order 73, name 'tikzlibraryfpu.code.tex'
open source     > level 3, order 74, name 'pgfcirc.defines.tex'
close source    > level 3, order 74, name 'pgfcirc.defines.tex'
open source     > level 3, order 75, name 'pgfcircutils.tex'
tex error       > tex error on line 103 in file pgfcircutils.tex: Undefined control sequence \undefined 

<line 6.103> 
    \pgfutil@protected
    \def\ctikzsubcircuitdef#1#2#3{%

<empty file>
The control sequence at the end of the top line of your error message was never
\def'ed. You can just continue as I'll forget about whatever was undefined.

[-- Attachment #4: asdf.tex --]
[-- Type: application/octet-stream, Size: 193 bytes --]

\usemodule[circuitikz]
%\usemodule[tikz]

\starttext

%\starttikzpicture
%   \draw (0,2) -- (2,2) ;
%\stoptikzpicture

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

\stoptext


[-- Attachment #5: Type: text/plain, Size: 1403 bytes --]




> 4 dec. 2021 kl. 10:05 skrev Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>:
> 
> Am 04.12.21 um 00:27 schrieb Aditya Mahajan via ntg-context:
>> Not placed at the right place. From your log file:
>> open source     > level 2, order 3, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-local/m-circuitikz.mkxl'
>> (I am surprised it gets found! The should be texmf-local/tex/context/ sub-dir)
> 
> Well, if the database is made, ConTeXt will find files in *all* the texmf trees.
> 
> BTW OT, I wouldn’t suggest to use texmf-local or texmf-project; while these are never overwritten by an update, you must copy them to a new installation. I prefer ~/texmf for my personal fonts, modules etc., because it’s independent of the ConTeXt installation I’m currently using, while it’s still a valid texmf tree searched by default.
> 
> Hraban
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #6: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-04 21:37               ` Jan-Erik Hägglöf via ntg-context
@ 2021-12-05 15:35                 ` 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
  1 sibling, 2 replies; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-05 15:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 12/4/2021 10:37 PM, Jan-Erik Hägglöf via ntg-context wrote:
> I did replace the attached .mkxl files now in the correct directory tree together with the rest of all m-xyz.mkxl module files.
> 
> The same error message appears and i’m back at square one.
hm, here i did:

- install tikz from ctan
- install curcuitikz from ctan
- copy the m-files to context/base ...

ran mtxrun --generate

there is not much more I can do (esp if it also runs ok at Aditya's place)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-05 15:35                 ` [DKIM] " Hans Hagen via ntg-context
@ 2021-12-05 20:45                   ` Jan-Erik Hägglöf via ntg-context
  2021-12-06  6:54                   ` [DKIM] " Aditya Mahajan via ntg-context
  1 sibling, 0 replies; 26+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2021-12-05 20:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf

Ok so I did all the tips, installed from ctan without any success so it is interesting to know how it worked out for some and not for me.

Well that is a good question.

Thanks for your help anyway

Regards

Jan-Erik

> 5 dec. 2021 kl. 16:35 skrev Hans Hagen <j.hagen@xs4all.nl>:
> 
> On 12/4/2021 10:37 PM, Jan-Erik Hägglöf via ntg-context wrote:
>> I did replace the attached .mkxl files now in the correct directory tree together with the rest of all m-xyz.mkxl module files.
>> The same error message appears and i’m back at square one.
> hm, here i did:
> 
> - install tikz from ctan
> - install curcuitikz from ctan
> - copy the m-files to context/base ...
> 
> ran mtxrun --generate
> 
> there is not much more I can do (esp if it also runs ok at Aditya's place)
> 
> Hans
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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                   ` Aditya Mahajan via ntg-context
  1 sibling, 0 replies; 26+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-06  6:54 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Aditya Mahajan

[-- Attachment #1: Type: text/plain, Size: 919 bytes --]

On Sun, 5 Dec 2021, Hans Hagen via ntg-context wrote:

> On 12/4/2021 10:37 PM, Jan-Erik Hägglöf via ntg-context wrote:
> > I did replace the attached .mkxl files now in the correct directory tree
> together with the rest of all m-xyz.mkxl module files.
> > 
> > The same error message appears and i’m back at square one.
> hm, here i did:
> 
> - install tikz from ctan
> - install curcuitikz from ctan
> - copy the m-files to context/base ...
> 
> ran mtxrun --generate
> 
> there is not much more I can do (esp if it also runs ok at Aditya's place)

Things are not working correctly at my end either. The whole tikz/pgf code needs some cleaning up. There are a bunch of errors of the form:

system          > module wrapping error in 'tikz'

because the many of the modules in tikz have a \stopmodule but not a \startmodule. I'll try to clean it up, but tikz is a rabbit hole ....

Aditya

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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-06  9:02                 ` Aditya Mahajan via ntg-context
  2021-12-06 17:39                   ` Aditya Mahajan via ntg-context
  1 sibling, 1 reply; 26+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-06  9:02 UTC (permalink / raw)
  To: Jan-Erik Hägglöf via ntg-context; +Cc: Aditya Mahajan

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

On Sat, 4 Dec 2021, Jan-Erik Hägglöf via ntg-context wrote:

> I did replace the attached .mkxl files now in the correct directory tree together with the rest of all m-xyz.mkxl module files.
> 
> The same error message appears and i’m back at square one.

After a bit of digging, I think that you are not using the latest version of tikz. In particular, in your log messages, there are a bunch of messages like

    system          > module wrapping error in 'tikz'

while these errors have been fixed in the latest release on ctan. 

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.

Aditya


[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-06  9:02                 ` Aditya Mahajan via ntg-context
@ 2021-12-06 17:39                   ` Aditya Mahajan via ntg-context
  2021-12-06 19:30                     ` Hans Hagen via ntg-context
                                       ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-06 17:39 UTC (permalink / raw)
  To: Aditya Mahajan via ntg-context; +Cc: Aditya Mahajan

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-06 17:39                   ` Aditya Mahajan via ntg-context
@ 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-13 20:08                     ` Aditya Mahajan via ntg-context
  2 siblings, 0 replies; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-06 19:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

[-- Attachment #1: Type: text/plain, Size: 3520 bytes --]

On 12/6/2021 6:39 PM, 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.
> 
> \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

different error here ... i need to load more files

> 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.

don't worry ... i'm even less sure ... one needs a bit different mindset 
for that kind of tex code (all can be fixed i guess but when it's not 
context specific it makes more sense to let the maintainer do it)

ths only difference wrt tikz between mkiv and mkxl is that we have 
different defaults wrt par handling (afaik both have the same catcode 
settings here) and i don't think tikz uses anything low level context

> @Hans, does the above code work correctly for you? If so, then we can wait until the next upload and test again.
with the attached:

\usemodule[m][circuitikz]

\starttext
\starttikzsettings % to be sure
\ctikzset{resistor=american}
\stoptikzsettings
\stoptext

that works (tons of files loaded) here but nothing graphic

(for those whio try: make sure that the t-* variants are gone)

i see it loading other t-* files so maybe we should more that code to 
the m-* files too ... easier to maintain that way .. and if we have a 
few (not too slow) test files in the test suite it's easier to see when 
/ why something fails

if it doesn't at your end we need to define 'how to install the right 
(circuit)tikz stuff' and 'from where'

(btw, does it all work ok in mkiv? after all, that hasn't changed for a 
while)

Hans


Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: m-tikz.mkxl --]
[-- Type: text/plain, Size: 3363 bytes --]

%D \module
%D   [       file=m-tikz,
%D        version=2021.07.12,
%D          title=\CONTEXT\ Extra Modules,
%D       subtitle=TIKZ support,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D A fixed variant of the t-tikz module distributed with tikz. For
%D practical reasons per 2021 we split the module for \MKIV\ and
%D \LMTX. (Maybe some day I'll optimize TIKZ a bit.)

\ifdefined\pdflastxpos \else
    \unprotect
        \frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax}
        \frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax}
    \protect
\fi

\permanent\protected\def\starttikzinput
  {\pushoverloadmode
   \pushcatcodetable
   \setcatcodetable\texcatcodes
   \unprotect
   \catcode`\@=11
   \catcode`\|=12
   \catcode`\!=12
   \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzinput
  {\autoparagraphmode\plusone
   \protect
   \popcatcodetable
   \popoverloadmode}

\permanent\protected\def\tikzinputfile#1%
  {\starttikzinput
   \input{#1}\relax
   \stoptikzinput}

\tikzinputfile{t-pgf.tex}
\tikzinputfile{t-pgffor.tex}
\tikzinputfile{tikz.code.tex}

\permanent\protected\def\tikzerrormessage#1#2#3%
  {\writestatus{#1}{#2}}

% For now we need this but we need to educate the user to wrap settings in the
% wrappers. So some day the next line will go. I need to check what commands are
% possible outside a picture.

\overloadmode\zerocount

\permanent\protected\def\starttikzsettings
  {\pushoverloadmode
   \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzsettings
  {\autoparagraphmode\plusone
   \popoverloadmode}

\permanent\protected\def\starttikzpicture
  {\dontleavehmode
   \hcontainer\bgroup
   \autoparagraphmode\zerocount
 % \pushoverloadmode
   \ifdefined\PackageError\else \let\PackageError\tikzerrormessage \fi
   \tikzpicture}

\permanent\protected\def\stoptikzpicture
  {\endtikzpicture
 % \popoverloadmode
   \egroup}

\ifx\pgfdefined\undefined

    \let\pgfdefined\relax

    \ifx\pgfcoredefined\undefined

        \let\pgfcoredefined\relax

        \tikzinputfile{pgfsys.code.tex}
        \tikzinputfile{pgfsyssoftpath.code.tex}
        \tikzinputfile{pgfsysprotocol.code.tex}
        \tikzinputfile{pgfcore.code.tex}

        \let\startpgfpicture             \pgfpicture              \let\stoppgfpicture            \endpgfpicture
        \let\startpgfscope               \pgfscope                \let\stoppgfscope              \endpgfscope
        \let\startpgflowlevelscope       \pgflowlevelscope        \let\stoppgflowlevelscope      \endpgflowlevelscope
        \let\startpgfinterruptpath       \pgfinterruptpath        \let\stoppgfinterruptpath      \endpgfinterruptpath
        \let\startpgfinterruptpicture    \pgfinterruptpicture     \let\stoppgfinterruptpicture   \endpgfinterruptpicture
        \let\startpgfinterruptboundingbox\pgfinterruptboundinbox  \let\stoppgfinterruptboudingbox\endpgfinterruptboundingbox

    \fi

    \let\normalusepgfmodule\usepgfmodule

    \protected\def\usepgfmodule[#1]%
      {\starttikzinput
       \normalusepgfmodule[#1]%
       \stoptikzinput}

    \usepgfmodule[shapes,plot]

\fi

\stopmodule

[-- Attachment #3: m-circuitikz.mkxl --]
[-- Type: text/plain, Size: 3741 bytes --]

%D \module
%D   [       file=m-circuitikz,
%D        version=2021.12.03,
%D          title=\CONTEXT\ Extra Modules,
%D       subtitle=CURCUITIKZ support,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D A fixed variant of the t-curcuitikz module distributed with tikz. This one
%D is for \LMTX.

\usemodule[m][tikz]

\startmodule[circuitikz]

\def\pgfcircversion     {1.4.4}
\def\pgfcircversiondate {2021/10/31}

\usetikzlibrary[calc]
\usetikzlibrary[arrows.meta, bending]
\usetikzlibrary[fpu] % may be needed for use fpu reciprocal (v1.0.1)

\tikzinputfile{pgfcirc.defines.tex}
\tikzinputfile{pgfcircutils.tex}
\tikzinputfile{pgfcircpath.tex}

\tikzinputfile{pgfcircshapes.tex}
\tikzinputfile{pgfcircmonopoles.tex}
\tikzinputfile{pgfcircbipoles.tex}
\tikzinputfile{pgfcirctripoles.tex}
\tikzinputfile{pgfcircquadpoles.tex}
\tikzinputfile{pgfcircmultipoles.tex}

\tikzinputfile{pgfcirclabel.tex}
\tikzinputfile{pgfcircvoltage.tex}
\tikzinputfile{pgfcirccurrent.tex}
\tikzinputfile{pgfcircflow.tex}

% defaults

\setupmodule
  [current=european,
   voltage=european,
   resistor=american,
   inductor=cute,
   logic=american,
   siunitx=true,
   arrowmos=false]

% can be done nicer ... todo

\processaction
  [\currentmoduleparameter{voltage}]
  [european=>\ctikzset{voltage=european},
   american=>\ctikzset{voltage=american}]

\processaction
  [\currentmoduleparameter{current}]
  [european=>\ctikzset{ current=european},
   american=>\ctikzset{ current=american}]

\processaction
  [\currentmoduleparameter{label}]
  [straight=>\ctikzset{label/align = straight},
   align=>\ctikzset{label/align = rotate},
   smart=>\ctikzset{label/align = smart}]

\processaction
  [\currentmoduleparameter{resistor}]
  [european=>\ctikzset{ resistor=european},
   american=>\ctikzset{ resistor=american}]

\processaction
  [\currentmoduleparameter{inductor}]
  [european=>\ctikzset{ inductor=european},
   american=>\ctikzset{ inductor=american},
   cute=>\ctikzset{ inductor=cute}]

\processaction
  [\currentmoduleparameter{diode}]
  [full=>\ctikzset{ diode=full},
   empty=>\ctikzset{ diode=empty}]

\processaction
  [\currentmoduleparameter{logic}]
  [european=>\ctikzset{ logic ports=european},
   american=>\ctikzset{ logic ports=american}]

% hm, we have units built in and in mkii one can load the units module
% ... always been so ...

\processaction
  [\currentmoduleparameter{siunitx}]
  [true=>\def\SI    #1#2{#1\,#2}
         \def\ampere    {\rm{A}}
         \def\volt      {\rm{V}}
         \def\ohm       {\Omega}
         \def\siemens   {\rm{S}}
         \def\farad     {\rm{F}}
         \def\henry     {\rm{H}}
         \def\second    {\rm{s}}
         \def\coulomb   {\rm{C}}
         \def\siemens   {\rm{S}}
         \def\radians   {\rm{rad}}
         \def\milli     {\rm{m}}
         \def\micro     {\mu}
         \def\nano      {\rm{n}}
         \def\pico      {\rm{p}}
         \def\kilo      {\rm{k}}
         \def\mega      {\rm{M}}
         \def\giga      {\rm{G}}
         \def\tera      {\rm{T}}]

\unprotect

\processaction
  [\currentmoduleparameter{arrowmos}]
  [true=>\pgf@circuit@mos@arrowstrue,
   false=>\pgf@circuit@mos@arrowsfalse]

\protect

\ctikzset{tripoles/op amp/font/.initial=\switchtobodyfont[small]}

\aliased\let\stopcircuitikz\relax

\permanent\protected\def\startcircuitikz#1\stopcircuitikz
  {\starttikzpicture#1\stoptikzpicture}

\stopmodule

\endinput

[-- Attachment #4: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-06 17:39                   ` Aditya Mahajan via ntg-context
  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
  2 siblings, 2 replies; 26+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2021-12-06 20:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf

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 <ntg-context@ntg.nl>:
> 
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  2021-12-06 20:49                     ` Jan-Erik Hägglöf via ntg-context
@ 2021-12-07  8:48                       ` Hans Hagen via ntg-context
  2021-12-08  5:30                       ` Aditya Mahajan via ntg-context
  1 sibling, 0 replies; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-07  8:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 12/6/2021 9:49 PM, Jan-Erik Hägglöf via ntg-context wrote:
> 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?

i'm not sure how that gets updated but as tikz is a constantly moving i 
just got it from ctan (for testing, i don't depend on it so it's not 
critital what i install)

> If I test it under mkiv do I need a separate install?

no, the lmtx installer also installs mkiv but you can try the garden 
mkiv installation and then just replace tikz and circuitikz in the 
modules section with the latest from ctan

> 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.

indeed, but you need to make

tex/texmf-modules/tex

and then unzip the (circuit)tikz zips from ctan there and run "mtxrun 
--generate" afterwards

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [DKIM] Re: [DKIM] circuitikz module seems broken
  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
  1 sibling, 0 replies; 26+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-08  5:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Aditya Mahajan

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

On Mon, 6 Dec 2021, Jan-Erik Hägglöf wrote:

> 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?

Every package on CTAN is available as a TDS archive. For example, go to the tikz package on ctan: https://www.ctan.org/pkg/pgf and search for "TDS archive" to get a TDS-compliant zip.

Aditya

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: circuitikz module seems broken
  2021-12-06 17:39                   ` Aditya Mahajan via ntg-context
  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-13 20:08                     ` Aditya Mahajan via ntg-context
  2021-12-13 20:14                       ` Jan-Erik Hägglöf via ntg-context
  2 siblings, 1 reply; 26+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-13 20:08 UTC (permalink / raw)
  To: Aditya Mahajan via ntg-context; +Cc: Aditya Mahajan

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: circuitikz module seems broken
  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
  0 siblings, 1 reply; 26+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2021-12-13 20:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf


[-- Attachment #1.1: Type: text/plain, Size: 1984 bytes --]

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

Sincerely

Jan-Erik

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:
>
> 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
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3113 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: circuitikz module seems broken
  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
  0 siblings, 1 reply; 26+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2021-12-13 22:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf


[-- Attachment #1.1: Type: text/plain, Size: 2600 bytes --]

Seems to not solve my issue but i’m supplying my logs.

I did update tikz and circuitikz and the whole LMTX refresh and new.

Tested the code below

Check my logs whats wrong.

Giving up on this one

Thanks in advance

Jan-Erik

> 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
> 
> Sincerely
> 
> Jan-Erik 
> 
> Den mån 13 dec. 2021 21:09Aditya Mahajan via ntg-context <ntg-context@ntg.nl <mailto: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:
> 
> https://github.com/circuitikz/circuitikz/pull/600 <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
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
> wiki     : http://contextgarden.net <http://contextgarden.net/>
> ___________________________________________________________________________________


[-- Attachment #1.2.1: Type: text/html, Size: 738 bytes --]

[-- Attachment #1.2.2: test-error.log --]
[-- Type: application/octet-stream, Size: 1912 bytes --]

return {
 ["errortype"]=0,
 ["filename"]="./test.tex",
 ["lastcontext"]="\n<macro> \\pgfutil@packageerror \n    #1#2#3->\\errhelp {#3}\\errmessage {Package #1 Error: #2}\n<macro> \\pgf@circ@bipole@current@label@where \n    \\advance \\tikz@expandcount by -1 \\ifnum \\tikz@expandcount <0\\relax \\tikzerror {Giving up on this path. Did you forget a semicolon?}\n    \\let \\pgfutil@next =\\tikz@finish \\else \\let \\pgfutil@next =\\tikz@@expand \\fi \\pgfutil@next \n<macro> \\tikz@marshal \n    ...ef \\csname pgfcirc@\\pgfcirc@a@prefix -Ilab-anchor\\endcsname {\\pgf@circ@dir } \\par \\ifpgf@circuit@bipole@current@below \\def \\pgf@circ@bipole@current@label@where {-90} \\else \\def \\pgf@circ@bipole@current@label@where {+90} \\fi } \\par \n    \\pgfextra {\\d ...\n<macro> \\pgf@let@token \n    ...le/label/name}\\else \\pgf@circ@drawlabels {label}\\fi \\pgf@circ@ifkeyempty {bipole/annotation/name}\\else \\pgf@circ@drawlabels {annotation}\\fi {\\pgfcirc@if@has@v {\\pgf@circ@drawvoltage }{}}{\\pgfcirc@if@has@i {\\pgf@circ@drawcurrent }{}\n    }{\\pgfcirc@if ...\n<macro> \\pgf@let@token \n    #1#2-> \\pgf@circ@bipole@path@base {shape}{}{#1}{#2}\n     \n<macro> \\tikztotarget \n    ...futil@empty \\tikz@scan@next@command {\\pgfextra {\\let \\tikz@after@path \\pgfutil@empty }\\pgfextra {\\tikz@atbegin@to }\\pgfextra {\\tikz@enable@edge@quotes }[style=every to]\\expandafter [\\tikz@@to@local@options ]\\tikz@to@path \\pgfextra \n    {\\tikz@atend@ ...\n ...\n\n<line 3.8> \n    \\stopcircuitikz\n\n",
 ["lastluaerror"]="",
 ["lasttexerror"]="Package tikz Error: Giving up on this path. Did you forget a semicolon?",
 ["lasttexhelp"]="This error message was generated by an \\errmessage command, so I can't give any\nexplicit help. Pretend that you're Hercule Poirot: Examine all clues, and deduce\nthe truth by order and method.",
 ["linenumber"]=8,
 ["offset"]=10,
 ["skiplinenumber"]=8,
}

[-- Attachment #1.2.3: Type: text/html, Size: 208 bytes --]

[-- Attachment #1.2.4: test.log --]
[-- Type: application/octet-stream, Size: 18078 bytes --]

system          > 
system          > ConTeXt  ver: 2021.12.10 11:41 LMTX  fmt: 2021.12.13  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'

system          > files > jobname './test', input './test.tex', result './test'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct runtime overhead!
open source     > level 1, order 2, name './test.tex'
modules         > 'tikz' is loaded
open source     > level 2, order 3, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-modules/tex/context/third/pgf/frontendlayer/t-tikz.tex'
loading         > ConTeXt User Module / tikz
open source     > level 3, order 4, name 't-pgf.tex'
loading         > ConTeXt User Module / pgf
open source     > level 4, order 5, name 't-pgfcor.tex'
loading         > ConTeXt User Module / pgfcor
open source     > level 5, order 6, name 't-pgfsys.tex'
loading         > ConTeXt User Module / pgfsys
open source     > level 6, order 7, name 't-pgfrcs.tex'
loading         > ConTeXt User Module / pgfrcs
open source     > level 7, order 8, name 't-pgfmod.tex'
loading         > ConTeXt User Module / pgfmodules
close source    > level 7, order 8, name 't-pgfmod.tex'
open source     > level 7, order 9, name 'pgfutil-common.tex'
open source     > level 8, order 10, name 'pgfutil-common-lists.tex'
close source    > level 8, order 10, name 'pgfutil-common-lists.tex'
close source    > level 7, order 10, name 'pgfutil-common.tex'
open source     > level 7, order 11, name 'pgfutil-context.def'
close source    > level 7, order 11, name 'pgfutil-context.def'
open source     > level 7, order 12, name 'pgfrcs.code.tex'
open source     > level 8, order 13, name 'pgf.revision.tex'
close source    > level 8, order 13, name 'pgf.revision.tex'
close source    > level 7, order 13, name 'pgfrcs.code.tex'
close source    > level 6, order 13, name 't-pgfrcs.tex'
open source     > level 6, order 14, name 'pgfsys.code.tex'
open source     > level 7, order 15, name 'pgfkeys.code.tex'
open source     > level 8, order 16, name 'pgfkeysfiltered.code.tex'
close source    > level 8, order 16, name 'pgfkeysfiltered.code.tex'
close source    > level 7, order 16, name 'pgfkeys.code.tex'
cld             > stack > 
cld             > stack > use : slot = context.functions.register(f)
cld             > stack > and : context.functions.unregister(slot)
cld             > stack > 
open source     > level 7, order 17, name 'pgf.cfg'
close source    > level 7, order 17, name 'pgf.cfg'
Driver file for pgf: pgfsys-luatex.def

open source     > level 7, order 18, name 'pgfsys-luatex.def'
open source     > level 8, order 19, name 'pgfsys-common-pdf.def'
close source    > level 8, order 19, name 'pgfsys-common-pdf.def'
close source    > level 7, order 19, name 'pgfsys-luatex.def'
open source     > level 7, order 20, name 'test.pgf'
close source    > level 7, order 20, name 'test.pgf'
close source    > level 6, order 20, name 'pgfsys.code.tex'
open source     > level 6, order 21, name 'pgfsyssoftpath.code.tex'
close source    > level 6, order 21, name 'pgfsyssoftpath.code.tex'
open source     > level 6, order 22, name 'pgfsysprotocol.code.tex'
close source    > level 6, order 22, name 'pgfsysprotocol.code.tex'
close source    > level 5, order 22, name 't-pgfsys.tex'
open source     > level 5, order 23, name 'pgfcore.code.tex'
open source     > level 6, order 24, name 'pgfmath.code.tex'
open source     > level 7, order 25, name 'pgfmathcalc.code.tex'
open source     > level 8, order 26, name 'pgfmathutil.code.tex'
close source    > level 8, order 26, name 'pgfmathutil.code.tex'
open source     > level 8, order 27, name 'pgfmathparser.code.tex'
close source    > level 8, order 27, name 'pgfmathparser.code.tex'
open source     > level 8, order 28, name 'pgfmathfunctions.code.tex'
open source     > level 9, order 29, name 'pgfmathfunctions.basic.code.tex'
close source    > level 9, order 29, name 'pgfmathfunctions.basic.code.tex'
open source     > level 9, order 30, name 'pgfmathfunctions.trigonometric.code.tex'
close source    > level 9, order 30, name 'pgfmathfunctions.trigonometric.code.tex'
open source     > level 9, order 31, name 'pgfmathfunctions.random.code.tex'
close source    > level 9, order 31, name 'pgfmathfunctions.random.code.tex'
open source     > level 9, order 32, name 'pgfmathfunctions.comparison.code.tex'
close source    > level 9, order 32, name 'pgfmathfunctions.comparison.code.tex'
open source     > level 9, order 33, name 'pgfmathfunctions.base.code.tex'
close source    > level 9, order 33, name 'pgfmathfunctions.base.code.tex'
open source     > level 9, order 34, name 'pgfmathfunctions.round.code.tex'
close source    > level 9, order 34, name 'pgfmathfunctions.round.code.tex'
open source     > level 9, order 35, name 'pgfmathfunctions.misc.code.tex'
close source    > level 9, order 35, name 'pgfmathfunctions.misc.code.tex'
open source     > level 9, order 36, name 'pgfmathfunctions.integerarithmetics.code.tex'
close source    > level 9, order 36, name 'pgfmathfunctions.integerarithmetics.code.tex'
close source    > level 8, order 36, name 'pgfmathfunctions.code.tex'
close source    > level 7, order 36, name 'pgfmathcalc.code.tex'
open source     > level 7, order 37, name 'pgfmathfloat.code.tex'
close source    > level 7, order 37, name 'pgfmathfloat.code.tex'
close source    > level 6, order 37, name 'pgfmath.code.tex'
open source     > level 6, order 38, name 'pgfint.code.tex'
close source    > level 6, order 38, name 'pgfint.code.tex'
open source     > level 6, order 39, name 'pgfcorepoints.code.tex'
close source    > level 6, order 39, name 'pgfcorepoints.code.tex'
open source     > level 6, order 40, name 'pgfcorepathconstruct.code.tex'
close source    > level 6, order 40, name 'pgfcorepathconstruct.code.tex'
open source     > level 6, order 41, name 'pgfcorepathusage.code.tex'
close source    > level 6, order 41, name 'pgfcorepathusage.code.tex'
open source     > level 6, order 42, name 'pgfcorescopes.code.tex'
close source    > level 6, order 42, name 'pgfcorescopes.code.tex'
open source     > level 6, order 43, name 'pgfcoregraphicstate.code.tex'
close source    > level 6, order 43, name 'pgfcoregraphicstate.code.tex'
open source     > level 6, order 44, name 'pgfcoretransformations.code.tex'
close source    > level 6, order 44, name 'pgfcoretransformations.code.tex'
open source     > level 6, order 45, name 'pgfcorequick.code.tex'
close source    > level 6, order 45, name 'pgfcorequick.code.tex'
open source     > level 6, order 46, name 'pgfcoreobjects.code.tex'
close source    > level 6, order 46, name 'pgfcoreobjects.code.tex'
open source     > level 6, order 47, name 'pgfcorepathprocessing.code.tex'
close source    > level 6, order 47, name 'pgfcorepathprocessing.code.tex'
open source     > level 6, order 48, name 'pgfcorearrows.code.tex'
close source    > level 6, order 48, name 'pgfcorearrows.code.tex'
open source     > level 6, order 49, name 'pgfcoreshade.code.tex'
close source    > level 6, order 49, name 'pgfcoreshade.code.tex'
open source     > level 6, order 50, name 'pgfcoreimage.code.tex'
open source     > level 7, order 51, name 'pgfcoreexternal.code.tex'
close source    > level 7, order 51, name 'pgfcoreexternal.code.tex'
close source    > level 6, order 51, name 'pgfcoreimage.code.tex'
open source     > level 6, order 52, name 'pgfcorelayers.code.tex'
close source    > level 6, order 52, name 'pgfcorelayers.code.tex'
open source     > level 6, order 53, name 'pgfcoretransparency.code.tex'
close source    > level 6, order 53, name 'pgfcoretransparency.code.tex'
open source     > level 6, order 54, name 'pgfcorepatterns.code.tex'
close source    > level 6, order 54, name 'pgfcorepatterns.code.tex'
open source     > level 6, order 55, name 'pgfcorerdf.code.tex'
close source    > level 6, order 55, name 'pgfcorerdf.code.tex'
close source    > level 5, order 55, name 'pgfcore.code.tex'
close source    > level 4, order 55, name 't-pgfcor.tex'
open source     > level 4, order 56, name 'pgfmoduleshapes.code.tex'
close source    > level 4, order 56, name 'pgfmoduleshapes.code.tex'
open source     > level 4, order 57, name 'pgfmoduleplot.code.tex'
close source    > level 4, order 57, name 'pgfmoduleplot.code.tex'
close source    > level 3, order 57, name 't-pgf.tex'
open source     > level 3, order 58, name 't-pgffor.tex'
loading         > ConTeXt User Module / pgffor
open source     > level 4, order 59, name 't-pgfrcs.tex'
loading         > ConTeXt User Module / pgfrcs
close source    > level 4, order 59, name 't-pgfrcs.tex'
open source     > level 4, order 60, name 't-pgfkey.tex'
loading         > ConTeXt User Module / pgfkey
open source     > level 5, order 61, name 'pgfkeys.code.tex'
close source    > level 5, order 61, name 'pgfkeys.code.tex'
close source    > level 4, order 61, name 't-pgfkey.tex'
open source     > level 4, order 62, name 'pgffor.code.tex'
open source     > level 5, order 63, name 'pgfmath.code.tex'
close source    > level 5, order 63, name 'pgfmath.code.tex'
close source    > level 4, order 63, name 'pgffor.code.tex'
close source    > level 3, order 63, name 't-pgffor.tex'
open source     > level 3, order 64, name 'tikz.code.tex'
open source     > level 4, order 65, name 'pgflibraryplothandlers.code.tex'
close source    > level 4, order 65, name 'pgflibraryplothandlers.code.tex'
open source     > level 4, order 66, name 'pgfmodulematrix.code.tex'
close source    > level 4, order 66, name 'pgfmodulematrix.code.tex'
open source     > level 4, order 67, name 'tikzlibrarytopaths.code.tex'
close source    > level 4, order 67, name 'tikzlibrarytopaths.code.tex'
close source    > level 3, order 67, name 'tikz.code.tex'
close source    > level 2, order 67, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-modules/tex/context/third/pgf/frontendlayer/t-tikz.tex'
modules         > 'circuitikz' is loaded
open source     > level 2, order 68, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-modules/tex/context/third/circuitikz/t-circuitikz.tex'
loading         > 2021/12/06{} The CircuiTikz circuit drawing package version 1.4.5
modules         > 'tikz' is loaded
open source     > level 3, order 69, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source     > level 4, order 70, name 't-pgf.tex'
loading         > ConTeXt User Module / pgf
close source    > level 4, order 70, name 't-pgf.tex'
open source     > level 4, order 71, name 't-pgffor.tex'
loading         > ConTeXt User Module / pgffor
close source    > level 4, order 71, name 't-pgffor.tex'
open source     > level 4, order 72, name 'tikz.code.tex'
warning         > \dimen \tikz@lastx is already defined (\relax it first)
warning         > \dimen \tikz@lasty is already defined (\relax it first)
warning         > \dimen \tikz@lastxsaved is already defined (\relax it first)
warning         > \dimen \tikz@lastysaved is already defined (\relax it first)
warning         > \dimen \tikz@lastmovetox is already defined (\relax it first)
warning         > \dimen \tikz@lastmovetoy is already defined (\relax it first)
warning         > \dimen \tikzleveldistance is already defined (\relax it first)
warning         > \dimen \tikzsiblingdistance is already defined (\relax it first)
warning         > \box \tikz@figbox is already defined (\relax it first)
warning         > \box \tikz@figbox@bg is already defined (\relax it first)
warning         > \box \tikz@tempbox is already defined (\relax it first)
warning         > \box \tikz@tempbox@bg is already defined (\relax it first)
warning         > \count \tikztreelevel is already defined (\relax it first)
warning         > \count \tikznumberofchildren is already defined (\relax it first)
warning         > \count \tikznumberofcurrentchild is already defined (\relax it first)
warning         > \count \tikz@fig@count is already defined (\relax it first)
warning         > \count \tikz@expandcount is already defined (\relax it first)
close source    > level 4, order 72, name 'tikz.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 3, order 72, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source     > level 3, order 73, name 'tikzlibrarycalc.code.tex'
close source    > level 3, order 73, name 'tikzlibrarycalc.code.tex'
open source     > level 3, order 74, name 'pgflibraryarrows.meta.code.tex'
close source    > level 3, order 74, name 'pgflibraryarrows.meta.code.tex'
open source     > level 3, order 75, name 'tikzlibrarybending.code.tex'
open source     > level 4, order 76, name 'pgfmodulebending.code.tex'
open source     > level 5, order 77, name 'pgfmodulenonlineartransformations.code.tex'
close source    > level 5, order 77, name 'pgfmodulenonlineartransformations.code.tex'
open source     > level 5, order 78, name 'pgflibrarycurvilinear.code.tex'
close source    > level 5, order 78, name 'pgflibrarycurvilinear.code.tex'
close source    > level 4, order 78, name 'pgfmodulebending.code.tex'
close source    > level 3, order 78, name 'tikzlibrarybending.code.tex'
open source     > level 3, order 79, name 'tikzlibraryfpu.code.tex'
open source     > level 4, order 80, name 'pgflibraryfpu.code.tex'
close source    > level 4, order 80, name 'pgflibraryfpu.code.tex'
close source    > level 3, order 80, name 'tikzlibraryfpu.code.tex'
open source     > level 3, order 81, name 'pgfcirc.defines.tex'
close source    > level 3, order 81, name 'pgfcirc.defines.tex'
open source     > level 3, order 82, name 'pgfcircutils.tex'
close source    > level 3, order 82, name 'pgfcircutils.tex'
open source     > level 3, order 83, name 'pgfcircpath.tex'
close source    > level 3, order 83, name 'pgfcircpath.tex'
open source     > level 3, order 84, name 'pgfcircshapes.tex'
close source    > level 3, order 84, name 'pgfcircshapes.tex'
open source     > level 3, order 85, name 'pgfcircmonopoles.tex'
close source    > level 3, order 85, name 'pgfcircmonopoles.tex'
open source     > level 3, order 86, name 'pgfcircbipoles.tex'
close source    > level 3, order 86, name 'pgfcircbipoles.tex'
open source     > level 3, order 87, name 'pgfcirctripoles.tex'
tex memory      > bumping category 'token' succeeded, details: all=8000000 | ini=493451 | max=10000000 | mem=1000000 | min=1000000 | ptr=1023172 | set=10000000 | stp=250000 | top=1000000
close source    > level 3, order 87, name 'pgfcirctripoles.tex'
open source     > level 3, order 88, name 'pgfcircquadpoles.tex'
tex memory      > bumping category 'token' succeeded, details: all=10000000 | ini=493451 | max=10000000 | mem=1250000 | min=1000000 | ptr=1278724 | set=10000000 | stp=250000 | top=1250000
close source    > level 3, order 88, name 'pgfcircquadpoles.tex'
open source     > level 3, order 89, name 'pgfcircmultipoles.tex'
close source    > level 3, order 89, name 'pgfcircmultipoles.tex'
open source     > level 3, order 90, name 'pgfcirclabel.tex'
close source    > level 3, order 90, name 'pgfcirclabel.tex'
open source     > level 3, order 91, name 'pgfcircvoltage.tex'
close source    > level 3, order 91, name 'pgfcircvoltage.tex'
open source     > level 3, order 92, name 'pgfcirccurrent.tex'
close source    > level 3, order 92, name 'pgfcirccurrent.tex'
open source     > level 3, order 93, name 'pgfcircflow.tex'
close source    > level 3, order 93, name 'pgfcircflow.tex'
close source    > level 2, order 93, name '/Users/jan-erikhagglof/context/context-osx-64/tex/texmf-modules/tex/context/third/circuitikz/t-circuitikz.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
tex error       > tex error on line 8 in file ./test.tex: Package tikz Error: Giving up on this path. Did you forget a semicolon?

<macro> \pgfutil@packageerror 
    #1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2}
<macro> \pgf@circ@bipole@current@label@where 
    \advance \tikz@expandcount by -1 \ifnum \tikz@expandcount <0\relax \tikzerror {Giving up on this path. Did you forget a semicolon?}
    \let \pgfutil@next =\tikz@finish \else \let \pgfutil@next =\tikz@@expand \fi \pgfutil@next 
<macro> \tikz@marshal 
    ...ef \csname pgfcirc@\pgfcirc@a@prefix -Ilab-anchor\endcsname {\pgf@circ@dir } \par \ifpgf@circuit@bipole@current@below \def \pgf@circ@bipole@current@label@where {-90} \else \def \pgf@circ@bipole@current@label@where {+90} \fi } \par 
    \pgfextra {\d ...
<macro> \pgf@let@token 
    ...le/label/name}\else \pgf@circ@drawlabels {label}\fi \pgf@circ@ifkeyempty {bipole/annotation/name}\else \pgf@circ@drawlabels {annotation}\fi {\pgfcirc@if@has@v {\pgf@circ@drawvoltage }{}}{\pgfcirc@if@has@i {\pgf@circ@drawcurrent }{}
    }{\pgfcirc@if ...
<macro> \pgf@let@token 
    #1#2-> \pgf@circ@bipole@path@base {shape}{}{#1}{#2}
     
<macro> \tikztotarget 
    ...futil@empty \tikz@scan@next@command {\pgfextra {\let \tikz@after@path \pgfutil@empty }\pgfextra {\tikz@atbegin@to }\pgfextra {\tikz@enable@edge@quotes }[style=every to]\expandafter [\tikz@@to@local@options ]\tikz@to@path \pgfextra 
    {\tikz@atend@ ...
 ...

<line 3.8> 
    \stopcircuitikz

 1     \usemodule[t][tikz]
 2     \usemodule[t][circuitikz]
 3     
 4     \starttext
 5     
 6     \startcircuitikz
 7      \draw (0,2) to[I] (2,2);
 8 >>  \stopcircuitikz
 9     
10     \stoptext
11     
This error message was generated by an \errmessage command, so I can't give any
explicit help. Pretend that you're Hercule Poirot: Examine all clues, and deduce
the truth by order and method.

[-- Attachment #1.2.5: Type: text/html, Size: 208 bytes --]

[-- Attachment #1.2.6: test.tex --]
[-- Type: application/octet-stream, Size: 129 bytes --]

\usemodule[t][tikz]
\usemodule[t][circuitikz]

\starttext

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

\stoptext

[-- Attachment #1.2.7: Type: text/html, Size: 4179 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: circuitikz module seems broken
  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
  0 siblings, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-12-13 23:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Aditya Mahajan; +Cc: Hans Hagen

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

Hi,

This works here:

\usemodule[circuitikz]

\starttext
     \startcircuitikz
         \draw (0,2) to[I] (2,2);
     \stopcircuitikz
     \startcircuitikz
         \draw (0,2) to[I] (2,2);
     \stopcircuitikz
\stoptext

with the attached. Make sure to put it in the regular context base path 
and run mtxrun --generate.

Aditya: can you check if we load enough? We really need to get rid of 
all these (kind of strange) t-* modules that somehow ended up in tikz 
and it's way easier and robust to occasionally add something needed to 
m-tikz than to try to catch hard-to-locate-and-fix stuff in the tikz 
distribution. If needed we can apply runtime patches too.

(nyw, it looks like tikz creates empty pfg files during a run but that's 
probbably has a reason)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: m-tikz.mkxl --]
[-- Type: text/plain, Size: 4087 bytes --]

%D \module
%D   [       file=m-tikz,
%D        version=2021.07.12,
%D          title=\CONTEXT\ Extra Modules,
%D       subtitle=TIKZ support,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D A fixed variant of the t-tikz module distributed with tikz. For practical reasons
%D per 2021 we split the module for \MKIV\ and \LMTX. (Maybe some day I'll optimize
%D TIKZ a bit.)
%D
%D All these t-* modules in the tikz distribution make no sense as we can just load
%D them here which is way cleaner. There is also some mkii filename mapping going on
%D that is not needed on todays systems (windows has no 8.3 limitation and on unix
%D tds finally adopted a case insensitive approach.)

%D Just in case someone does a hard input ...

\ifdefined\pgfdefined    \endinput \fi
\ifdefined\pgfcoredefined\endinput \fi

%D ... but normally we end up here:

\startmodule[tikz]

\ifdefined\pdflastxpos \else
    \unprotect
        \frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax}
        \frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax}
    \protect
\fi

\permanent\protected\def\starttikzinput
  {\pushoverloadmode
   \pushcatcodetable
   \setcatcodetable\texcatcodes
   \catcode`\@=11
   \catcode`\|=12
   \catcode`\!=12
   \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzinput
  {\autoparagraphmode\plusone
   \popcatcodetable
   \popoverloadmode}

\permanent\protected\def\tikzinputfile#1%
  {\starttikzinput
   \input{#1}\relax
   \stoptikzinput}

\permanent\protected\def\tikzerrormessage#1#2#3%
  {\writestatus{#1}{#2}}

% For now we need this but we need to educate the user to wrap settings in the
% wrappers. So some day the next line will go. I need to check what commands are
% possible outside a picture.

\overloadmode\zerocount

\permanent\protected\def\starttikzsettings
  {\pushoverloadmode
   \autoparagraphmode\zerocount}

\permanent\protected\def\stoptikzsettings
  {\autoparagraphmode\plusone
   \popoverloadmode}

\permanent\protected\def\starttikzpicture
  {\dontleavehmode
   \hcontainer\bgroup
   \autoparagraphmode\zerocount
 % \pushoverloadmode
   \ifdefined\PackageError\else \let\PackageError\tikzerrormessage \fi
   \tikzpicture}

\permanent\protected\def\stoptikzpicture
  {\endtikzpicture
 % \popoverloadmode
   \egroup}

\let\pgfdefined    \relax
\let\pgfcoredefined\relax

\tikzinputfile{pgfutil-common.tex}
\tikzinputfile{pgfutil-context.def}
\tikzinputfile{pgfrcs.code.tex}
\tikzinputfile{pgfsys.code.tex}
\tikzinputfile{pgfkeys.code.tex}
\tikzinputfile{pgfsyssoftpath.code.tex}
\tikzinputfile{pgfsysprotocol.code.tex}
\tikzinputfile{pgfcore.code.tex}
\tikzinputfile{pgffor.code.tex}
\tikzinputfile{pgfmoduleplot.code.tex}
\tikzinputfile{tikz.code.tex}

\let\startpgfpicture             \pgfpicture              \let\stoppgfpicture            \endpgfpicture
\let\startpgfscope               \pgfscope                \let\stoppgfscope              \endpgfscope
\let\startpgflowlevelscope       \pgflowlevelscope        \let\stoppgflowlevelscope      \endpgflowlevelscope
\let\startpgfinterruptpath       \pgfinterruptpath        \let\stoppgfinterruptpath      \endpgfinterruptpath
\let\startpgfinterruptpicture    \pgfinterruptpicture     \let\stoppgfinterruptpicture   \endpgfinterruptpicture
\let\startpgfinterruptboundingbox\pgfinterruptboundinbox  \let\stoppgfinterruptboudingbox\endpgfinterruptboundingbox

\let\normalusepgfmodule\usepgfmodule
\let\normalusepgflibrary\usepgflibrary

\tolerant\protected\def\usepgfmodule[#1]#;#2% somehow both variants are used
  {\starttikzinput
   \normalusepgfmodule[#1#2]%
   \stoptikzinput}

\tolerant\protected\def\usepgflibrary[#1]#;#2% somehow both variants are used
  {\starttikzinput
   \normalusepgflibrary[#1#2]%
   \stoptikzinput}

\usepgfmodule[shapes]
\usepgfmodule[plot]
\usepgfmodule[matrix]
\usepgfmodule[decorations]

\stopmodule

[-- Attachment #3: m-circuitikz.mkxl --]
[-- Type: text/plain, Size: 3758 bytes --]

%D \module
%D   [       file=m-circuitikz,
%D        version=2021.12.03,
%D          title=\CONTEXT\ Extra Modules,
%D       subtitle=CURCUITIKZ support,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D A fixed variant of the t-curcuitikz module distributed with tikz. This one
%D is for \LMTX.

\usemodule[m][tikz]

\startmodule[circuitikz]

\def\pgfcircversion     {1.4.4}
\def\pgfcircversiondate {2021/10/31}

\usetikzlibrary[calc]
\usetikzlibrary[arrows.meta]
\usetikzlibrary[bending]
\usetikzlibrary[fpu] % may be needed for use fpu reciprocal (v1.0.1)

\tikzinputfile{pgfcirc.defines.tex}
\tikzinputfile{pgfcircutils.tex}
\tikzinputfile{pgfcircpath.tex}

\tikzinputfile{pgfcircshapes.tex}
\tikzinputfile{pgfcircmonopoles.tex}
\tikzinputfile{pgfcircbipoles.tex}
\tikzinputfile{pgfcirctripoles.tex}
\tikzinputfile{pgfcircquadpoles.tex}
\tikzinputfile{pgfcircmultipoles.tex}

\tikzinputfile{pgfcirclabel.tex}
\tikzinputfile{pgfcircvoltage.tex}
\tikzinputfile{pgfcirccurrent.tex}
\tikzinputfile{pgfcircflow.tex}

% defaults

\setupmodule
  [current=european,
   voltage=european,
   resistor=american,
   inductor=cute,
   logic=american,
   siunitx=true,
   arrowmos=false]

% can be done nicer ... todo

\processaction
  [\currentmoduleparameter{voltage}]
  [european=>\ctikzset{voltage=european},
   american=>\ctikzset{voltage=american}]

\processaction
  [\currentmoduleparameter{current}]
  [european=>\ctikzset{ current=european},
   american=>\ctikzset{ current=american}]

\processaction
  [\currentmoduleparameter{label}]
  [straight=>\ctikzset{label/align = straight},
   align=>\ctikzset{label/align = rotate},
   smart=>\ctikzset{label/align = smart}]

\processaction
  [\currentmoduleparameter{resistor}]
  [european=>\ctikzset{ resistor=european},
   american=>\ctikzset{ resistor=american}]

\processaction
  [\currentmoduleparameter{inductor}]
  [european=>\ctikzset{ inductor=european},
   american=>\ctikzset{ inductor=american},
   cute=>\ctikzset{ inductor=cute}]

\processaction
  [\currentmoduleparameter{diode}]
  [full=>\ctikzset{ diode=full},
   empty=>\ctikzset{ diode=empty}]

\processaction
  [\currentmoduleparameter{logic}]
  [european=>\ctikzset{ logic ports=european},
   american=>\ctikzset{ logic ports=american}]

% hm, we have units built in and in mkii one can load the units module
% ... always been so ...

\processaction
  [\currentmoduleparameter{siunitx}]
  [true=>\def\SI    #1#2{#1\,#2}
         \def\ampere    {\rm{A}}
         \def\volt      {\rm{V}}
         \def\ohm       {\Omega}
         \def\siemens   {\rm{S}}
         \def\farad     {\rm{F}}
         \def\henry     {\rm{H}}
         \def\second    {\rm{s}}
         \def\coulomb   {\rm{C}}
         \def\siemens   {\rm{S}}
         \def\radians   {\rm{rad}}
         \def\milli     {\rm{m}}
         \def\micro     {\mu}
         \def\nano      {\rm{n}}
         \def\pico      {\rm{p}}
         \def\kilo      {\rm{k}}
         \def\mega      {\rm{M}}
         \def\giga      {\rm{G}}
         \def\tera      {\rm{T}}]

\unprotect

\processaction
  [\currentmoduleparameter{arrowmos}]
  [true=>\pgf@circuit@mos@arrowstrue,
   false=>\pgf@circuit@mos@arrowsfalse]

\protect

\ctikzset{tripoles/op amp/font/.initial=\switchtobodyfont[small]}

\aliased\let\stopcircuitikz\relax

\permanent\protected\def\startcircuitikz#1\stopcircuitikz
  {\starttikzpicture#1\stoptikzpicture}

\stopmodule

\endinput

[-- Attachment #4: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: circuitikz module seems broken
  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
  0 siblings, 1 reply; 26+ messages in thread
From: Aditya Mahajan via ntg-context @ 2021-12-14  3:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Aditya Mahajan

I tested with my course assignments (simple tikz block diagrams, lots of pgdplots code) and everything works correctly. I haven't tested circuitikz; the simple example fails and I am trying to understand why that is happening.

> Aditya: can you check if we load enough? 

I believe so. This is what my notes say (it is no fun to trace down these files):

% Order in which files are loaded
% 1. t-tikz
% 1.1 t-pgf
% 1.1.1 t-pgfcor
% 1.1.1.1 t-pgfsys
% 1.1.1.1.1 t-pgfrcs
% 1.1.1.1.1.1 t-pgfmod  % Ignore
% 1.1.1.1.1.2 pgfutil-common.tex            (1)
% 1.1.1.1.1.3 pgfutil-context.def           (2)
% 1.1.1.1.1.4 pgfrcs.code.tex               (3)
% 1.1.1.1.2 pgfsys.code.tex                 (4)
% 1.1.1.1.3 pgfsyssoftpath.code.tex         (5)
% 1.1.1.1.4 pgfsysprotocol.code.tex         (6)
% 1.1.1.2 pgfcore.code.tex                  (7)
% 1.1.2 \usepgfmodule[shapes,plot]          (8)
% 1.2 t-pgffor
% 1.2.1 t-pgfrcs (already loaded)
% 1.2.2 t-pgfkey
% 1.2.2.1 pgfkeys.code.tex                  (9)
% 1.2.3 pgffor.code.tex                    (10)
% 1.3 tikz.code.tex                        (11)

You also have pgfmoduleplot.code.tex, which I had missed.

> We really need to get rid of all
> these (kind of strange) t-* modules that somehow ended up in tikz and it's way
> easier and robust to occasionally add something needed to m-tikz than to try
> to catch hard-to-locate-and-fix stuff in the tikz distribution. If needed we
> can apply runtime patches too.

Agreed. I believe that the pgf module provides so many modules as a means to be modular. For example, it possible to use `pgffor` module to get the for loop syntax; or load `pgfkey` to get the key-value arguments, etc. But each of these t-* files has so much boilerplate code, so I like your method better. 

> (nyw, it looks like tikz creates empty pfg files during a run but that's
> probbably has a reason)

tikz's ChangeLog has the following entries:

2007-01-18:
    - Fixed .aux problems in plain and ConTeXt mode. Using .pgf as
      extension now.

Grepping the source for `.pgf` gives:

tex/generic/pgf/utilities/pgfutil-context.def:  \pgfutil@IfFileExists{\jobname.pgf}{\input \jobname.pgf\relax}{}
tex/generic/pgf/utilities/pgfutil-context.def:  \immediate\csname openout\endcsname\pgfutil@auxout\jobname.pgf\relax
tex/generic/pgf/utilities/pgfutil-plain.def:  \pgfutil@IfFileExists{\jobname.pgf}{\input \jobname.pgf\relax}{}
tex/generic/pgf/utilities/pgfutil-plain.def:  \immediate\csname openout\endcsname\pgfutil@auxout\jobname.pgf

The file handle \pgfutil@auxout is used in the macro \pgfutil@writetoaux which gets used in the driver files to write absolute positioning stuff to file. For example, pgfsys-luatex.def has:

\def\pgfsys@markposition#1{%
  \savepos%
  \edef\pgf@temp{#1}%
  \expandafter\pgfutil@writetoaux\expandafter{%
    \expandafter\noexpand\expandafter\pgfsyspdfmark\expandafter{\pgf@temp}{\the\lastxpos}{\the\lastypos}}%
}

This can easily be stored in the tuc file using two-pass data, but I don't use this feature of tikz, so don't have examples to test this. 

@HenriMenke: Do you know if it is save to not create the `.pgf` file and rewrite the above macro to read store the \pgfsyspdfmark table in the `.tuc` file?



___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: circuitikz module seems broken
  2021-12-14  3:57                             ` Aditya Mahajan via ntg-context
@ 2021-12-14 13:14                               ` Jan-Erik Hägglöf via ntg-context
  0 siblings, 0 replies; 26+ messages in thread
From: Jan-Erik Hägglöf via ntg-context @ 2021-12-14 13:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jan-Erik Hägglöf

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

HI ALL!

Finally it worked after complete reinstall

Tikz circuitikz pgfplots from ctan, updated LMTX to latest 2021.12.10

And replaced m-tikz.mkxl and m-circuitikz.mkxl with the attached files from Hans.

[-- Attachment #2: test2.log --]
[-- Type: application/octet-stream, Size: 48889 bytes --]

system          > 
system          > ConTeXt  ver: 2021.12.10 11:41 LMTX  fmt: 2021.12.14  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'

system          > files > jobname './test2', input './test2.tex', result './test2'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct runtime overhead!
open source     > level 1, order 2, name './test2.tex'
modules         > 'circuitikz' is loaded
open source     > level 2, order 3, name '/Users/janneman/CTX/tex/texmf-context/tex/context/modules/mkxl/m-circuitikz.mkxl'
modules         > 'tikz' is loaded
open source     > level 3, order 4, name '/Users/janneman/CTX/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source     > level 4, order 5, name 't-pgf.tex'
loading         > ConTeXt User Module / pgf
open source     > level 5, order 6, name 't-pgfcor.tex'
loading         > ConTeXt User Module / pgfcor
open source     > level 6, order 7, name 't-pgfsys.tex'
loading         > ConTeXt User Module / pgfsys
open source     > level 7, order 8, name 't-pgfrcs.tex'
loading         > ConTeXt User Module / pgfrcs
open source     > level 8, order 9, name 't-pgfmod.tex'
loading         > ConTeXt User Module / pgfmodules
system          > module wrapping error in 'tikz'
close source    > level 8, order 9, name 't-pgfmod.tex'
open source     > level 8, order 10, name 'pgfutil-common.tex'
open source     > level 9, order 11, name 'pgfutil-common-lists.tex'
close source    > level 9, order 11, name 'pgfutil-common-lists.tex'
close source    > level 8, order 11, name 'pgfutil-common.tex'
open source     > level 8, order 12, name 'pgfutil-context.def'
close source    > level 8, order 12, name 'pgfutil-context.def'
open source     > level 8, order 13, name 'pgfrcs.code.tex'
open source     > level 9, order 14, name 'pgf.revision.tex'
close source    > level 9, order 14, name 'pgf.revision.tex'
close source    > level 8, order 14, name 'pgfrcs.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 7, order 14, name 't-pgfrcs.tex'
open source     > level 7, order 15, name 'pgfsys.code.tex'
open source     > level 8, order 16, name 'pgfkeys.code.tex'
open source     > level 9, order 17, name 'pgfkeysfiltered.code.tex'
close source    > level 9, order 17, name 'pgfkeysfiltered.code.tex'
close source    > level 8, order 17, name 'pgfkeys.code.tex'
cld             > stack > 
cld             > stack > use : slot = context.functions.register(f)
cld             > stack > and : context.functions.unregister(slot)
cld             > stack > 
open source     > level 8, order 18, name 'pgf.cfg'
close source    > level 8, order 18, name 'pgf.cfg'
Driver file for pgf: pgfsys-luatex.def

open source     > level 8, order 19, name 'pgfsys-luatex.def'
open source     > level 9, order 20, name 'pgfsys-common-pdf.def'
close source    > level 9, order 20, name 'pgfsys-common-pdf.def'
close source    > level 8, order 20, name 'pgfsys-luatex.def'
open source     > level 8, order 21, name 'test2.pgf'
close source    > level 8, order 21, name 'test2.pgf'
close source    > level 7, order 21, name 'pgfsys.code.tex'
open source     > level 7, order 22, name 'pgfsyssoftpath.code.tex'
close source    > level 7, order 22, name 'pgfsyssoftpath.code.tex'
open source     > level 7, order 23, name 'pgfsysprotocol.code.tex'
close source    > level 7, order 23, name 'pgfsysprotocol.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 6, order 23, name 't-pgfsys.tex'
open source     > level 6, order 24, name 'pgfcore.code.tex'
open source     > level 7, order 25, name 'pgfmath.code.tex'
open source     > level 8, order 26, name 'pgfmathcalc.code.tex'
open source     > level 9, order 27, name 'pgfmathutil.code.tex'
close source    > level 9, order 27, name 'pgfmathutil.code.tex'
open source     > level 9, order 28, name 'pgfmathparser.code.tex'
close source    > level 9, order 28, name 'pgfmathparser.code.tex'
open source     > level 9, order 29, name 'pgfmathfunctions.code.tex'
open source     > level 10, order 30, name 'pgfmathfunctions.basic.code.tex'
close source    > level 10, order 30, name 'pgfmathfunctions.basic.code.tex'
open source     > level 10, order 31, name 'pgfmathfunctions.trigonometric.code.tex'
close source    > level 10, order 31, name 'pgfmathfunctions.trigonometric.code.tex'
open source     > level 10, order 32, name 'pgfmathfunctions.random.code.tex'
close source    > level 10, order 32, name 'pgfmathfunctions.random.code.tex'
open source     > level 10, order 33, name 'pgfmathfunctions.comparison.code.tex'
close source    > level 10, order 33, name 'pgfmathfunctions.comparison.code.tex'
open source     > level 10, order 34, name 'pgfmathfunctions.base.code.tex'
close source    > level 10, order 34, name 'pgfmathfunctions.base.code.tex'
open source     > level 10, order 35, name 'pgfmathfunctions.round.code.tex'
close source    > level 10, order 35, name 'pgfmathfunctions.round.code.tex'
open source     > level 10, order 36, name 'pgfmathfunctions.misc.code.tex'
close source    > level 10, order 36, name 'pgfmathfunctions.misc.code.tex'
open source     > level 10, order 37, name 'pgfmathfunctions.integerarithmetics.code.tex'
close source    > level 10, order 37, name 'pgfmathfunctions.integerarithmetics.code.tex'
close source    > level 9, order 37, name 'pgfmathfunctions.code.tex'
close source    > level 8, order 37, name 'pgfmathcalc.code.tex'
open source     > level 8, order 38, name 'pgfmathfloat.code.tex'
close source    > level 8, order 38, name 'pgfmathfloat.code.tex'
close source    > level 7, order 38, name 'pgfmath.code.tex'
open source     > level 7, order 39, name 'pgfint.code.tex'
close source    > level 7, order 39, name 'pgfint.code.tex'
open source     > level 7, order 40, name 'pgfcorepoints.code.tex'
close source    > level 7, order 40, name 'pgfcorepoints.code.tex'
open source     > level 7, order 41, name 'pgfcorepathconstruct.code.tex'
close source    > level 7, order 41, name 'pgfcorepathconstruct.code.tex'
open source     > level 7, order 42, name 'pgfcorepathusage.code.tex'
close source    > level 7, order 42, name 'pgfcorepathusage.code.tex'
open source     > level 7, order 43, name 'pgfcorescopes.code.tex'
close source    > level 7, order 43, name 'pgfcorescopes.code.tex'
open source     > level 7, order 44, name 'pgfcoregraphicstate.code.tex'
close source    > level 7, order 44, name 'pgfcoregraphicstate.code.tex'
open source     > level 7, order 45, name 'pgfcoretransformations.code.tex'
close source    > level 7, order 45, name 'pgfcoretransformations.code.tex'
open source     > level 7, order 46, name 'pgfcorequick.code.tex'
close source    > level 7, order 46, name 'pgfcorequick.code.tex'
open source     > level 7, order 47, name 'pgfcoreobjects.code.tex'
close source    > level 7, order 47, name 'pgfcoreobjects.code.tex'
open source     > level 7, order 48, name 'pgfcorepathprocessing.code.tex'
close source    > level 7, order 48, name 'pgfcorepathprocessing.code.tex'
open source     > level 7, order 49, name 'pgfcorearrows.code.tex'
close source    > level 7, order 49, name 'pgfcorearrows.code.tex'
open source     > level 7, order 50, name 'pgfcoreshade.code.tex'
close source    > level 7, order 50, name 'pgfcoreshade.code.tex'
open source     > level 7, order 51, name 'pgfcoreimage.code.tex'
open source     > level 8, order 52, name 'pgfcoreexternal.code.tex'
close source    > level 8, order 52, name 'pgfcoreexternal.code.tex'
close source    > level 7, order 52, name 'pgfcoreimage.code.tex'
open source     > level 7, order 53, name 'pgfcorelayers.code.tex'
close source    > level 7, order 53, name 'pgfcorelayers.code.tex'
open source     > level 7, order 54, name 'pgfcoretransparency.code.tex'
close source    > level 7, order 54, name 'pgfcoretransparency.code.tex'
open source     > level 7, order 55, name 'pgfcorepatterns.code.tex'
close source    > level 7, order 55, name 'pgfcorepatterns.code.tex'
open source     > level 7, order 56, name 'pgfcorerdf.code.tex'
close source    > level 7, order 56, name 'pgfcorerdf.code.tex'
close source    > level 6, order 56, name 'pgfcore.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 5, order 56, name 't-pgfcor.tex'
open source     > level 5, order 57, name 'pgfmoduleshapes.code.tex'
close source    > level 5, order 57, name 'pgfmoduleshapes.code.tex'
open source     > level 5, order 58, name 'pgfmoduleplot.code.tex'
close source    > level 5, order 58, name 'pgfmoduleplot.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 4, order 58, name 't-pgf.tex'
open source     > level 4, order 59, name 't-pgffor.tex'
loading         > ConTeXt User Module / pgffor
open source     > level 5, order 60, name 't-pgfrcs.tex'
loading         > ConTeXt User Module / pgfrcs
system          > module wrapping error in 'tikz'
close source    > level 5, order 60, name 't-pgfrcs.tex'
open source     > level 5, order 61, name 't-pgfkey.tex'
loading         > ConTeXt User Module / pgfkey
open source     > level 6, order 62, name 'pgfkeys.code.tex'
close source    > level 6, order 62, name 'pgfkeys.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 5, order 62, name 't-pgfkey.tex'
open source     > level 5, order 63, name 'pgffor.code.tex'
open source     > level 6, order 64, name 'pgfmath.code.tex'
close source    > level 6, order 64, name 'pgfmath.code.tex'
close source    > level 5, order 64, name 'pgffor.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 4, order 64, name 't-pgffor.tex'
open source     > level 4, order 65, name 'tikz.code.tex'
open source     > level 5, order 66, name 'pgflibraryplothandlers.code.tex'
close source    > level 5, order 66, name 'pgflibraryplothandlers.code.tex'
open source     > level 5, order 67, name 'pgfmodulematrix.code.tex'
close source    > level 5, order 67, name 'pgfmodulematrix.code.tex'
open source     > level 5, order 68, name 'tikzlibrarytopaths.code.tex'
close source    > level 5, order 68, name 'tikzlibrarytopaths.code.tex'
close source    > level 4, order 68, name 'tikz.code.tex'
system          > module wrapping error in 'tikz'
close source    > level 3, order 68, name '/Users/janneman/CTX/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
open source     > level 3, order 69, name 'tikzlibrarycalc.code.tex'
close source    > level 3, order 69, name 'tikzlibrarycalc.code.tex'
open source     > level 3, order 70, name 'pgflibraryarrows.meta.code.tex'
close source    > level 3, order 70, name 'pgflibraryarrows.meta.code.tex'
open source     > level 3, order 71, name 'tikzlibrarybending.code.tex'
open source     > level 4, order 72, name 'pgfmodulebending.code.tex'
open source     > level 5, order 73, name 'pgfmodulenonlineartransformations.code.tex'
close source    > level 5, order 73, name 'pgfmodulenonlineartransformations.code.tex'
open source     > level 5, order 74, name 'pgflibrarycurvilinear.code.tex'
close source    > level 5, order 74, name 'pgflibrarycurvilinear.code.tex'
close source    > level 4, order 74, name 'pgfmodulebending.code.tex'
close source    > level 3, order 74, name 'tikzlibrarybending.code.tex'
open source     > level 3, order 75, name 'tikzlibraryfpu.code.tex'
open source     > level 4, order 76, name 'pgflibraryfpu.code.tex'
close source    > level 4, order 76, name 'pgflibraryfpu.code.tex'
close source    > level 3, order 76, name 'tikzlibraryfpu.code.tex'
open source     > level 3, order 77, name 'pgfcirc.defines.tex'
close source    > level 3, order 77, name 'pgfcirc.defines.tex'
open source     > level 3, order 78, name 'pgfcircutils.tex'
close source    > level 3, order 78, name 'pgfcircutils.tex'
open source     > level 3, order 79, name 'pgfcircpath.tex'
close source    > level 3, order 79, name 'pgfcircpath.tex'
open source     > level 3, order 80, name 'pgfcircshapes.tex'
close source    > level 3, order 80, name 'pgfcircshapes.tex'
open source     > level 3, order 81, name 'pgfcircmonopoles.tex'
close source    > level 3, order 81, name 'pgfcircmonopoles.tex'
open source     > level 3, order 82, name 'pgfcircbipoles.tex'
close source    > level 3, order 82, name 'pgfcircbipoles.tex'
open source     > level 3, order 83, name 'pgfcirctripoles.tex'
tex memory      > bumping category 'token' succeeded, details: all=8000000 | ini=493451 | max=10000000 | mem=1000000 | min=1000000 | ptr=1021693 | set=10000000 | stp=250000 | top=1000000
close source    > level 3, order 83, name 'pgfcirctripoles.tex'
open source     > level 3, order 84, name 'pgfcircquadpoles.tex'
tex memory      > bumping category 'token' succeeded, details: all=10000000 | ini=493451 | max=10000000 | mem=1250000 | min=1000000 | ptr=1277249 | set=10000000 | stp=250000 | top=1250000
close source    > level 3, order 84, name 'pgfcircquadpoles.tex'
open source     > level 3, order 85, name 'pgfcircmultipoles.tex'
close source    > level 3, order 85, name 'pgfcircmultipoles.tex'
open source     > level 3, order 86, name 'pgfcirclabel.tex'
close source    > level 3, order 86, name 'pgfcirclabel.tex'
open source     > level 3, order 87, name 'pgfcircvoltage.tex'
close source    > level 3, order 87, name 'pgfcircvoltage.tex'
open source     > level 3, order 88, name 'pgfcirccurrent.tex'
close source    > level 3, order 88, name 'pgfcirccurrent.tex'
open source     > level 3, order 89, name 'pgfcircflow.tex'
close source    > level 3, order 89, name 'pgfcircflow.tex'
close source    > level 2, order 89, name '/Users/janneman/CTX/tex/texmf-context/tex/context/modules/mkxl/m-circuitikz.mkxl'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
backend         > xmp > using file '/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 1, order 89, name './test2.tex'
system          > start used files
system          > text: test2
system          > stop used files
system          > start used files
system          >    1: filename=publ-imp-default.lua filetype=lua foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system          >    2: filename=cont-new.mkxl filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl usedmethod=database
system          >    3: filename=lang-exc.lua filetype=lua foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system          >    4: filename=lang-us.lua filetype=lua foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system          >    5: filename=/Users/janneman/Documents/byggverkstad/circuitikz/test2.tex format=tex foundname=/Users/janneman/Documents/byggverkstad/circuitikz/test2.tex fullname=/Users/janneman/Documents/byggverkstad/circuitikz/test2.tex usedmethod=direct
system          >    6: filename=m-circuitikz.mkxl filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/modules/mkxl/m-circuitikz.mkxl fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/modules/mkxl/m-circuitikz.mkxl usedmethod=database
system          >    7: filename=m-tikz.mkxl filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl usedmethod=database
system          >    8: filename=t-pgf.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex usedmethod=database
system          >    9: filename=t-pgfcor.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex usedmethod=database
system          >   10: filename=t-pgfsys.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex usedmethod=database
system          >   11: filename=t-pgfrcs.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex usedmethod=database
system          >   12: filename=t-pgfmod.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex usedmethod=database
system          >   13: filename=pgfutil-common.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex usedmethod=database
system          >   14: filename=pgfutil-common-lists.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common-lists.tex usedmethod=database
system          >   15: filename=pgfutil-context.def filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def usedmethod=database
system          >   16: filename=pgfrcs.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex usedmethod=database
system          >   17: filename=pgf.revision.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/pgf.revision.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/pgf.revision.tex usedmethod=database
system          >   18: filename=pgfsys.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex usedmethod=database
system          >   19: filename=pgfkeys.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex usedmethod=database
system          >   20: filename=pgfkeysfiltered.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex usedmethod=database
system          >   21: filename=pgf.cfg filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg usedmethod=database
system          >   22: filename=pgfsys-luatex.def filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-luatex.def fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-luatex.def usedmethod=database
system          >   23: filename=pgfsys-common-pdf.def filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def usedmethod=database
system          >   24: filename=test2.pgf format=tex foundname=test2.pgf fullname=/Users/janneman/Documents/byggverkstad/circuitikz/test2.pgf usedmethod=direct
system          >   25: filename=pgfsyssoftpath.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex usedmethod=database
system          >   26: filename=pgfsysprotocol.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex usedmethod=database
system          >   27: filename=pgfcore.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex usedmethod=database
system          >   28: filename=pgfmath.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex usedmethod=database
system          >   29: filename=pgfmathcalc.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathcalc.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathcalc.code.tex usedmethod=database
system          >   30: filename=pgfmathutil.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathutil.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathutil.code.tex usedmethod=database
system          >   31: filename=pgfmathparser.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathparser.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathparser.code.tex usedmethod=database
system          >   32: filename=pgfmathfunctions.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.code.tex usedmethod=database
system          >   33: filename=pgfmathfunctions.basic.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex usedmethod=database
system          >   34: filename=pgfmathfunctions.trigonometric.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex usedmethod=database
system          >   35: filename=pgfmathfunctions.random.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.random.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.random.code.tex usedmethod=database
system          >   36: filename=pgfmathfunctions.comparison.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex usedmethod=database
system          >   37: filename=pgfmathfunctions.base.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.base.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.base.code.tex usedmethod=database
system          >   38: filename=pgfmathfunctions.round.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.round.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.round.code.tex usedmethod=database
system          >   39: filename=pgfmathfunctions.misc.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex usedmethod=database
system          >   40: filename=pgfmathfunctions.integerarithmetics.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex usedmethod=database
system          >   41: filename=pgfmathfloat.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfloat.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfmathfloat.code.tex usedmethod=database
system          >   42: filename=pgfint.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfint.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/math/pgfint.code.tex usedmethod=database
system          >   43: filename=pgfcorepoints.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex usedmethod=database
system          >   44: filename=pgfcorepathconstruct.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex usedmethod=database
system          >   45: filename=pgfcorepathusage.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex usedmethod=database
system          >   46: filename=pgfcorescopes.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex usedmethod=database
system          >   47: filename=pgfcoregraphicstate.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex usedmethod=database
system          >   48: filename=pgfcoretransformations.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex usedmethod=database
system          >   49: filename=pgfcorequick.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorequick.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorequick.code.tex usedmethod=database
system          >   50: filename=pgfcoreobjects.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex usedmethod=database
system          >   51: filename=pgfcorepathprocessing.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex usedmethod=database
system          >   52: filename=pgfcorearrows.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex usedmethod=database
system          >   53: filename=pgfcoreshade.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex usedmethod=database
system          >   54: filename=pgfcoreimage.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex usedmethod=database
system          >   55: filename=pgfcoreexternal.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex usedmethod=database
system          >   56: filename=pgfcorelayers.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex usedmethod=database
system          >   57: filename=pgfcoretransparency.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex usedmethod=database
system          >   58: filename=pgfcorepatterns.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex usedmethod=database
system          >   59: filename=pgfcorerdf.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex usedmethod=database
system          >   60: filename=pgfmoduleshapes.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmoduleshapes.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmoduleshapes.code.tex usedmethod=database
system          >   61: filename=pgfmoduleplot.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmoduleplot.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmoduleplot.code.tex usedmethod=database
system          >   62: filename=t-pgffor.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/utilities/t-pgffor.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/utilities/t-pgffor.tex usedmethod=database
system          >   63: filename=t-pgfkey.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/utilities/t-pgfkey.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/context/pgf/utilities/t-pgfkey.tex usedmethod=database
system          >   64: filename=pgffor.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgffor.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/utilities/pgffor.code.tex usedmethod=database
system          >   65: filename=tikz.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex usedmethod=database
system          >   66: filename=pgflibraryplothandlers.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex usedmethod=database
system          >   67: filename=pgfmodulematrix.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmodulematrix.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmodulematrix.code.tex usedmethod=database
system          >   68: filename=tikzlibrarytopaths.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex usedmethod=database
system          >   69: filename=tikzlibrarycalc.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalc.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarycalc.code.tex usedmethod=database
system          >   70: filename=pgflibraryarrows.meta.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryarrows.meta.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryarrows.meta.code.tex usedmethod=database
system          >   71: filename=tikzlibrarybending.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybending.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybending.code.tex usedmethod=database
system          >   72: filename=pgfmodulebending.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmodulebending.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmodulebending.code.tex usedmethod=database
system          >   73: filename=pgfmodulenonlineartransformations.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/modules/pgfmodulenonlineartransformations.code.tex usedmethod=database
system          >   74: filename=pgflibrarycurvilinear.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/libraries/pgflibrarycurvilinear.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/libraries/pgflibrarycurvilinear.code.tex usedmethod=database
system          >   75: filename=tikzlibraryfpu.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryfpu.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibraryfpu.code.tex usedmethod=database
system          >   76: filename=pgflibraryfpu.code.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryfpu.code.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryfpu.code.tex usedmethod=database
system          >   77: filename=pgfcirc.defines.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcirc.defines.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcirc.defines.tex usedmethod=database
system          >   78: filename=pgfcircutils.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircutils.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircutils.tex usedmethod=database
system          >   79: filename=pgfcircpath.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircpath.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircpath.tex usedmethod=database
system          >   80: filename=pgfcircshapes.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircshapes.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircshapes.tex usedmethod=database
system          >   81: filename=pgfcircmonopoles.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircmonopoles.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircmonopoles.tex usedmethod=database
system          >   82: filename=pgfcircbipoles.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircbipoles.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircbipoles.tex usedmethod=database
system          >   83: filename=pgfcirctripoles.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcirctripoles.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcirctripoles.tex usedmethod=database
system          >   84: filename=pgfcircquadpoles.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircquadpoles.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircquadpoles.tex usedmethod=database
system          >   85: filename=pgfcircmultipoles.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircmultipoles.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircmultipoles.tex usedmethod=database
system          >   86: filename=pgfcirclabel.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcirclabel.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcirclabel.tex usedmethod=database
system          >   87: filename=pgfcircvoltage.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircvoltage.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircvoltage.tex usedmethod=database
system          >   88: filename=pgfcirccurrent.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcirccurrent.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcirccurrent.tex usedmethod=database
system          >   89: filename=pgfcircflow.tex filetype=tex format=tex foundname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircflow.tex fullname=/Users/janneman/CTX/tex/texmf-modules/tex/generic/circuitikz/pgfcircflow.tex usedmethod=database
system          >   90: filename=lm.lfg filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system          >   91: filename=lmroman12-regular filetype=otf format=otf foundname=/Users/janneman/CTX/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/Users/janneman/CTX/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
system          >   92: filename=latinmodern-math.otf filetype=opentypefonts foundname=/Users/janneman/CTX/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=/Users/janneman/CTX/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system          >   93: filename=lpdf-pdx.xml filetype=tex foundname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=/Users/janneman/CTX/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database
system          > stop used files
system          > start commandline options
system          > autogenerate="true"
system          > currentrun="1"
system          > fulljobname="./test2.tex"
system          > input="./test2.tex"
system          > kindofrun="1"
system          > maxnofruns="9"
system          > nonstopmode="true"
system          > synctex="0"
system          > texmfbinpath="/Users/janneman/CTX/tex/texmf-osx-64/bin"
system          > stop commandline options
system          > start commandline files
system          >    1: ./test2.tex
system          > stop commandline files
modules         > start used modules
modules         > loaded : *-circuitikz
modules         > loaded : m-tikz
modules         > stop used modules
system          > 
system          > status after finishing run
system          > 
system          >   -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system          >           string       pool       hash     lookup       node      token     buffer      input       file       nest  parameter       save       font   language       mark     insert
system          >   -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system          >   max    2097152  100000000    2097152    2097152  100000000   10000000  100000000     100000       2000      10000     100000     500000     100000      10000      10000        500
system          >   min     150000   10000000     150000     150000    1000000    1000000    1000000      10000        500       1000      20000     100000        250        250         50         10
system          >   set     500000   10000000     250000     250000   50000000   10000000   10000000     100000       2000      10000     100000     500000     100000        250        250        250
system          >   stp     100000    1000000     100000     100000     500000     250000    1000000      10000        250       1000      10000      10000        250        250         50         25
system          > 
system          >   mem     150000    1540232     150000               1000000    1500000    1000000      10000        500       1000      20000      10000    4264888         96       1200        320
system          >   all    2400000    1540232    2400000               9000000   12000000    1000000     320000      16000      48000      80000     160000    4264888         96      28800      10240
system          > 
system          >   ini    2142138     849278          0      44969          0     493451                                                                                       0                      
system          >   ptr      70542                 18944      70525               1400583          0          0          0          0          0          0          7          0          0          7
system          >   top      70543                740047     131074       4446    1382628        494         49         14         12         60        580        250        250         50         10
system          >   -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
system          > 
system          >   current input type    : initial
system          > 
system          >   approximate memory    : 35218064 (33 MB)
system          > 
system          >   expansion depth       : min: 10000, max: 1000000, set: 10000, top: 18
system          > 
system          >   luabytecode registers : 1000
system          >   luabytecode bytes     : 16016 (0 MB)
system          >   luastate bytes now    : 61811102 (58 MB)
system          >   luastate bytes max    : 61811102 (58 MB)
system          > 
system          >   file callbacks        : 67966
system          >   saved callbacks       : 11509
system          >   direct callbacks      : 5
system          >   function callbacks    : 1217
system          >   value callbacks       : 14
system          >   message callbacks     : 0
system          >   bytecode callbacks    : 599
system          > 
system          >   mp instances          : 0
system          >   mp estimated memory   : 0 (0 MB)
system          >   mp file callbacks     : 0
system          >   mp text callbacks     : 0
system          >   mp script callbacks   : 0
system          >   mp log callbacks      : 0
system          > 
system          >   total callbacks       : 81310
system          >   mp total callbacks    : 0
system          >   backend callbacks     : 0
system          > 
mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /Users/janneman/CTX/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.009 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 93 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 500 modules (0.403 sec), 99 tables (0.024 sec), 599 chunks (0.427 sec)
mkiv lua stats  > traced context: maxstack: 1606, freed: 0, unreachable: 1606
mkiv lua stats  > cleaned up reserved nodes: 71 nodes, 9 lists of 448
mkiv lua stats  > node memory usage: 6 attribute, 3 attribute_list, 1 glue, 59 glue_spec, 3 kern, 2 penalty, 2 temp
mkiv lua stats  > node list callback tasks: 12 unique task lists, 7 instances (re)created, 44 calls
mkiv lua stats  > synctex tracing: 83 referenced files, 24 files ignored, 3 objects flushed, logfile: test2.synctex
mkiv lua stats  > used backend: pdf
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: file: 67966, saved: 11509, direct: 5, function: 1217, value: 14, message: 0, bytecode: 599, late 0, total: 81310 (81310 per page)
mkiv lua stats  > randomizer: resumed with value 0.73123285637496
mkiv lua stats  > loaded tex modules: 2 requested, all found (*-circuitikz m-tikz)
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.119, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.198 seconds 
mkiv lua stats  > font embedding time: 0.001 seconds, 1 fonts
mkiv lua stats  > result saved in file: test2.pdf, compresslevel 1, objectcompresslevel 3
mkiv lua stats  > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries
mkiv lua stats  > used platform: osx-64, type: unix, binary subtree: texmf-osx-64
mkiv lua stats  > used engine: luametatex version: 2.0932, functionality level: 20211201, format id: 606, compiler: clang
mkiv lua stats  > tex properties: 740047 hash slots used of 2097152, 70525 control sequences, approximate memory usage: 33 MB
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 61 MB, ctx: 59 MB, max: 59 MB, symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 1.364 seconds, 1 processed pages, 1 shipped pages, 0.733 pages/second

[-- Attachment #3: Type: text/plain, Size: 4141 bytes --]



Fingers crossed and praying and impressive help from Hans and Aditya

Many thanks

Sincerely

Jan-Erik

> 14 dec. 2021 kl. 04:57 skrev Aditya Mahajan via ntg-context <ntg-context@ntg.nl>:
> 
> I tested with my course assignments (simple tikz block diagrams, lots of pgdplots code) and everything works correctly. I haven't tested circuitikz; the simple example fails and I am trying to understand why that is happening.
> 
>> Aditya: can you check if we load enough? 
> 
> I believe so. This is what my notes say (it is no fun to trace down these files):
> 
> % Order in which files are loaded
> % 1. t-tikz
> % 1.1 t-pgf
> % 1.1.1 t-pgfcor
> % 1.1.1.1 t-pgfsys
> % 1.1.1.1.1 t-pgfrcs
> % 1.1.1.1.1.1 t-pgfmod  % Ignore
> % 1.1.1.1.1.2 pgfutil-common.tex            (1)
> % 1.1.1.1.1.3 pgfutil-context.def           (2)
> % 1.1.1.1.1.4 pgfrcs.code.tex               (3)
> % 1.1.1.1.2 pgfsys.code.tex                 (4)
> % 1.1.1.1.3 pgfsyssoftpath.code.tex         (5)
> % 1.1.1.1.4 pgfsysprotocol.code.tex         (6)
> % 1.1.1.2 pgfcore.code.tex                  (7)
> % 1.1.2 \usepgfmodule[shapes,plot]          (8)
> % 1.2 t-pgffor
> % 1.2.1 t-pgfrcs (already loaded)
> % 1.2.2 t-pgfkey
> % 1.2.2.1 pgfkeys.code.tex                  (9)
> % 1.2.3 pgffor.code.tex                    (10)
> % 1.3 tikz.code.tex                        (11)
> 
> You also have pgfmoduleplot.code.tex, which I had missed.
> 
>> We really need to get rid of all
>> these (kind of strange) t-* modules that somehow ended up in tikz and it's way
>> easier and robust to occasionally add something needed to m-tikz than to try
>> to catch hard-to-locate-and-fix stuff in the tikz distribution. If needed we
>> can apply runtime patches too.
> 
> Agreed. I believe that the pgf module provides so many modules as a means to be modular. For example, it possible to use `pgffor` module to get the for loop syntax; or load `pgfkey` to get the key-value arguments, etc. But each of these t-* files has so much boilerplate code, so I like your method better. 
> 
>> (nyw, it looks like tikz creates empty pfg files during a run but that's
>> probbably has a reason)
> 
> tikz's ChangeLog has the following entries:
> 
> 2007-01-18:
>    - Fixed .aux problems in plain and ConTeXt mode. Using .pgf as
>      extension now.
> 
> Grepping the source for `.pgf` gives:
> 
> tex/generic/pgf/utilities/pgfutil-context.def:  \pgfutil@IfFileExists{\jobname.pgf}{\input \jobname.pgf\relax}{}
> tex/generic/pgf/utilities/pgfutil-context.def:  \immediate\csname openout\endcsname\pgfutil@auxout\jobname.pgf\relax
> tex/generic/pgf/utilities/pgfutil-plain.def:  \pgfutil@IfFileExists{\jobname.pgf}{\input \jobname.pgf\relax}{}
> tex/generic/pgf/utilities/pgfutil-plain.def:  \immediate\csname openout\endcsname\pgfutil@auxout\jobname.pgf
> 
> The file handle \pgfutil@auxout is used in the macro \pgfutil@writetoaux which gets used in the driver files to write absolute positioning stuff to file. For example, pgfsys-luatex.def has:
> 
> \def\pgfsys@markposition#1{%
>  \savepos%
>  \edef\pgf@temp{#1}%
>  \expandafter\pgfutil@writetoaux\expandafter{%
>    \expandafter\noexpand\expandafter\pgfsyspdfmark\expandafter{\pgf@temp}{\the\lastxpos}{\the\lastypos}}%
> }
> 
> This can easily be stored in the tuc file using two-pass data, but I don't use this feature of tikz, so don't have examples to test this. 
> 
> @HenriMenke: Do you know if it is save to not create the `.pgf` file and rewrite the above macro to read store the \pgfsyspdfmark table in the `.tuc` file?
> 
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #4: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2021-12-14 13:14 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-03  7:54 circuitikz module seems broken 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
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

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).