In maths texts it is common to introduce special terminology which follows the scheme
Now the first problem one encounters when using this pattern is that the
word is not recognised by the hyphenation algorithm anymore.
A simple fix is to insert a 0-length space before the word:
With this trick the hyphenation patterns for
word are used correctly again.
The problem is that I would like to avoid the following line breaks:
$math$- lengthyword $math$ -lengthyword
and only allow hyphenation in
I tried with
$math$\nobreak-\nobreak\hskip0pt word to no avail.
What is the correct way to instruct the hyphenation?