[luatex] multiple callbacks

Elie Roux elie.roux at telecom-bretagne.eu
Sun Jan 4 16:30:05 CET 2009

Hans Hagen a écrit :
> Taco Hoekwater wrote:
>> Hans Hagen wrote:
>>>> I'm not defending this option strongly, but I think it's a simple 
>>>> one, and I think it would work.
>>>> What do you think about that?
>>> the proeblem with such solutions is that even then style developers 
>>> would run into problems due to priorities; also, it add overhead and 
>>> complications that we'd like to avoid (one would need remove code 
>>> etc too)
>> That is exactly what Elie said.
> sure, but hardcoding a multiple handler in the luatex kernel does not 
> solve that problem since one still needs to agree on the order and 
> priorities then; therefore a solution in lua code (in the macro 
> package) can provide a similar solution; 

I'm not asking to modify the luatex kernel, I'm just asking for a small 
lua function that everyone could use as a convenience. It would not 
solve all the problems of priority, but it would make every package 
maker use the same function to register their callback.

> for context we have such a wrapper (prioritizer) already [currently 
> rather interwoven] and i suppose that one can write for latex etc; but 
> the most important aspect is that for a specific macro package the 
> style writers agree on some order (luatex cannot solve that for you)

I agree. In fact I don't see the problems with ConTeXt, LaTeX, plainTeX, 
etc. it would just be a function provided by a lua file distributed with 
LuaTeX... I must admit I don't know the exact structure of LuaTeX, so 
maybe there are problems, but if there are, can you explain them?

More information about the luatex mailing list