![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
4 Apr
2008
4 Apr
'08
2:03 p.m.
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/