By Alvin Alexander. Last updated: June 4, 2016
LaTeX FAQ: How can I prevent line breaks from occurring in my LaTeX documents?
Another nice thing about LaTeX is that you can prevent line breaks between words that should not be broken, things like people's names. To prevent a line break from occurring, use the tilde character (~) instead of a space, like this:
Mr.~John~Doe
This keeps "Mr. John Doe" on the same line when your document is created.