[Dev-luatex] a problem with ~=

Jonathan Sauer Jonathan.Sauer at silverstroke.com
Tue Oct 9 09:04:45 CEST 2007


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



More information about the dev-luatex mailing list