summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-05-17 23:46:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-05-17 23:46:00 +0200
commit911a6faee70e0fce32c22bd40bcec9f9ed425615 (patch)
tree8ba97c2e66f121f9ff51355288abddf459dcb8d3 /scripts
parentdcafc5c897cc956f197a54f516472954036af7f9 (diff)
downloadcontext-911a6faee70e0fce32c22bd40bcec9f9ed425615.tar.gz
beta 2014.05.17 23:46
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-plain.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-plain.lua b/scripts/context/lua/mtx-plain.lua
index de13717d3..1076572fc 100644
--- a/scripts/context/lua/mtx-plain.lua
+++ b/scripts/context/lua/mtx-plain.lua
@@ -103,7 +103,11 @@ function scripts.plain.make(texengine,texformat)
end
function scripts.plain.run(texengine,texformat,filename)
- execute('%s --fmt=%s "%s"',texengine,file.removesuffix(texformat),filename)
+ local t = { }
+ for k, v in next, environment.arguments do
+ t[#t+1] = string.format("--mtx:%s=%s",k,v)
+ end
+ execute('%s --fmt=%s %s "%s"',texengine,file.removesuffix(texformat),table.concat(t," "),filename)
end
function scripts.plain.fonts()