"Jonathan Sauer" <[EMAIL PROTECTED]> writes:

> Hello, 
>
>> >> So `#' is transformed into `##' when passed from TeX to Lua.
>> [...]
>> This currently uses TeX's tokenlist print function, but I could
>> make it behave differently, no problem (after all, this
>> generated string is only 'seen' by the lua interpreter).
>
> In that case: Please make it so.

It is consistent with TeX's printing mechanism.  You could deal with
this problem by placing the resulting string inside of a macro body
(where ## will get collapsed to # while the body is being collected) and
then use it from there.

Disadvantage: this is not an expandible method.

-- 
David Kastrup
_______________________________________________
dev-luatex mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to