diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-05-18 00:15:13 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-05-18 00:15:13 +0200 |
commit | cd12b5497dc4a12dc33751a0deffda08b26bcbcd (patch) | |
tree | 0f4d1084f5f38e0cc60a617c58afc3ef94e1e6a5 /scripts | |
parent | 7efbfd1d82c215c154a4840a906e0aa55e07ed0e (diff) | |
download | context-cd12b5497dc4a12dc33751a0deffda08b26bcbcd.tar.gz |
2014-05-17 23:48:00
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() |