I tried the following
--
\starttext
\startluacode
local OldPreLB
function MyPreLB(head,gc)
?texio.write_nl(### Here I am!)
?OldPreLB(head,gc)
end
OldPreLB = callback.find('pre_linebreak_filter')
Hello,
Here a patch for luat-cbk.lua:
function callbacks.register(name,func,freeze)
if frozen[name] then
if trace_callbacks then
frozenmessage(registering,name)
end
return nil, name .. is frozen
elseif freeze then
frozen[name] =
there are two user hooks:
tasks.appendaction(processors,before,modules.mine.whatever_a)
tasks.appendaction(processors,after,modules.mine.whatever_b)
-
My example looks now
\starttext
\startluacode
function MyPreLB(head,gc)
texio.write(\n)
for n
2010/4/10 Wolfgang Werners-Lucchini w...@musensturm.de:
there are two user hooks:
tasks.appendaction(processors,before,modules.mine.whatever_a)
tasks.appendaction(processors,after,modules.mine.whatever_b)
-
My example looks now
\starttext
Hallo,
I tried the following
--
\starttext
\startluacode
local OldPreLB
function MyPreLB(head,gc)
texio.write_nl(### Here I am!)
OldPreLB(head,gc)
end
OldPreLB = callback.find('pre_linebreak_filter')
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!)
2010/4/9 Wolfgang Werners-Lucchini w...@musensturm.de:
Hallo,
I tried the following
--
\starttext
\startluacode
local OldPreLB
function MyPreLB(head,gc)
texio.write_nl(### Here I am!)
OldPreLB(head,gc)
end
OldPreLB =