![](https://secure.gravatar.com/avatar/e1d6b7d0f096cb8cf44273fa33fb05f0.jpg?s=120&d=mm&r=g)
14 Dec
2012
14 Dec
'12
10:32 a.m.
···
\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