[NTG-context] luatex feature question/request

Peter Münster pmlists at free.fr
Fri Apr 4 22:03:15 CEST 2008


On Fri, Apr 04 2008, Aditya Mahajan wrote:

>> function add_ties(line)
>> 	line = line:gsub('( %a) ', '%1~')
>> 	line = line:gsub('^(%a) ', '%1~')
>> 	line = line:gsub('( %a)$', '%1~%%')
>> 	return line
>> end
>>
>> Not working: $a = b + c$.
>
> How about substituting with a macro \nonbreakbablespace (instead of ~) and 
> redefining \nonbreakablespace to \relax using \everymathematics or 
> \mathortext?

Even better of course!
Peter

-- 
http://pmrb.free.fr/contact/



More information about the ntg-context mailing list