14 Dec
2012
14 Dec
'12
5:32 p.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