ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* directlua question
@ 2018-12-04 12:29 Hans van der Meer
  2018-12-04 12:41 ` Hans van der Meer
  2018-12-04 12:44 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Hans van der Meer @ 2018-12-04 12:29 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 406 bytes --]

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



[-- Attachment #1.2: Type: text/html, Size: 1718 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-04 12:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 12:29 directlua question Hans van der Meer
2018-12-04 12:41 ` Hans van der Meer
2018-12-04 12:44 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).