[luatex] macro definition inside a callback

Arno Trautmann Arno.Trautmann at gmx.de
Fri Sep 7 08:03:52 CEST 2012


Hi all,

maybe a somewhat strange question again from me: Is it possible to 
define a macro inside the *_linebreak_filters? I want to use a function 
in the pre_linebreak_filter, and this function should define a macro. So 
the macro should be present with a new definition at the beginning of 
the next paragraph, but only if the previous one has been typeset with 
that function registered, which removes itself after running.

I tried something like

tex.print("\\gdef\\something{}")

but this does not work as the effect of tex.print is not defined in the 
*_linebreak_filters, if I remember correctly.

So, is there any way to do this?

cheers
Arno


More information about the luatex mailing list