summaryrefslogtreecommitdiff
path: root/tex/context/base/luat-run.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-02-04 10:01:00 +0100
committerHans Hagen <pragma@wxs.nl>2011-02-04 10:01:00 +0100
commit70af4c3a0a64e754888e3a78c7d49e3ca0803264 (patch)
tree676d4e4a1c8abc051595e6cb0a950d8c16df7af5 /tex/context/base/luat-run.lua
parent8e3049413845d8d8e1f7e672bc613d4e473ee868 (diff)
downloadcontext-70af4c3a0a64e754888e3a78c7d49e3ca0803264.tar.gz
beta 2011.02.04 10:01
Diffstat (limited to 'tex/context/base/luat-run.lua')
-rw-r--r--tex/context/base/luat-run.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/tex/context/base/luat-run.lua b/tex/context/base/luat-run.lua
index 580137d8a..77147c862 100644
--- a/tex/context/base/luat-run.lua
+++ b/tex/context/base/luat-run.lua
@@ -113,3 +113,25 @@ function luatex.cleanuptempfiles()
end
luatex.registerstopactions(luatex.cleanuptempfiles)
+
+-- for the moment here
+
+local synctex = false
+
+local report_system = logs.new("system")
+
+directives.register("system.synctex", function(v)
+ synctex = v
+ if v then
+ report_system("synctex functionality is enabled!")
+ else
+ report_system("synctex functionality is disabled!")
+ end
+ tex.synctex = synctex and 1 or 0
+end)
+
+statistics.register("synctex tracing",function()
+ if synctex or tex.synctex > 0 then
+ return "syntex has been enabled (extra log file generated)"
+ end
+end)