4 Dec
2018
4 Dec
'18
12:44 p.m.
Hans van der Meer schrieb am 04.12.18 um 13:29:
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.
% = \letterpercent $ = \letterdollar You can also replace \directlua{tex.print(...)} with \ctxlua{context(...)} or \cldcontext{...} Wolfgang