summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-context.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r--scripts/context/lua/mtx-context.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua
index 6863cffb2..37101665a 100644
--- a/scripts/context/lua/mtx-context.lua
+++ b/scripts/context/lua/mtx-context.lua
@@ -905,9 +905,11 @@ function scripts.context.run(ctxdata,filename)
--
end
--
- if a_synctex == "context" then
- renamefile(fileaddsuffix(jobname,"syncctx"),fileaddsuffix(jobname,"synctex"))
+ local syncctx = fileaddsuffix(jobname,"syncctx")
+ if a_synctex == "context" or validfile(syncctx) then
+ renamefile(syncctx,fileaddsuffix(jobname,"synctex"))
end
+ --
if a_arrange then
--
c_flags.final = true
@@ -1173,7 +1175,7 @@ do -- more or less copied from mtx-plain.lua:
end
function scripts.context.generate()
- resolvers.instance.renewcache = true
+ resolvers.renewcache()
trackers.enable("resolvers.locating")
resolvers.load()
end