On Tue, 31 May 2011 12:45:00 +0200, Jeong Dalyoung <hak...@me.com> wrote:

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:l...@pontex.cz]
Pontex s. r. o.      [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to