On 6/4/2023 11:11 AM, Jigé via ntg-context wrote:
Hi all.
I'm trying to use TiKz inside ConTeXt. It has not been working for some time...
I checked the messages from last month on the mailing list (late april, early
may). Il didn't quit actually understand what was going on but I read that some
files had to be updated. Maybe as a workaround, while waiting for a new LMTX
format? Users reported it to work after some file updates.
So, because I was using a TeXlive package on Gnu/Archlinux, which might be
updated only after a few months or a year, I followed the wiki and did a
personal fresh install like this :
$ 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.
But with a TiKz picture included, a very simple one like this:
\usemodule[tikz]
\starttext
We are working on
\starttikzpicture
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\stoptikzpicture.
\stoptext
It doesn't compile. The output begins with:
resolvers | formats | executing runner 'run luametatex format':
[...]
and ends with:
[...]
open source > level 4, order 11, name 'pgf.cfg'
close source > level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-luatex.def
tex error > tex error on line 1757 in file pgfsys.code.tex: Package pgf
Error: Driver file ``pgfsys-luatex.def'' not found.
what if you run "mtxrun --generate" beforehand?
is that file somewhere in the tree?
it works here
<macro> \pgfutil@packageerror
#1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2}
<macro> \pgfutil@IfFileExists
#1#2#3->\openin \pgfutil@inputcheck =#1 \ifeof \pgfutil@inputcheck #3
\relax \else #2\relax \fi \closein \pgfutil@inputcheck
<line 6.1757>
\pgferror{Driver file ``\pgfsysdriver'' not found.}}
<empty file>
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.
mtx-context | fatal error: return code: 1
The PATH is set correctly, this is not the output from using the regular
TeXlive package which uses luatex, terminates because it doesn't understand
\pgfsetxvec{\pgfpoint{1cm}{0cm}} and makes no reference to Hercule Poirot.
I ingenuously tried to explicitly set some formats in the file
~/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg
but with no success.
Is it related to this issue: https://github.com/pgf-tikz/pgf/issues/990 ?
Thanks in advance!...
Best regards
Jean-Guillaume
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
--
-----------------------------------------------------------------
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________