From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109706 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christian Prim Newsgroups: gmane.comp.tex.context Subject: Re: Problem with gnuplot-module in lmtx Date: Fri, 27 Nov 2020 18:10:08 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3369041388283427023==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13689"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 27 18:11:02 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 1kihGw-0003U2-Nq for gctc-ntg-context-518@m.gmane-mx.org; Fri, 27 Nov 2020 18:11:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 44D931AA791; Fri, 27 Nov 2020 18:10:25 +0100 (CET) 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 YoTwNmNm3GdY; Fri, 27 Nov 2020 18:10:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 53FE31AA718; Fri, 27 Nov 2020 18:10:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CF1F01AA5FE for ; Fri, 27 Nov 2020 18:10:22 +0100 (CET) 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 TkcDpvTDGYuQ for ; Fri, 27 Nov 2020 18:10:21 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.177; helo=mail-il1-f177.google.com; envelope-from=christian.prim@gmail.com; receiver= Original-Received: from mail-il1-f177.google.com (mail-il1-f177.google.com [209.85.166.177]) (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 BE82C1AA5F2 for ; Fri, 27 Nov 2020 18:10:21 +0100 (CET) Original-Received: by mail-il1-f177.google.com with SMTP id p5so5188191iln.8 for ; Fri, 27 Nov 2020 09:10:21 -0800 (PST) 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; bh=JG4EhDaHcQCnKatSTTUOoSBVMrhLUcUn7r6hlanHJuA=; b=RfJxINJ2IhJruKpdjyIJreaHw46LDu69l6+YeUyTkZjkYwQMtUYmqrEfl3S6Hgdiku tUVLYwiIK5vlWAn13fksBHzHvvs4Ajs5WUPxzuU7U64zbBDJwYiNTy9Csw/GAzF+X2xP Fn9y6ZK7DQEkO3PAihRwcGHS6ZHJh/8XXwCMmURIGKE0Teyt9HSU/V7J1H4uBhtO8Uj8 YEnuNEiifUU6LVBpgsFzzq3/o1B+vbFVQ6UcoanHUiDydnJfMyLdZ5RSdt1rg8ycUVGO gjWTEETAlcsKKw01jjCBNt5rVgGdLPG5YuXFZHZjbq2rlsp0HZZiGql8vyTeD0yQVldN YPHw== X-Gm-Message-State: AOAM530+H+cwAwXWyEk/7c5FSHw8qjSdZJ3Q3jgHKwhHEzkQb/+o/fL7 MYKBhZE5831pf77LoEuDb/lWiuabnAKLvFoSHnYR2dtoOmw= X-Google-Smtp-Source: ABdhPJxLXZB95F9/xPL3W/SE1sUgd6PrMD/PpEsto/Tq9jtTFg/cGCuKUZq4l9rc1XFds6cyFqf/Ls98lCROstWXais= X-Received: by 2002:a05:6e02:128b:: with SMTP id y11mr7953013ilq.75.1606497020106; Fri, 27 Nov 2020 09:10:20 -0800 (PST) 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:109706 Archived-At: --===============3369041388283427023== Content-Type: multipart/alternative; boundary="000000000000375bfa05b519bcdd" --000000000000375bfa05b519bcdd Content-Type: text/plain; charset="UTF-8" Thanks Hans the new upload works with the gnuplot-module as it should be! Christian Am Mi., 25. Nov. 2020 um 14:25 Uhr schrieb Christian Prim < christian.prim@gmx.ch>: > Hi > > with the latest version of lmtx (upgraded a minute ago), the > gnuplot-example from the wiki-page (for lmtx with externalfigure) doesn't > work. Error is: > > tex error > tex error on line 1 in file > virtual://buffer.svg-sin-inclusion.1: Undefined control sequence > > \font_basics_predefine #1#2->\font_basics_defined_font_yes > [#2]\gletcsname #1\expandafter \endcsname \csname > \v_font_identifier_basic \endcsname > \predefinedfont [#1]->\ifcsname \??predefinedfont #1\endcsname > \lastnamedcs \else \font_basics_predefined {#1} > \fi > \svgnormal ...ame \??svgfamily #1\endcsname \lastnamedcs \else > #1\fi -#2-#3}\predefinedfont [\s!spec :\p_font *\s!default \space @ 10bp] > \fi #4\egroup > > \svgstartlayer > \svgscaled{1}{arial}{normal}{normal}{\svgscaled{1}{arial}{normal}{normal}{\svghashed{1}}} > \svgstoplayer > > \ > > \global \setbox \mptextbox \hbox {\clf_mptexttoks > } > ... > > \includegnuplotsvgfile[./sin.svg] > \resetbuffer[svg-sin-inclusion] > > > > > The control sequence at the end of the top line of your error message was > never > \def'ed. You can just continue as I'll forget about whatever was undefined. > > > mtx-context | fatal error: return code: 256 > > here is the code: > > gnuplot.tex: > \usemodule[gnuplot] > > \starttext > \externalfigure[sin.gp][conversion=svg,width=4cm] > \stoptext > > sin.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) > > The same code works on older lmtx (current version: 2020.09.20 23:02). > It's not on the same linux-machine, but both have the same gnuplot-version > installed. > > Is this a bug? > > Thanks > Christian > --000000000000375bfa05b519bcdd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Hans

