I met a problem about how to make the long link into a multi-lines one.

The following is LaTeX code:




test \footnote{photo from:Ferroelectrics-Physical-Effects,M.Lallart,2011,InTech, \\ \url{http://www.intechopen.com/books/ferroelectrics-physical-effects/photo-induced-effect-in-quantum-paraelectric-materials-studied-by-transient-birefringence-measuremen} }:


I referred to the suggestions of this Forcing linebreaks in \url But I still could not make \url work in sloppypar. That means when I delete \url{content} only put "content" in sloppypar it will work but I need \url to highlight or distinguish the url link.

How can I realize this?

I use XeLaTeX.


The problem have been solved. Thank you @Herbert You really give me a lot of help.

I should change the \PassOptionsToPackage{hyphens}{url} to \usepackage[hyphens]{url} and that will works : enter image description here

I guess I have used the wrong code to Pass Option.


2 Answers 2


As Werner already mentioned use the hyphens option and for the footnote do not use the sloppypar environment:



Toshiro Kohmoto and Yuka Koyama (2011). Photo-induced Effect in Quantum    Paraelectric Materials Studied by Transient Birefringence Measurement, 
Ferroelectrics~--~Physical Effects, Dr. Mickal Lallart (Ed.), ISBN: 978-953-307-453-5, InTech, DOI: 10.5772/17132. Available from:


enter image description here

  • thank you for your answer. I follow your suggestion but it still does not work. the effect is like this :weibolink in my weibo(sorry I could not upload image in tex.stackexchage.com). I use '\RequirePackage[colorlinks,citecolor=black,linkcolor=black]{hyperref} ' and '\PassOptionsToPackage{hyphens}{url}' to include my url.
    – sikisis
    May 23, 2013 at 6:32
  • please provide a complete example code in your question.
    – user2478
    May 23, 2013 at 6:36
  • give all the code? I am using someone's template to finish my bachelor thesis. Put all these up?
    – sikisis
    May 23, 2013 at 6:43
  • no, only the code with hyperref, url and one word and the footnote
    – user2478
    May 23, 2013 at 6:45
  • 1
    Thank you for your kind advice! @texenthusiast I will take care of it.
    – sikisis
    May 23, 2013 at 7:10

As stated in the url package documentation:

Package Option: hyphens
Ordinarily, breaks are not allowed after “-” characters because this leads to confusion. (Is the “-” part of the address or just a hyphen?) The package option “[hyphens]” allows breaks after explicit hyphen characters. The \url command will never ever hyphenate words.

This is exactly the problem with your URL. Using the hyphens package options allows it to break at -:

enter image description here

\usepackage[hyphens]{url}% http://ctan.org/pkg/url

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .