ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* gnuplot module broken with latest 2020-07-13 16:31
@ 2020-07-13 18:53 Adam Reviczky
  2020-07-13 21:38 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Reviczky @ 2020-07-13 18:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2256 bytes --]

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?
Version 2020-07-09 14:50 is fine.

Regards,
Adam

[-- Attachment #1.2: Type: text/html, Size: 2918 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnuplot module broken with latest 2020-07-13 16:31
  2020-07-13 18:53 gnuplot module broken with latest 2020-07-13 16:31 Adam Reviczky
@ 2020-07-13 21:38 ` Hans Hagen
  2020-07-14  0:08   ` Adam Reviczky
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2020-07-13 21:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Adam Reviczky

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnuplot module broken with latest 2020-07-13 16:31
  2020-07-13 21:38 ` Hans Hagen
@ 2020-07-14  0:08   ` Adam Reviczky
  0 siblings, 0 replies; 3+ messages in thread
From: Adam Reviczky @ 2020-07-14  0:08 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3682 bytes --]

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 <j.hagen@xs4all.nl> 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
> > </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
> -----------------------------------------------------------------
>

[-- Attachment #1.2: Type: text/html, Size: 5359 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-14  0:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13 18:53 gnuplot module broken with latest 2020-07-13 16:31 Adam Reviczky
2020-07-13 21:38 ` Hans Hagen
2020-07-14  0:08   ` Adam Reviczky

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).