Hans van der Meer
2018-12-04 12:29:14 UTC
I am trying to extract something from a string with a \directlua call, the last word of a string in case:
\directlua{tex.print(string.match(âThis is a string","%s%a$"))}
However, the %s%a are not working with the TeX-error âunfinished string near eofâ. Obviously caused by the %âs.
How to get this working? \textpercent will not do, off course within Luacode.
dr. Hans van der Meer
\directlua{tex.print(string.match(âThis is a string","%s%a$"))}
However, the %s%a are not working with the TeX-error âunfinished string near eofâ. Obviously caused by the %âs.
How to get this working? \textpercent will not do, off course within Luacode.
dr. Hans van der Meer