[luatex] multiple callbacks

Elie Roux elie.roux at telecom-bretagne.eu
Sun Jan 4 18:19:33 CET 2009

Elie Roux a écrit :
> I took Hans' example and modified it so that it compiles. I come up 
> with a minor Lua problem (see the last comment), and a strange 
> problems : it seems that callbacks are called two times... If someone 
> better than me in Lua can take a look...

Update : a simple

    texio.write_nl("I am a callback")
    return head, true

writes two times "I am a callback", which is not the case for

callback.register("post_linebreak_filter",function(h, groupcode, glyphes)
    texio.write_nl("I am a callback")
    return true

that writes it only once, is it normal?

More information about the luatex mailing list