MWE:
\directlua{%
local abs=math.abs
function gcd(x, y)
if y \csstring\~= 0 then
return gcd(y, x \csstring\% y)% I would like to write "≠" instead of "~=".
else
return abs(x)
end
end}
\directlua{tex.print(gcd(768,640))}% prints 128
\bye
Is there a way to write ≠
instead of ~=
(or ≥
instead of >=
inside directlua{...}
? This would improve the readability.
Thanks.
\directlua
(./aa035.tex[\directlua]:1: attempt to call a nil value (global 'abs')