···<date: 2012-12-14, Friday>···<from: Andre Caldas>···
> > \unexpanded\def\uncover[#1]% > > {\ctxlua{ > > distance = simplesteps.distance_to_step(\!!bs#1\!!es) > > ... > > }} > > > > it works because the " is now only part of the string. > > Thanks. That's what I needed. I guess > bs = begin string > es = end string. These expand to Lua long strings, [===[ and ]===] respectively, without checking, so theoretically the same issue will arise iff your string contains ]===]. I consider the likelihood for this to happen to be too low to bother, but if you want to be absolutely on the safe side you can also use \luaescapestring. See the Luatex manual, section 2.3.6. Philipp
pgp9lYpucmZ36.pgp
Description: PGP signature
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________