8 Apr
2010
8 Apr
'10
10:20 p.m.
On Thu, Apr 08 2010, Wolfgang Werners-Lucchini wrote:
[...]
but MyPreLB() is not called. What I am doing wrong here?
Hello Wolfgang, I don't know, but I've played a bit with your example file: \starttext \startluacode local OldPreLB function MyPreLB(head,gc) tex.print("Here I am!") return OldPreLB(head,gc) end local id, error = callback.register('pre_linebreak_filter', MyPreLB) if id == nil then tex.print("Error string:", type(error), "\\par") end \stopluacode Problem: callback.register returns nil, but no error message. \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/