the new upload works with t= he gnuplot-module as it should be!

Christian
=

= Am Mi., 25. Nov. 2020 um 14:25=C2=A0Uhr schrieb Christian Prim <christian.prim@gmx.ch>:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
Hi
with the latest version of lmtx (upgraded a minute ago), the g= nuplot-example from the wiki-page (for lmtx with externalfigure) doesn'= t work. Error is:

tex error =C2=A0 =C2=A0 =C2=A0 &= gt; tex error on line 1 in file virtual://buffer.svg-sin-inclusion.1: Undef= ined control sequence

<macro> \font_basics_predefine #1#2->= \font_basics_defined_font_yes
=C2=A0 =C2=A0 [#2]\gletcsname #1\expandaft= er \endcsname \csname \v_font_identifier_basic \endcsname
<macro> = \predefinedfont [#1]->\ifcsname \??predefinedfont #1\endcsname \lastname= dcs \else \font_basics_predefined {#1}
=C2=A0 =C2=A0 \fi
<macro>= ; \svgnormal ...ame \??svgfamily #1\endcsname \lastnamedcs \else #1\fi -#2-= #3}\predefinedfont [\s!spec :\p_font *\s!default \space @ 10bp]
=C2=A0 = =C2=A0 \fi #4\egroup

<lua output> \svgstartlayer \svgscaled{1}= {arial}{normal}{normal}{\svgscaled{1}{arial}{normal}{normal}{\svghashed{1}}= }
=C2=A0 =C2=A0 \svgstoplayer

<lua output> \

<loc= al> \global \setbox \mptextbox \hbox {\clf_mptexttoks
=C2=A0 =C2=A0 }=
...

<line 6.1> \includegnuplotsvgfile[./sin.svg]
=C2=A0= =C2=A0 \resetbuffer[svg-sin-inclusion]

<empty file>

The control sequence at the end of the top line of your error message was= never
\def'ed. You can just continue as I'll forget about whate= ver was undefined.


mtx-context =C2=A0 =C2=A0 | fatal error: retu= rn code: 256

here is the code:

<= /div>
gnuplot.tex:
\usemodule[gnuplot]

\starttext
\= externalfigure[sin.gp][conv= ersion=3Dsvg,width=3D4cm]
\stoptext

set format xy &q= uot;$%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)

The same code works on older lmtx (current version: 2020.09.20 23:= 02). It's not on the same linux-machine, but both have the same gnuplot= -version installed.

Is this a bug?

<= /div>
Thanks
Christian
--000000000000375bfa05b519bcdd-- --===============3369041388283427023== 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== --===============3369041388283427023==--