[NTG-context] callback.register

Peter Münster pmlists at free.fr
Thu Apr 8 22:20:48 CEST 2010

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:

local OldPreLB
function MyPreLB(head,gc)
  tex.print("Here I am!")
  return OldPreLB(head,gc)
local id, error = callback.register('pre_linebreak_filter', MyPreLB)
if id == nil then
   tex.print("Error string:", type(error), "\\par")
Problem: callback.register returns nil, but no error message.

Cheers, Peter

Contact information: http://pmrb.free.fr/contact/

More information about the ntg-context mailing list