From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Adam Reviczky <reviczky@gmail.com>
Subject: Re: gnuplot module broken with latest 2020-07-13 16:31
Date: Mon, 13 Jul 2020 23:38:11 +0200 [thread overview]
Message-ID: <dd69e021-1f86-0451-0f04-c3007a35fd0a@xs4all.nl> (raw)
In-Reply-To: <CABaoHut-a1YHc5P6oY8yzr+fPnr-oT8VWWWvqwbon8=10ZuyLw@mail.gmail.com>
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
> </usr/share/texmf/tex/context/base/mkiv/buff-ini.lua:626>
> (...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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-07-13 21:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-13 18:53 Adam Reviczky
2020-07-13 21:38 ` Hans Hagen [this message]
2020-07-14 0:08 ` Adam Reviczky
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=dd69e021-1f86-0451-0f04-c3007a35fd0a@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ntg-context@ntg.nl \
--cc=reviczky@gmail.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).