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:
Code: Select all
\usepackage[hyphens]{url}
Code: Select all
The package url has already been loaded with options:
[]
There has now been an attempt to load it with options
[hyphens]
Adding the global options:
,hyphens
to your \documentclass declaration may fix this.
Try typing <return> to proceed.
Code: Select all
\expandafter\def\expandafter\UrlBreaks\expandafter{\UrlBreaks\do\a%
\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m\do\n%
\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z\do\&}
Code: Select all
\usepackage{hyperref}
\hypersetup{breaklinks=true}
\usepackage[hyphenbreaks]{breakurl}
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.