DEK gained a reputation of painting red the draft dissertations of his students, taking particular note of incidents when they omitted a non-breaking space that should have been included.
I have this list of places where you have to place non-breaking space:
- before
\cite - before
\ref - before inlined equation
But, I am not sure if I got the rules right; is a non-breaking space mandatory before all inline equations? How about numbers which occur in the text? And what if I refer to a program variable, or to program text, for example,
The 371 programmers who read, on 11 different occasions, the
Java program in Figure~\ref{Program:Example} noticed that it is peculiar since
parameter \texttt{i} is never read by functions \texttt{f()}
and \texttt{thisLongFuncgtionName()}...
Do I have to write The 371 programmers or The~371 programmers? on 11 different occasions or on~11 different occasions?
Do I need to write parameter~\texttt{i}? I think I should. What about
functions~\texttt{f()}? And should I write and~\texttt{thisLongFuncgtionName()}?
How about citations that use author, year convention?
In short, I think have an idea, but no exact definition of when you should add non-breaking space.
The 371~programmersbecause havingThe 371at the end of a line is much worse thanThe\371 programmers. The same foron 11~different occasions. – Martin Scharrer Apr 11 '11 at 15:4210~mmbetween value and units should be on anyone's list. – Steven B. Segletes Apr 22 '14 at 02:28siunitxto be better for that as it handles the spacing for units better. (As noted in comments down below!) – JAB Nov 07 '17 at 19:39