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/


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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