summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/math-tag.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/math-tag.lua')
-rw-r--r--tex/context/base/mkiv/math-tag.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/tex/context/base/mkiv/math-tag.lua b/tex/context/base/mkiv/math-tag.lua
index e83b401fb..13c8fffc7 100644
--- a/tex/context/base/mkiv/math-tag.lua
+++ b/tex/context/base/mkiv/math-tag.lua
@@ -30,6 +30,8 @@ local getdisc = nuts.getdisc
local getsubtype = nuts.getsubtype
local getattr = nuts.getattr
local setattr = nuts.setattr
+local getcomponents = nuts.getcomponents
+local getwidth = nuts.getwidth
local set_attributes = nuts.setattributes
local traverse_nodes = nuts.traverse
@@ -70,8 +72,6 @@ local math_code = nodecodes.math
local processnoads = noads.process
local a_tagged = attributes.private('tagged')
-local a_taggedpar = attributes.private('taggedpar')
-local a_exportstatus = attributes.private('exportstatus')
local a_mathcategory = attributes.private('mathcategory')
local a_mathmode = attributes.private('mathmode')
local a_fontkern = attributes.private('fontkern')
@@ -252,7 +252,7 @@ process = function(start) -- we cannot use the processor as we have no finalizer
if tag == "formulacaption" then
-- skip
elseif tag == "mstacker" then
- local list = getfield(start,"list")
+ local list = getlist(start)
if list then
process(list)
end
@@ -262,7 +262,7 @@ process = function(start) -- we cannot use the processor as we have no finalizer
end
local text = start_tagged(tag)
setattr(start,a_tagged,text)
- local list = getfield(start,"list")
+ local list = getlist(start)
if not list then
-- empty list
elseif not attr then
@@ -317,7 +317,7 @@ process = function(start) -- we cannot use the processor as we have no finalizer
if id == hlist_code or id == vlist_code then
runner(getlist(n),depth+1)
elseif id == glyph_code then
- runner(getfield(n,"components"),depth+1) -- this should not be needed
+ runner(getcomponents(n),depth+1) -- this should not be needed
elseif id == disc_code then
local pre, post, replace = getdisc(n)
runner(pre,depth+1) -- idem
@@ -337,7 +337,7 @@ process = function(start) -- we cannot use the processor as we have no finalizer
stop_tagged()
end
elseif id == math_sub_code then -- normally a hbox
- local list = getfield(start,"list")
+ local list = getlist(start)
if list then
local attr = getattr(start,a_tagged)
local last = attr and taglist[attr]
@@ -528,7 +528,7 @@ process = function(start) -- we cannot use the processor as we have no finalizer
processsubsup(start)
end
elseif id == glue_code then
- -- setattr(start,a_tagged,start_tagged("mspace",{ width = getfield(start,"width") }))
+ -- setattr(start,a_tagged,start_tagged("mspace",{ width = getwidth(start) }))
setattr(start,a_tagged,start_tagged("mspace"))
stop_tagged()
else