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'll start with the example

HTTP/1.0 is not justified with the surrounding text

As you can see, the HTTP/1.0 is not justified. If it were a normal word, I would add it to hyphenation rules. But obviously I can't split this one. So how can I force it to be on a new line and do the thing automatically?

share|improve this question
In this specific case, I think the situation would be worse if that word was on the next line : you're asking latex to decide between a 1mm overfull and a 1 cm underfull box, no wonder it keeps it this way. The question is still valid in general, though. – T. Verron Nov 26 '12 at 12:56
You could use \url{HTTP/1.0} or HTTP\slash 1.0 either of which would allow breaking after the / Of if you don't want it to split then \linebreak HTTP/1.0 but that will make the line very underfull – David Carlisle Nov 26 '12 at 12:58
Or try \usepackage{microtype}, it can do neat little tricks. – Alex Nov 26 '12 at 13:01
up vote 5 down vote accepted

A very good package to improve line breaks is microtype (\usepackage{microtype}).

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.