6

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.

  • 1
    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
  • 1
    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
5

Put

\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.

2

Use non-breaking space, i.e., "do~not~split". Use sparingly, I'd add such tweaks only in the last step before printing the definite version.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.