From: Christian Prim <christian.prim@gmx.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: gnuplot-module broken under lmtx
Date: Wed, 10 Apr 2019 16:34:13 +0200 [thread overview]
Message-ID: <CA+9XOxr_6Rj6NqTjMXS4Rqn5_UrRudqSMGw4EN8DdBfk7YHyLw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 6028 bytes --]
Hi
It's little off-topic as there are officially no modules included in lmtx.
But when I used the modules from a mkiv-installation, there was little to
no problem. But with the gnuplot-module I can't fix the error myself.
MWE:
\usemodule[gnuplot]
\startGNUPLOTscript[sin]
plot sin(x)
\stopGNUPLOTscript
\starttext
\placefigure[here]{Sine Test}{\useGNUPLOTgraphic[sin]}
\stoptext
Under mkiv everything is fine. mkiv creates a file gnuplot-gnuplot-1.plt,
sends this file to gnuplot and uses the output gnuplot-gnuplot-1-ctx.tex.
Under lmtx only the files gnuplot-gnuplot-1.tmp
and gnuplot-gnuplot-inclusions.tmp are created. When I copy the correct
.plt file from a mkiv-run, no gnuplot-gnuplot-1-ctx.tex is generated. If I
copy the correct -ctx.tex file from a mkiv-run, I still get an error.
Relevant part from the logfile of a working mkiv-run:
modules > 'gnuplot' is loaded
open source > level 3, order 4, name
'/home/user/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
loading > Gnuplot module
open source > level 4, order 5, name
'/home/user/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 4, order 5, name
'/home/user/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 3, order 5, name
'/home/user/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
close source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
metapost > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost > loading 'metafun' as
'/home/user/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost > initializing number mode 'scaled'
floatblocks > '1' placed (here)
from a lmtx-run (no .plt-file and -ctx.tex given):
modules > 'gnuplot' is loaded
open source > level 3, order 4, name
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
loading > Gnuplot module
open source > level 4, order 5, name
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 4, order 5, name
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 3, order 5, name
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
mtxrun |
mtxrun | executing: gnuplot gnuplot-gnuplot-1.plt
mtxrun |
mtxrun |
/home/user/lmtx/tex/texmf-linux-64/bin/mtxrun.lua:26166: attempt to call a
nil value (field 'exec')
aaa > mtxrun --direct gnuplot gnuplot-gnuplot-1.plt
floatblocks > no block given
floatblocks > '1' placed (here)
lmtx with given .plt and -ctx.tex-file:
modules > 'gnuplot' is loaded
open source > level 3, order 4, name
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
loading > Gnuplot module
open source > level 4, order 5, name
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 4, order 5, name
'/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 3, order 5, name
'/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv'
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
mtxrun |
mtxrun | executing: gnuplot gnuplot-gnuplot-1.plt
mtxrun |
mtxrun |
/home/user/lmtx/tex/texmf-linux-64/bin/mtxrun.lua:26166: attempt to call a
nil value (field 'exec')
aaa > mtxrun --direct gnuplot gnuplot-gnuplot-1.plt
open source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
close source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex'
metapost > initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost > loading 'metafun' as
'/home/user/lmtx/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv'
using method 'default'
metapost > initializing number mode 'scaled'
floatblocks > '1' placed (here)
tex error > tex error on line 1 in file gnuplot-gnuplot-1-ctx.tex: !
Undefined control sequence
<argument> \GNUPLOTfile
-ctx.tex
\fourthoffivearguments #1#2#3#4#5->#4
<write> set output "\@@GNUPLOTresult
"
<inserted text>
}\endwrite
<argument> \shipoutscratchbox
\page_shipout_box #1->\clf_shipoutpage #1
\relax \global \setbox #1\emptybox
...
...l.8 \stoptext
1 >> % Written by ConTeXt terminal for GNUPLOT on: 2019-04-10 16:12 CEST
2 % GNUPLOT version: 5.0.5, terminal version: 1.0.0 (2011-11-05)
3 % See also http://wiki.contextgarden.net/Gnuplot
4 %
5 \startGNUPLOTgraphic[1]
6 string gnuplotversion; gnuplotversion := "5.0";
7 string termversion; termversion := "1.0";
8 % scaling factor, width and height of the figure
9 a := 1cm; w := 12.700a; h := 7.620a; % (5in, 3in)
10 % temporary variable for storing the path and images
11 save p, img, ima; path p; string img, ima;
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
mtx-context | fatal error: return code: 256
Sorry, can't help more, as I don't know where the problem is.
Thanks for fixing it in time, when the modules get installed with lmtx.
Christian
[-- Attachment #1.2: Type: text/html, Size: 8399 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
___________________________________________________________________________________
next reply other threads:[~2019-04-10 14:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-10 14:34 Christian Prim [this message]
2019-04-10 21:49 ` Hans Hagen
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=CA+9XOxr_6Rj6NqTjMXS4Rqn5_UrRudqSMGw4EN8DdBfk7YHyLw@mail.gmail.com \
--to=christian.prim@gmx.ch \
--cc=ntg-context@ntg.nl \
/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).