On 4/3/2014 6:29 PM, Dohyun Kim wrote:

This is a bug report based on the issue discussed at


The plain tex code shown above fails with a lua error:
luatex-fonts-merged.lua:9616: attempt to index local 'current' (a nil value)

My guess is: as math-on (math-off too) is a "discardable" item after a
linebreak, the first math-on node has gone away. So the
math-on/math-off pair has become broken, by which the behavior of
"node.end_of_math" is confused.

mtxrun --script plain test.tex

runs ok here so i need an example that fails with context or luatex-plain

normally the font callback is called on a hlist and there are always paired math nodes

(what is line 9616 in the current beta?)

If indeed the end_of_math is a problem i can remove that optimiziation in the generic code


                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
If your question is of interest to others as well, please add an entry to the 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net

Reply via email to