Take the 2-minute tour ×
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.

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
1  
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
2  
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
add comment

1 Answer 1

up vote 5 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

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.