summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-context.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-04-29 20:15:05 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-04-29 20:15:05 +0200
commit59947aaf3bf2ad07251a569a77338c8c41f9e377 (patch)
tree0da53be81a91ea3bed5bcb4c5be8f725e6da54aa /scripts/context/lua/mtx-context.lua
parentd60cd418153b3ea6909c8b4691a160f54c41a670 (diff)
downloadcontext-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.lua20
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)