ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with gnuplot-module in lmtx
@ 2020-11-25 13:25 Christian Prim
  2020-11-27 17:10 ` Christian Prim
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Prim @ 2020-11-25 13:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

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

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

<lua output> \

<local> \global \setbox \mptextbox \hbox {\clf_mptexttoks
    }
...

<line 6.1> \includegnuplotsvgfile[./sin.svg]
    \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 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

[-- Attachment #1.2: Type: text/html, Size: 2273 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] 2+ messages in thread

end of thread, other threads:[~2020-11-27 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 13:25 Problem with gnuplot-module in lmtx Christian Prim
2020-11-27 17:10 ` Christian Prim

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