1

How to prevent a line breaking at the character - in phrases such as $k$-algebra, without having to write like $k$\nobreak-\nobreak algebra?

Jinwen
  • 8,518

1 Answers1

1

The amsmath package provides the \nobreakdash macro for just this case:

$k$\nobreakdash-algebra

The symbol that follows \nobreakdash need not necessarily be a - ("dash") character. It could aslo be something like

pages 1\nobreakdash--9

to indicate that no line break is allowed after "1\endash".

Mico
  • 506,678