summaryrefslogtreecommitdiff
path: root/tex/context/base/meta-fun.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/meta-fun.lua')
-rw-r--r--tex/context/base/meta-fun.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/tex/context/base/meta-fun.lua b/tex/context/base/meta-fun.lua
index fef2aa12b..9a6d971ba 100644
--- a/tex/context/base/meta-fun.lua
+++ b/tex/context/base/meta-fun.lua
@@ -11,10 +11,13 @@ if not modules then modules = { } end modules ['meta-fun'] = {
local format, loadstring, type = string.format, loadstring, type
local texwrite = tex.write
-metafun = metafun or { }
+local metapost = metapost
+
+metapost.metafun = metapost.metafun or { }
+local metafun = metapost.metafun
function metafun.topath(t,connector)
- tex.write("(")
+ texwrite("(")
if #t > 0 then
for i=1,#t do
if i > 1 then
@@ -35,7 +38,7 @@ end
function metafun.interpolate(f,b,e,s,c)
local done = false
- tex.write("(")
+ texwrite("(")
for i=b,e,(e-b)/s do
local d = loadstring(format("return function(x) return %s end",f))
if d then