LaTeX forum ⇒ GeneralLong URL not wrapping

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 1
Joined: Tue Feb 05, 2013 2:54 am

Long URL not wrapping

Postby lloowen » Tue Feb 05, 2013 3:29 am


My long URLs are not wrapping in the reference section of my LyX document. I'm not using a .bib file to store my references. I'm using the inline method, well I think that is what it is called.

I've seen several posts regarding this issue, unfortunately the solutions offered did not work for me :(

This is driving me mad! Have spent ALL day trying to figure this out.

For some reason this does not work for me:

I get the following error:
The package url has already been loaded with options:
There has now been an attempt to load it with options
Adding the global options:
to your \documentclass declaration may fix this.
Try typing  <return>  to proceed.

This does not work:

These did not work:


I've tried several combinations of the settings shown above to no avail.

Is there any way I can edit the latex code from LyX? Maybe using \\ to break the long urls, might do the trick. I now it's not the way to go but I don't know what else to do.

Or better still, can anyone recommend a template using the article document class that I could use in LyX that has the urls wrapping issue fixed!?

I'd be grateful for any help.
Thanks in advance.
Last edited by localghost on Tue Feb 12, 2013 6:03 pm, edited 2 times in total.

Recommended reading 2021: •
LaTeX Beginner's Guide LaTeX Cookbook
Posts: 669
Joined: Tue Mar 25, 2008 5:02 pm

Long URL not wrapping

Postby kaiserkarl13 » Tue Feb 12, 2013 4:08 pm

The problem exists because you're trying to load the url package with a specific option, but it's being loaded by one of your packages before that with a different set of options. Try loading the url package earlier than the package that requires it. If it's loaded by the document class, try using \RequirePackage[hyphens]{url} before the document class.

Also, make sure that your URL's are actually included as \url{}, i.e. that they're surrounded by a \url command. You probably already did that, but just to be sure.

Return to “General”

Who is online

Users browsing this forum: No registered users and 11 guests