Search code examples
latexline-breaks

URL latex linebreak


When a URL is over a line and goes onto a second line, the hyperlink only uses the first line. Is there a way to get around this and yet still have the URL on multiple lines?


Solution

  • You should use the url package:

    \usepackage{url}
    ...
    \url{http://long.url.com/...     .../stuff}
    

    and it will break it for you at an appropriate place.