TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When long words at the end of a line cannot be hyphenated (for example when hyphenation is suppressed with \mbox{}), LaTeX could either have the tendency to make lines overfull or the tendency to make them underfull.

Is there a way to define for a paragraph or a short block of text (in which I want to list some longer technical terms), that I prefer underfull lines?

share|improve this question
Use \sloppy before the paragraph and \fussy after the paragraph (leave an empty line before the paragraph before \fussy) – Guido Sep 21 '12 at 22:16
@Guido: Thank you very much! That worked for me. – Wolfram Sep 22 '12 at 18:50
up vote 12 down vote accepted

Note that TeX will never prefer overfull that is always infinitely bad, however the default setting doesn't allow white space to stretch that much so if all options are infinitely bad, TeX may go overfull.

As @Guido says, \sloppy (or \sloppypar) is the classic LaTeX way to loosen up the white space, although sometimes better results can be obtained by instead setting \emergencystretch to a suitably large value (such as \textwidth).

share|improve this answer
I'd still think that LaTeX has a preference for something it does, even if LaTeX considers it infinitely bad, as long as LaTeX chooses it over other ways to set the text. – Wolfram Sep 22 '12 at 22:00
Thank you for suggesting \emergencystretch. I finally used that. – Wolfram Sep 22 '12 at 22:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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