The babel
package provides useful dash variants, e.g. "~
for a non-breaking dash that forbids hyphenation in the parts, and "=
for a breaking dash that allows hyphenation in the parts.
However, "words" like
$x$-Koordinaten
do not quite fit; we would not want to have the dash breaking, but we would want to allow hyphenation of "Koordinaten". Of course,
$x$"~Ko\-or\-di\-na\-ten
works but has to be specified locally, which we do not want to do either (favoring a global \hyphenation{...}
setting).
Is it possible to achieve the above in a form that does not force us to specify hyphenation locally?
Best Answer
If there is not already a shortcut you can as below, or better as egreg points out in comments
Then use
"/
.