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

I'm trying to format a long paper of mine for the kindle. The following works, but there's a problem.

 \usepackage[paperwidth=9cm, paperheight=11.5cm, top=0.1cm, left=0.1cm, right=0.1cm, bottom=0.1cm]{geometry}

Sometimes if a line break is needed in the middle of a word and LaTeX doesn't like the break locations (i.e., it would cause underfull box rather than overfull), it doesn't bother with a hyphen or word wrap. This makes some words run right off the edge of the screen.

How can I convince LaTeX to wrap there and have an underfull line rather than having words run right off the edge of the page? That later seems quite a lot worse to me.

I'd rather not have to hand tune each line, since the usual format is a regular page, not a kindle page — this is just for proofreading on the road.

share|improve this question
up vote 3 down vote accepted

Try adding \sloppy at the beginning of your document. This sets the value of \tolerance, which TeX uses as part of its linebreaking and hypehenation rules, to 9999. This will allow really 'bad' breaks, from a TeX point of view, but may solve your particular problem.

share|improve this answer
\usepackage[paperwidth=9cm, paperheight=11.5cm, 
            top=0.1cm, left=0.1cm, right=0.1cm, 



A verrrrrrrrrrrrrrrrry loooooooooooooong \mbox{woooooooord}

A verrrrrrrrrrrrrrrrry loooooooooooooong \mbox{woooooooord}


enter image description here

share|improve this answer

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.