summaryrefslogtreecommitdiff
path: root/tex/context/base/math-noa.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-08-15 15:00:13 +0300
committerMarius <mariausol@gmail.com>2013-08-15 15:00:13 +0300
commit6cc84b78d3d3200b3b46e23689021289b42eba7a (patch)
tree01d4739ca68136c09a5bc32e97df47b6c0bc14bb /tex/context/base/math-noa.lua
parentcda726c49288251852fc9e41e0fd71805ebad3ae (diff)
downloadcontext-6cc84b78d3d3200b3b46e23689021289b42eba7a.tar.gz
beta 2013.08.15 13:53
Diffstat (limited to 'tex/context/base/math-noa.lua')
-rw-r--r--tex/context/base/math-noa.lua15
1 files changed, 8 insertions, 7 deletions
diff --git a/tex/context/base/math-noa.lua b/tex/context/base/math-noa.lua
index 22b92c38a..99a1594af 100644
--- a/tex/context/base/math-noa.lua
+++ b/tex/context/base/math-noa.lua
@@ -1037,14 +1037,15 @@ function handlers.classes(head,style,penalties)
return true
end
-trackers.register("math.classes",function(v)
- if v then
- tasks.enableaction("math", "noads.handlers.classes")
- else
- tasks.disableaction("math", "noads.handlers.classes")
- end
-end)
+trackers.register("math.classes",function(v) tasks.setaction("math","noads.handlers.classes",v) end)
+
+-- just for me
+
+function handlers.showtree(head,style,penalties)
+ inspect(nodes.totree(head))
+end
+trackers.register("math.showtree",function(v) tasks.setaction("math","noads.handlers.showtree",v) end)
-- the normal builder