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.

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

@misc{jvmti,
  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
add comment

1 Answer

up vote 2 down vote accepted

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

\usepackage{etoolbox}
\apptocmd{\thebibliography}{\raggedright}{}{}

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

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.