Am 26.07.2017 um 08:07 schrieb Pablo Rodriguez <oinos@gmx.es>:

On 07/26/2017 07:20 AM, Mathias Schickel wrote:
Am 26.07.2017 um 00:47 schrieb Hans Hagen:
[...]>> you can patch this in that file and remake the format

  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

Hi Hans,

thank you for your quick answer! I am not sure How I can remake that
format. Can you tell me the command for that?

Hi Matthias,

as far as I can remember, the command is (I have used it in the past,
but my memory is weak):

 context --make --all


Hi Pablo,

thank you for advice! Unfortunately I still get the error

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…)


I see two possible reasons for that:

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.

From line 506 on the code of math-act.lua now is

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…)

And can you maybe patch that in the distribution, too? (Else I fear
that I have to remake that format every time I will update the
distribution from contextgarden.)
As far as I can tell, Hans will fix ConTeXt (he has done in the past).
But he has provided the patch, so that you may  work until the next beta
update.

Okay, that is very good!


Cheers,

Pablo


Best
Mathias


--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________