I don't understand how the token library of luatex works.




  t = token.create ('mymacro')


The token.expand does not work as I expected: luatex says Undefined control sequence. Why?

With the token.get_next(), I don't know exactly what I should get...


Unfortunately token.expand is currently broken. See the bug report which derives from an example exactly like yours.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.