From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108040 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Reviczky Newsgroups: gmane.comp.tex.context Subject: Re: gnuplot module broken with latest 2020-07-13 16:31 Date: Tue, 14 Jul 2020 01:08:59 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8638154842527782691==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 14 02:14:20 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jv8aR-0007lk-Ui for gctc-ntg-context-518@m.gmane-mx.org; Tue, 14 Jul 2020 02:14:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7B6041859A6; Tue, 14 Jul 2020 02:09:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6X6FoMk27NR2; Tue, 14 Jul 2020 02:09:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4ABFD1859A9; Tue, 14 Jul 2020 02:09:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E401618599E for ; Tue, 14 Jul 2020 02:09:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OCtiYC3ATUmA for ; Tue, 14 Jul 2020 02:09:11 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.48; helo=mail-ed1-f48.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 717CD1859AD for ; Tue, 14 Jul 2020 02:09:11 +0200 (CEST) Original-Received: by mail-ed1-f48.google.com with SMTP id e22so15355434edq.8 for ; Mon, 13 Jul 2020 17:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0E6r++nWg2XTlAYTuIE+7UE0PvzT9JthSbMhWPPFywY=; b=YZnlwAI1WwDxlou1fOBr/2piN1L6BeMT5UVwzFQ3e3dwxKSRv1n9mnZ2ilE39DgGCW eE4Kub0GY+kKtfjxy23Kq/MagoGs/Wn7MgPc09WdJ/nctB0iQX1q5XMM6GAh3W6nsnmy dhFr/XPxz4dCAMwT0gy0+t+oXTLRWQSYnLcrtp+9dpnoVroOF/oFSVkEWOLxS++EzoEl 91+ZxY8GBb5Qw4OGbndG5V0ZXlW4Ztpbf/UidsH2R85b20eIJgmH3Nu+04VYrD2qaNWk Bwnymy5rkl0FdgJRHd18m1UFK80vAmqqnYZ8OLHFxAfwaQ+8qn0CzAg47Rr6+cOQL3BC AuBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0E6r++nWg2XTlAYTuIE+7UE0PvzT9JthSbMhWPPFywY=; b=ttJ4OvJ3I3LAni06jCxC7HAeyBoImbHpM++ytl+53dWSkTpiXoCfR1GLVxIvzpREUR Gphklnd7i8CWcsihGGP9Uu+jMavDsg2Eaoz8kt1R6urBGSFvKqgqbl76/4/RiQq5e94r JhcbFm4E3Q0u2K1vuT6c6EP3kj+7Zf7T+DyXCiXIhflm02oxcigjQ2eC3fGj+BOJJGEJ bJPr9EKqZDjZHmsDNNR3ojVSMGOjuwy4ZreI+rtHDuEsgOGxZP5A88Zf+XYev0tuuLQM TeVqxUxp5Pa/NUL+Td67j/p92sAv+oxHDdhI5toBSPS0fNT8cNncDXa1UwBBP24abKlc IsEw== X-Gm-Message-State: AOAM533Dm5R4GYp8v6kfKB4wtXc7TeGKg3kGJtv9gWprRFL2glkdaxxX qwo/tHqENOcXVVH9VyR6R95i8yTiAImllIoPc8A= X-Google-Smtp-Source: ABdhPJyunWQfWtr2bm+ZMg2Cg9gKvECxALq3s6iTFEGgaJgtKQrgcNw3e+oge4vBM8w8cRAGVFOCD7vR9Bh6jkGjkrc= X-Received: by 2002:a05:6402:1d35:: with SMTP id dh21mr1940710edb.186.1594685351005; Mon, 13 Jul 2020 17:09:11 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:108040 Archived-At: --===============8638154842527782691== Content-Type: multipart/alternative; boundary="000000000000e0150c05aa5b9d41" --000000000000e0150c05aa5b9d41 Content-Type: text/plain; charset="UTF-8" Many thanks for the quick fix Hans, I have tried the lmtx inclusions as well, very nice indeed (and added it to the wiki)! Kind Regards, Adam Reviczky On Mon, Jul 13, 2020 at 10:38 PM Hans Hagen wrote: > On 7/13/2020 8:53 PM, Adam Reviczky wrote: > > Hi, > > > > Using the minimal example from the contextgarden for gnuplot > > (https://wiki.contextgarden.net/Gnuplot) I am getting the following > > error message: > > > > This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev/Debian) > > system commands enabled. > > open source > level 1, order 1, name > > '/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv' > > system > > > system > ConTeXt ver: 2020.07.13 16:23 MKIV fmt: 2020.7.13 > > int: english/english > > system > > > system > 'cont-new.mkiv' loaded > > open source > level 2, order 2, name > > '/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv' > > system > beware: some patches loaded from cont-new.mkiv > > close source > level 2, order 2, name > > '/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv' > > system > files > jobname 'mwe', input './mwe', result 'mwe' > > fonts > latin modern fonts are not preloaded > > languages > language 'en' is active > > open source > level 2, order 3, name '/tmp/4/mwe.tex' > > modules > 'gnuplot' is loaded > > open source > level 3, order 4, name > > '/usr/share/texmf/tex/context/third/gnuplot/t-gnuplot.mkiv' > > loading > Gnuplot module > > open source > level 4, order 5, name > > '/usr/share/texmf/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' > > close source > level 4, order 5, name > > '/usr/share/texmf/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' > > close source > level 3, order 5, name > > '/usr/share/texmf/tex/context/third/gnuplot/t-gnuplot.mkiv' > > > > lua error > lua error on line 4 in file /tmp/4/mwe.tex: > > > > /usr/share/texmf/tex/context/base/mkiv/buff-ini.lua:439: attempt to call > > a nil value (upvalue 'gettoken') > > stack traceback: > > /usr/share/texmf/tex/context/base/mkiv/buff-ini.lua:439: in upvalue > 'pickup' > > /usr/share/texmf/tex/context/base/mkiv/buff-ini.lua:635: in function > > > > (...tail calls...) > > > > 1 \usemodule[gnuplot] > > 2 > > 3 % write a script for gnuplot > > 4 >> \startGNUPLOTscript[sin] > > 5 plot sin(x) > > 6 \stopGNUPLOTscript > > 7 > > 8 % include the resulting graphic into the document > > 9 \useGNUPLOTgraphic[sin] > > 10 > > > > mtx-context | fatal error: return code: 256 > > > > Does the gnuplot module need adjustments? > No, i messed up something ... will be fixed tomorrow > > Do you have lmtx installed? It has nicer gnuplot support: > > m-gnuplot-demo.gp : > > ------------------------------------------------ > set format xy "$%g$" > > set title 'This is a plot of $y=\\sin(x)$' > set xlabel 'This is the $x$ axis' > set ylabel 'This is the $y$ axis' > > plot [0:6.28] [0:1] sin(x) > ------------------------------------------------ > > Can be included with: > > \starttext > > \externalfigure[m-gnuplot-demo.gp][conversion=svg,width=4cm] > > \externalfigure[m-gnuplot-demo.gp][conversion=svg,width=8cm] > > \stoptext > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --000000000000e0150c05aa5b9d41 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks for the quick fix Hans,
I have tried the lmtx inclusions as well, very nice indeed (and= added it to the wiki)!

Kind Regards,
Ad= am Reviczky

On Mon, Jul 13, 2020 at 10:38 PM Hans Hagen <j.hagen@xs4all.nl> = wrote:
On 7/13/2= 020 8:53 PM, Adam Reviczky wrote:
> Hi,
>
> Using the minimal example from the contextgarden for gnuplot
> (https://wiki.contextgarden.net/Gnuplot) I am getting= the following
> error message:
>
> This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev/Debian)
>=C2=A0 =C2=A0system commands enabled.
> open source =C2=A0 =C2=A0 > level 1, order 1, name
> '/usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv'
> system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
> system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> ConTeXt =C2=A0ver: 2020.= 07.13 16:23 MKIV =C2=A0fmt: 2020.7.13
>=C2=A0 =C2=A0int: english/english
> system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0>
> system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> 'cont-new.mkiv' = loaded
> open source =C2=A0 =C2=A0 > level 2, order 2, name
> '/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
> system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> beware: some patches loa= ded from cont-new.mkiv
> close source =C2=A0 =C2=A0> level 2, order 2, name
> '/usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv'
> system =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> files > jobname '= mwe', input './mwe', result 'mwe'
> fonts =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > latin modern fonts are n= ot preloaded
> languages =C2=A0 =C2=A0 =C2=A0 > language 'en' is active > open source =C2=A0 =C2=A0 > level 2, order 3, name '/tmp/4/mwe.= tex'
> modules =C2=A0 =C2=A0 =C2=A0 =C2=A0 > 'gnuplot' is loaded > open source =C2=A0 =C2=A0 > level 3, order 4, name
> '/usr/share/texmf/tex/context/third/gnuplot/t-gnuplot.mkiv' > loading =C2=A0 =C2=A0 =C2=A0 =C2=A0 > Gnuplot module
> open source =C2=A0 =C2=A0 > level 4, order 5, name
> '/usr/share/texmf/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'= ;
> close source =C2=A0 =C2=A0> level 4, order 5, name
> '/usr/share/texmf/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'= ;
> close source =C2=A0 =C2=A0> level 3, order 5, name
> '/usr/share/texmf/tex/context/third/gnuplot/t-gnuplot.mkiv' >
> lua error =C2=A0 =C2=A0 =C2=A0 > lua error on line 4 in file /tmp/4= /mwe.tex:
>
> /usr/share/texmf/tex/context/base/mkiv/buff-ini.lua:439: attempt to ca= ll
> a nil value (upvalue 'gettoken')
> stack traceback:
> /usr/share/texmf/tex/context/base/mkiv/buff-ini.lua:439: in upvalue &#= 39;pickup'
> /usr/share/texmf/tex/context/base/mkiv/buff-ini.lua:635: in function <= br> > </usr/share/texmf/tex/context/base/mkiv/buff-ini.lua:626>
> (...tail calls...)
>
>=C2=A0 =C2=A01 =C2=A0 =C2=A0 \usemodule[gnuplot]
>=C2=A0 =C2=A02
>=C2=A0 =C2=A03 =C2=A0 =C2=A0 % write a script for gnuplot
>=C2=A0 =C2=A04 >> =C2=A0\startGNUPLOTscript[sin]
>=C2=A0 =C2=A05 =C2=A0 =C2=A0 =C2=A0 =C2=A0plot sin(x)
>=C2=A0 =C2=A06 =C2=A0 =C2=A0 \stopGNUPLOTscript
>=C2=A0 =C2=A07
>=C2=A0 =C2=A08 =C2=A0 =C2=A0 % include the resulting graphic into the d= ocument
>=C2=A0 =C2=A09 =C2=A0 =C2=A0 \useGNUPLOTgraphic[sin]
> 10
>
> mtx-context =C2=A0 =C2=A0 | fatal error: return code: 256
>
> Does the gnuplot module need adjustments?
No, i messed up something ... will be fixed tomorrow

Do you have lmtx installed? It has nicer gnuplot support:

m= -gnuplot-demo.gp :

------------------------------------------------
set format xy "$%g$"

set title=C2=A0 'This is a plot of $y=3D\\sin(x)$'
set xlabel 'This is the $x$ axis'
set ylabel 'This is the $y$ axis'

plot [0:6.28] [0:1] sin(x)
------------------------------------------------

Can be included with:

\starttext

=C2=A0 =C2=A0 =C2=A0\externalfigure[m-gnuplot-demo.gp][conversion=3Dsvg,= width=3D4cm]

=C2=A0 =C2=A0 =C2=A0\externalfigure[m-gnuplot-demo.gp][conversion=3Dsvg,= width=3D8cm]

\stoptext


-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--000000000000e0150c05aa5b9d41-- --===============8638154842527782691== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8638154842527782691==--