TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 write my document in Latex for Mac and I don't know how to prevent Latex from putting 'the' and similar short words at the end of the line. I already tried impnattypo and encxvlna packages, but none of them worked. Any ideas, please?

share|improve this question
A tedious way would be to replace each instance of the by the~. There must be better ways... – Jubobs May 8 '13 at 11:39
Are you using babel with the correct language specification? – Mario S. E. May 8 '13 at 11:51
Yes, I use \usepackage[english]{babel}. Is it ok that way? – nika May 8 '13 at 11:56
@nika yes, it is OK. Is this line breaking occurring a lot, or is it just a one case thing? – Mario S. E. May 8 '13 at 12:15
You're planning to open Pandora's box. If I see it correctly, the two packages mentioned were tailored for contexts in which single letters at the end of a line are considered unacceptable. You seem to be thinking about words that are 3 or more letters long, and that occur very frequently in English texts. If you tied all these words to the words succeeding them (which may be short words themselves), you'll be seriously messing up the appearance of your paragraphs, as you're reducing the number of breaking points that TeX may use. The result is likely to look awful. – Nils L May 8 '13 at 12:20

Any ideas, please?

not the kind of answer you may be looking for, but: an idea -- of what the result may look like when 3-or-less-letter-words are prevented from finishing a line.

One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. What's happened to me?, he thought. It wasn't a dream. His room, a proper human room although a little too small, lay peacefully between its four familiar walls. A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame.

One morning, when Gregor Samsa woke from troubled dreams, he~found himself transformed in~his~bed into a~horrible vermin. He~lay~on~his armour-like back, and~if~he~lifted his~head a~little he~could see~his~brown belly, slightly domed and~divided by~arches into stiff sections. The~bedding was~hardly able to~cover it and~seemed ready to~slide off~any~moment. His~many legs, pitifully thin compared with the~size of~the~rest of~him, waved about helplessly as~he~looked. What's happened to~me?, he~thought. It wasn't a~dream. His~room, a~proper human room although a~little too~small, lay~peacefully between its~four familiar walls. A~collection of~textile samples lay~spread out~on~the~table - Samsa was a~travelling salesman - and~above it~there hung a~picture that he~had~recently cut~out~of~an~illustrated magazine and~housed in~a~nice, gilded frame.


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.