On Tue, 31 May 2011 12:45:00 +0200, Jeong Dalyoung
Dear Lucas,
Shouldn't it be (untested):
context("\\def\\lang{English}")
It is working.
context([[\def\lang{English}]])
It is not working. It prints "def lang English".
Thank you.
Best regards,
Dalyoung
OK. I meant just the way how strings in Lua are entered - if inside quotation marks, escaping is required, thus "\\" yields to backslash, - if inside [[ ... ]], single \ gives backslash, and of course \\ gives TWO backslashes. I guessed that your original [[\\def\\lang{English}]] could have caused the problem, so I corrected it to [[\def\lang{English}]] Cheers, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038