[NTG-context] directlua question

Hans van der Meer havdmeer at ziggo.nl
Tue Dec 4 13:29:14 CET 2018

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20181204/1f3e66e9/attachment.html>

More information about the ntg-context mailing list