ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: attempt to get length of local 'charlist' (a nil value)
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: in function 'horizontalcode'
...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:541: in function <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>
(...tail calls…)
Either the command „context --make --all“ is not the right one (besides: How can I check if ConTeXt has remade the format?), or the code is not correctly changed. Maybe you can answer that, Hans.
if kind == e_left then
local charlist = data[3].horiz_variants
if charlist then -- this is the line of the first error as the error code suggests
local left = charlist[1]
loffset = abs((left["start"] or 0) - (left["end"] or 0))
end
elseif kind == e_right then
local charlist = data[3].horiz_variants
if charlist then
local right = charlist[#charlist]
roffset = abs((right["start"] or 0) - (right["end"] or 0))
end
elseif kind == e_horizontal then
local charlist = data[3].horiz_variants
if charlist then
local left = charlist[1]
local right = charlist[#charlist]
loffset = abs((left ["start"] or 0) - (left ["end"] or 0))
roffset = abs((right["start"] or 0) - (right["end"] or 0))
end
end
return kind, loffset, roffset
Is that correct now?
In every case the error code mentioned another line of the same file:
math-act.lua:541: in function <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>
(...tail calls…)