I need a replacement for the \Unicode macro from CJK. It takes two decimal numbers as arguments and inserts #1*256 + #2 into the token stream (or something like that; it's a way to write Unicode characters by code like A in XML).

That should be possible with a tiny bit of lua code. Any pointers?

  • Would \char\numexpr#1*256+#2\relax suffice?
    – egreg
    May 16 '11 at 20:35

As far as I can tell, a definition such as


should be what you need.

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.