Thanks a lot Aditya.

The very simple TikZ example with the cross works.
The more complex example with the trigonometric circle from the pgf manual,
quoted in https://wiki.contextgarden.net/TikZ , does not compile
unless you also comment out
or find(n,"pdftex")
in line 181 of the mtx-install-modules.lua file
before doing mtxrun --script install-modules --install tikz
but I could guess that from a:
Driver file ``pgfsys-pdftex.def'' not found..
message

Thanks again
Jean-Guillaume


Le jeudi 8 juin 2023 à 12:28:34 UTC+2, <ntg-context-request@ntg.nl> a écrit :

Date: Mon, 5 Jun 2023 22:32:37 -0400 (EDT)
From: Aditya Mahajan <adityam@umich.edu>
To: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
Subject: Re: [NTG-context] TiKz with LMTX
Message-ID: <p3630276-r829-9118-17n5-12242rq53878@hzvpu.rqh>
Content-Type: text/plain; charset="iso-8859-15"

On Mon, 5 Jun 2023, Aditya Mahajan via ntg-context wrote:

> On Sun, 4 Jun 2023, Jig? via ntg-context wrote:
>
>
> > $ mkdir ~/.local/share/context
> > $ cd ~/.local/share/context
> > $ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip
> > $ unzip context-linux-64.zip
> > $ sh install.sh
> > $ rm context-linux-64.zip
> > $ cd ~/.local/share/context/tex
> > $ mtxrun --script install-modules --list
> > $ mtxrun --script install-modules --install tikz
> > (And for good measure, I later did `mtxrun --script install-modules --install all`)
> >
> > $ cd my-working-directory
> > $ vi some-sample-context-file.tex
> > $ export PATH=/home/myname/.local/share/context/tex/texmf-linux-64/bin:$PATH
> > $ context some-sample-context-file.tex
> >
> > Did I miss anything? It works just fine.
>
> On a new machine and pgfsys-luatex.def is missing for me as well. I'll try to check what is going on.

This was a bit crazy to track down. Here is the fix:

In line 180 of mtx-install-modules.lua, comment the line

        or find(n,"luatex")

Otherwise, the file

    tex/generic/pgf/systemlayer/pgfsys-luatex.def

is not extracted from the tikz.zip!

I don't know why OP and I (both on archlinux) were the only ones who had pgfsys-luatex.def missing. Everyone should have been affected by this.

Aditya


PS: Also on line 103, it may be a good idea to change the curl call to

    curl --ssl --location

mirros.ctan.org will also do a HTTP 302 redirect and without the --location flag, curl will not follow the redirect.