Words beginning with hyphens such as suffixes in linguistic texts can break right after the hyphen which is undesirable.
To prevent this I know I could do \exhyphenpenalty=10000 or what the answers here suggest, but I was wondering if anyone has come up with a solution that would automatically prevent linebreaks if preceded by a space or at the beginning of line, without having to use a special command and without also preventing compounds-with-hyphens to break?
\?ingrather than-ingbe acceptable? with\def\?{\mbox{-}}as a non-breakable hyphen? – David Carlisle Nov 14 '16 at 19:05\newcommand{\form}[1]{\mbox{\emph{#1}}}for in-line linguistic forms and\newcommand{\uf}[1]{\mbox{/#1/}}for underlying forms. The\mboxprevents the line breaking problem and then you can also tweak the formatting in the command definition depending on publishers' style guides. – Jason Zentz Nov 14 '16 at 20:09\newcommand{\suffix}[1]{\mbox{#1}}and\suffix{-ing}will solve the issue. – egreg Nov 14 '16 at 20:18