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

Is there a better way to include URLs in bibtex which result in a fine formatting? At the moment I do the following:

  author        = {Oracle},
  title         = {{JVM TI Reference}},
  howpublished  = {WWW page},
  year          = {2007},
  url           = {http://download.oracle.com/javase/6/docs/platform/jvmti/jvmti.html},
  note          = {\url{http://download.oracle.com/javase/6/docs/platform/jvmti/jvmti.html}},
  abstract      = {},

This results in this very long URL and above are all the rest of information but stretched over the whole line with a lot of white spaces due to justification.

share|improve this question
See also URL line breaks with biblatex. – Martin Scharrer Jul 12 '11 at 16:55
up vote 3 down vote accepted

I've had the same problem with URLs, the way I fixed it was adding the following commands to my preamble:


Which tells LaTeX it's ok to have lines that don't span the whole text width in the bibliography.

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.