[luatex] \luaescapestring and # tokens

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Jun 2 10:01:21 CEST 2014


On 02/06/2014 08:52, Taco Hoekwater wrote:
> 
> On 02 Jun 2014, at 09:46, Joseph Wright <joseph.wright at morningstar2.co.uk> wrote:
> 
>>>
>>> Is this deliberate, and if so is there a reliable way of emulating
>>> \pdfstrcmp in it's entirety?
> 
> \luaescapestring does nothing except making sure that the argument
> is valid lua string content. So yes, then lack of doubling is deliberate.
> 
> To get matching strings, you will need to detokenize both, as done below.
> 
> Best wishes,
> Taco

OK, was what I suspected: will use the more elaborate approach involving
\expanded.

Thanks for fast response.
-- 
Joseph Wright



More information about the luatex mailing list