How can I prevent line breaks from occurring in my LaTeX documents?

By Alvin J. Alexander, devdaily.com

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.


devdaily logo