summaryrefslogtreecommitdiff
path: root/tex/context/base/meta-ini.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-01-31 00:29:42 +0200
committerMarius <mariausol@gmail.com>2011-01-31 00:29:42 +0200
commitd0fbd0050d9085f815b642d138c3ef571b64b76a (patch)
treea9db5fa1c10795ffa6280fc1781fae8d10144ac6 /tex/context/base/meta-ini.lua
parenta894f2e8c02c29b8ddeec3094acc1859ab34f864 (diff)
downloadcontext-d0fbd0050d9085f815b642d138c3ef571b64b76a.tar.gz
beta 2011.01.24 23:51
Diffstat (limited to 'tex/context/base/meta-ini.lua')
-rw-r--r--tex/context/base/meta-ini.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/tex/context/base/meta-ini.lua b/tex/context/base/meta-ini.lua
new file mode 100644
index 000000000..776814f1d
--- /dev/null
+++ b/tex/context/base/meta-ini.lua
@@ -0,0 +1,24 @@
+if not modules then modules = { } end modules ['meta-ini'] = {
+ version = 1.001,
+ comment = "companion to meta-ini.mkiv",
+ author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
+ copyright = "PRAGMA ADE / ConTeXt Development Team",
+ license = "see context related readme files"
+}
+
+local format = string.format
+
+metapost = metapost or { }
+
+-- for the moment downward compatible
+
+local patterns = { "meta-imp-%s.mkiv", "meta-imp-%s.tex", "meta-%s.mkiv", "meta-%s.tex" } -- we are compatible
+
+function metapost.uselibrary(name)
+ commands.uselibrary(name,patterns,function(name,foundname)
+ context.startreadingfile()
+ context.showmessage("metapost",1,name)
+ context.input(foundname)
+ context.stopreadingfile()
+ end)
+end