[luatex] macros to invoke lua in LaTeX

Taco Hoekwater taco at elvenkind.com
Wed Mar 4 09:43:23 CET 2009



Hans Hagen wrote:
> Taco Hoekwater wrote:
>> Karl Berry wrote:
>>>     the name of the wrapper for \directlua0.
>>> What does it do?
>>>
>>>     invoke lua code with a small macro, so I thought \pkglua would be
>>> good,
>>> How about \luadirect?
>>
>> You could also consider just using \directlua, like so:
>>
>>   \def\directlua{\directlua0}
> 
> \def\directlua{\primitive\directlua0}

Oops, hans is right of course. Even better:

\ifnum\luatexversion<40
  \def\directlua{\primitive\directlua0}
\fi

Best wishes,
Taco


More information about the luatex mailing list