diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-05-17 23:46:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-05-17 23:46:00 +0200 |
commit | 911a6faee70e0fce32c22bd40bcec9f9ed425615 (patch) | |
tree | 8ba97c2e66f121f9ff51355288abddf459dcb8d3 /scripts | |
parent | dcafc5c897cc956f197a54f516472954036af7f9 (diff) | |
download | context-911a6faee70e0fce32c22bd40bcec9f9ed425615.tar.gz |
beta 2014.05.17 23:46
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-plain.lua | 6 |
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() |