[Tex/LaTex] Automatically prevent line-break at hyphen of specific words (e.g. “dual-self”)

hyphenationline-breakingpunctuation

Usually questions about hyphenation and line-breaks are concerned about how to allow hyphenation when a word already contains a hyphen. That's not what I'm after:

I would like to prevent the word "dual-self" to be broken across lines. I know that I can to that manually with dual\=/self, but is there a way to achieve this automatically? Ideally something in the preamble equivalent to \hyphenation{...} where I can specify the words that should not be broken.

Best Answer

(CW from comments)

By setting

\exhyphenpenalty=10000

in the document preamble, no explicit hyphen will be used for a line break.

Related Question