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
___________________________________________________________________________________

Reply via email to