# How to keep a short word together with the rest of the sentence?

I'm writing an article. In a certain paragraph, the last sentence is spread over two lines. The second line is just a short word ('in') and that's a bit ugly.

Is there an easy way to keep it together with the rest of the sentence on a single line? I think about shrinking the space between the words or the characters.

• put \looseness=-1 before the start of the paragraph and TeX will try to make that para one line shorter – David Carlisle Jun 1 '14 at 10:50
• @DavidCarlisle: That's a nice and easy solution! Thanks! – Jeroen Jun 1 '14 at 10:51
• If \looseness=-1 fails, use ~ before the trailing “in.” The ~ is good anyway before sentence ending prepositions and it won't interfere with \looseness (at least for the last line). – egreg Jun 1 '14 at 10:56
• – Werner Jun 2 '14 at 5:11

\looseness=-1

before the start of the paragraph and TeX will try to make that para one line shorter, if the paragraph is long enough there is usually enough flexibility in TeX's linebreak algorithm to adjust the number of lines without exceeding the specified \tolerance.