On 11/4/2014 12:42 PM, Mikael P. Sundqvist wrote:
Hi, pgfplots seems broken with the latest standalone.With the example
\usemodule[pgfplots]
\starttext
Foo
\stoptext
Is there a "pgfluamath.*" file on the system?
Hans
Best regards, Mikael
lua error > error on line 75 in file
/opt/ConTeXt/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex:
.../ConTeXt/tex/texmf-context/tex/context/base/util-lib.lua:246:
module 'pgfluamath.functions' not found:
no field package.preload['pgfluamath.functions']
no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init.lua'
no file './pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.2/pgfluamath.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath.so'
stack traceback:
[C]: in function 'savedrequire'
.../ConTeXt/tex/texmf-context/tex/context/base/util-lib.lua:246:
in function 'require'
[\directlua]:1: in main chunk
65 \let\pgfutil@directlua\directlua
66 \pgfutil@directlua{%
67 tex.enableprimitives('pgfutil@',{'luaescapestring'})}
68 \else
69 \def\pgfutil@directlua#1{}
70 \def\pgfutil@luaescapestring#1{}
71 \fi
72
73 \pgfutil@directlua{%
74 pgfluamathfunctions = require("pgfluamath.functions")
75 >> pgfluamathparser = require("pgfluamath.parser")}
76
77
78 % Patch some configuration macros such that the modifications are
79 % available in LUA as well:
80 \pgfkeys{
81 /pgf/trig format/deg/.add
code={}{\directlua{pgfluamathfunctions.setTrigFormat("deg")}\aftergroup\pgfmath@settrigformat},
82 /pgf/trig format/rad/.add
code={}{\directlua{pgfluamathfunctions.setTrigFormat("rad")}\aftergroup\pgfmath@settrigformat},
83 }
84 % ... and reactivate the key:
85 \pgfmathiftrigonometricusesdeg{%
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________