diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-05-26 00:22:02 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-05-26 00:22:02 +0200 |
commit | 0aa14799b67298a50dd2c31c249622915e103994 (patch) | |
tree | 42ebb4267fadd4f20fa195daa304cae5a36605cd /scripts | |
parent | f7049c2619684d6bfe6688d3a669455a6ecb6713 (diff) | |
download | context-0aa14799b67298a50dd2c31c249622915e103994.tar.gz |
2020-05-25 23:38:00
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-context.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 26dba8a11..54bdd9e92 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -220,6 +220,7 @@ local special_runfiles = { } local extra_runfiles = { + "^m_k_i_v_.-%.pdf$", "^l_m_t_x_.-%.pdf$", } @@ -739,6 +740,9 @@ function scripts.context.run(ctxdata,filename) if formatfile and scriptfile then local suffix = validstring(getargument("suffix")) local resultname = validstring(getargument("result")) + if not resultname or resultname == "" then + resultname = validstring(analysis.result) + end local resultpath = file.pathpart(resultname) if resultpath ~= "" then resultname = nil |