diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-10-18 21:34:02 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-10-18 21:34:02 +0200 |
commit | 4a7fb336e5a59645520c05690efe98c9c7270d37 (patch) | |
tree | ce8da19ee47ff43c5f44fc720c25e218d89a8ece /scripts/context/lua/mtx-context.lua | |
parent | f34b1249e3ad9bcbe34323c6daf0ad3174190649 (diff) | |
download | context-4a7fb336e5a59645520c05690efe98c9c7270d37.tar.gz |
2017-10-18 21:22:00
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r-- | scripts/context/lua/mtx-context.lua | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 574f616e2..1df3a5d5b 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -197,10 +197,6 @@ local synctex_runfiles = { "synctex", "synctex.gz", "syncctx" -- synctex } --- local synctex_runfiles = { --- "synctex", "synctex.gz", --- } - local persistent_runfiles = { "tuo", -- mkii two pass file "tub", -- mkii buffer file @@ -663,8 +659,7 @@ function scripts.context.run(ctxdata,filename) local a_nonstopmode = getargument("nonstopmode") local a_scollmode = getargument("scrollmode") local a_once = getargument("once") --- local a_synctex = getargument("syncctx") and "context" or getargument("synctex") - local a_synctex = getargument("synctex") + -- local a_synctex = getargument("synctex") local a_backend = getargument("backend") local a_arrange = getargument("arrange") local a_noarrange = getargument("noarrange") @@ -716,7 +711,7 @@ function scripts.context.run(ctxdata,filename) -- local analysis = preamble_analyze(filename) -- - a_synctex = a_synctex or analysis.synctex + -- a_synctex = a_synctex or analysis.synctex -- if a_mkii or analysis.engine == 'pdftex' or analysis.engine == 'xetex' then run_texexec(filename,a_purge,a_purgeall) @@ -864,9 +859,9 @@ function scripts.context.run(ctxdata,filename) for i=1,#synctex_runfiles do removefile(fileaddsuffix(jobname,synctex_runfiles[i])) end - if a_synctex then - directives[#directives+1] = format("system.synctex") - end + -- if a_synctex then + -- directives[#directives+1] = format("system.synctex") + -- end -- if #directives > 0 then c_flags.directives = concat(directives,",") @@ -925,7 +920,8 @@ function scripts.context.run(ctxdata,filename) -- this will go away after we update luatex -- local syncctx = fileaddsuffix(jobname,"syncctx") - if a_synctex == "context" or validfile(syncctx) then + -- if a_synctex == "context" or validfile(syncctx) then + if validfile(syncctx) then renamefile(syncctx,fileaddsuffix(jobname,"synctex")) end -- |