Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 254
Ljdawson Avatar asked Apr 14 '10 18:04

Ljdawson


2 Answers

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.

like image 64
Peter Avatar answered Oct 12 '22 11:10

Peter


I suggest using package:

\usepackage{xurl}

This works fine for me on overleaf.

Example:

\url{https://www.tudelft.nl/ewi/over-de-faculteit/afdelingen/intelligent-systems/pattern-recognition-bioinformatics/pattern-recognition-laboratory/data-and-software/dd-tools/} 
like image 21
S G Avatar answered Oct 12 '22 11:10

S G