diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-04-29 20:15:05 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-04-29 20:15:05 +0200 |
commit | 59947aaf3bf2ad07251a569a77338c8c41f9e377 (patch) | |
tree | 0da53be81a91ea3bed5bcb4c5be8f725e6da54aa /scripts/context/lua/mtx-context.lua | |
parent | d60cd418153b3ea6909c8b4691a160f54c41a670 (diff) | |
download | context-59947aaf3bf2ad07251a569a77338c8c41f9e377.tar.gz |
2015-04-29 19:33:00
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r-- | scripts/context/lua/mtx-context.lua | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 919dbbb8c..d624f6831 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -260,7 +260,7 @@ end -- multipass control local multipass_suffixes = { ".tuc" } -local multipass_nofruns = 8 -- or 7 to test oscillation +local multipass_nofruns = 9 -- better for tracing oscillation local multipass_forcedruns = false local function multipass_hashfiles(jobname) @@ -863,6 +863,24 @@ function scripts.context.run(ctxdata,filename) pdf_open(resultname or jobname,pdfview) end -- + local epub = analysis.epub + if epub then + if type(epub) == "string" then + local t = settings_to_array(epub) + for i=1,#t do + t[i] = "--" .. gsub(t[i],"^%-*","") + end + epub = concat(t," ") + else + epub = "--make" + end + local command = "mtxrun --script epub " .. epub .. " " .. jobname + report() + report("making epub file: ",command) + report() + os.execute(command) + end + -- if a_timing then report() report("you can process (timing) statistics with:",jobname) |