# [texhax] how to create a non-breaking hyphen

Philip G. Ratcliffe philip.ratcliffe at fastwebnet.it
Sat May 20 12:40:59 CEST 2006

>     >   \mbox{hyphen-word}
>
> I guess this is already solved, but for the record, I think setting
> \exhyphenpenalty=10000
> would also eliminate all line breaks after explicit hyphens.

The "amsmath" packages define a suitable command:

\nobreakdash

They suggest usage such as:

$p$\nobreakdash-adic

10\nobreakdash--15

$n$\nobreakdash-\hspace{0pt}dimensional

with the last example specifically designed to allow hyphenation of
"dimensional".

Cheers,  Phil Ratcliffe