Paul Isambert wrote:

> Andreas Matthias <[email protected]> a écrit:
>> 
>> \def\bar#1{%
>>   \directlua {
>>     out(#1)
>>   }}
>> \bar{\hbox{a}}
>> 
>> 
>> How can this be done?
> 
> Use a box register, assign your box to it, and retrieve it in Lua:
> 
>       \newbox\mybox
>       \def\bar#1{%
>         \setbox\mybox=#1%
>         \directlua {
>           out(tex.box.mybox)
>         }}
> 
>       \bar{\hbox{a}}

Oh, I see. Thanks.

Ciao
Andreas

Reply via email to