views:

493

answers:

2

Hi everyone, Having a small issue with long url's in latex. When a url is over a line wrong and goes onto a second like, the hyperlink only uses the first line. Is there a way to get around this and yet still have the URL on multiple lines?

Cheers, Laurence

+2  A: 

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.

Peter
+1  A: 

What packages (hyperref,url) and drivers (pdftex, dvips, etc.) are you using? Are you using the breaklinks option to hyperref?

According to the TeX FAQ you might want to try the breakurl package, though it appears you may simply be out of luck in some cases.

Ivan Andrus