ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jigé via ntg-context" <ntg-context@ntg.nl>
To: Mailing List for ConTeXt Users <ntg-context@ntg.nl>
Cc: Jigé <broumpf-c@yahoo.com>
Subject: [NTG-context] TiKz with LMTX
Date: Sun, 4 Jun 2023 09:11:13 +0000 (UTC)	[thread overview]
Message-ID: <1949632129.10002246.1685869873625@mail.yahoo.com> (raw)
In-Reply-To: <1949632129.10002246.1685869873625.ref@mail.yahoo.com>

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.

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

       reply	other threads:[~2023-06-04  9:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1949632129.10002246.1685869873625.ref@mail.yahoo.com>
2023-06-04  9:11 ` Jigé via ntg-context [this message]
2023-06-04 14:44   ` Hans Hagen via ntg-context
2023-06-04 15:10     ` Floris van Manen via ntg-context
2023-06-04 16:18       ` Hans Hagen via ntg-context
2023-06-04 21:58         ` Floris van Manen via ntg-context
2023-06-05  5:43           ` Mikael Sundqvist via ntg-context
2023-06-05  8:35             ` vm via ntg-context
2023-06-05 17:40   ` Aditya Mahajan via ntg-context
2023-06-06  2:32     ` Aditya Mahajan via ntg-context
     [not found] <mailman.1302.1685898062.41142.ntg-context@ntg.nl>
2023-06-04 21:04 ` Jigé via ntg-context
     [not found] <mailman.1322.1685946193.41142.ntg-context@ntg.nl>
2023-06-05 10:33 ` Jigé via ntg-context
2023-06-05 11:02   ` Floris van Manen via ntg-context
2023-06-05 12:49     ` Carlos via ntg-context
2023-06-05 13:06       ` Floris van Manen via ntg-context
2023-06-05 13:40         ` Carlos via ntg-context
2023-06-05 19:43         ` Carlos via ntg-context
2023-06-05 20:16           ` Carlos via ntg-context
     [not found] <mailman.1332.1685970748.41142.ntg-context@ntg.nl>
2023-06-05 14:52 ` Jigé via ntg-context
     [not found] <mailman.49.1686219733.1391.ntg-context@ntg.nl>
2023-06-08 18:37 ` Jigé via ntg-context
2023-06-09  3:57   ` Aditya Mahajan via ntg-context
2023-06-09  6:13     ` Hans Hagen via ntg-context
2023-06-09 16:43       ` Aditya Mahajan via ntg-context
2023-06-12 16:49     ` Carlos via ntg-context
2023-06-12 16:59       ` Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1949632129.10002246.1685869873625@mail.yahoo.com \
    --to=ntg-context@ntg.nl \
    --cc=broumpf-c@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).