Hi , \directlua 0{ if ("ab" ~= "cb") then do texio.write_nl("not equal") end end } \bye results in ! LuaTeX error [string "luas[0]"]:1: ')' expected near '\'. This is with yesterday's svn. eythan
Eythan Weg wrote:
Hi ,
\directlua 0{ if ("ab" ~= "cb") then do texio.write_nl("not equal") end end } \bye
results in ! LuaTeX error [string "luas[0]"]:1: ')' expected near '\'.
This is with yesterday's svn.
well, it fails with any version, given that you have ~ defines as active char that expands to something \directlua 0 { if "ab" \string ~= "cb" then texio.write_nl("not equal") end } probably works ok at your end Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen
Hi ,
\directlua 0{ if ("ab" ~= "cb") then do texio.write_nl("not equal") end end } \bye
results in ! LuaTeX error [string "luas[0]"]:1: ')' expected near '\'.
This is with yesterday's svn.
well, it fails with any version, given that you have ~ defines as active char that expands to something \directlua 0 { if "ab" \string ~= "cb" then texio.write_nl("not equal") end } probably works ok at your end Hans Yes, thanks. eythan
Hello,
\directlua 0{ if ("ab" ~= "cb") then do texio.write_nl("not equal") end end } \bye
results in ! LuaTeX error [string "luas[0]"]:1: ')' expected near '\'.
This is with yesterday's svn.
Try \directlua 0{\unexpanded{...}} \bye. \directlua expands its arguments completely, thus also expands the ~, which is active in at least PlainTeX, LaTeX and Context. @Taco: Perhaps a note in the manual about expansion in \directlua (and most likely \latelua) would be useful.
eythan
Jonathan
participants (4)
-
Hans Hagen
-
Jonathan Sauer
-
Taco Hoekwater
-
weg@indiscrete.org