# Re: breaking long url

Sharma, Vivek wrote:

I am using the memoir class, Lyx 1.6.4 and want to write the following:


Web sites:
University Hospital Llandough, Cardiff:

East Glamorgan General Hospital now known as to Royal Glamorgan Hospital,
Cardiff

Ynys Maerdy, Pontyclun, Llantrisant, CF72 8XR

http://www.wales.nhs.uk/hospitals.cfm


Ysbyty Gwynedd Hospital, Bangor:
http://www.northwestwales.org/WiSSCMS-en-308.aspx

_______________

I have the following in the preamble:

\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{color}
%\usepackage[%
%pdfstartview=FitH,%
%bookmarksopen=true,bookmarksopenlevel=0,%
%plainpages=false,pdfpagelabels,%
%pagebackref=true,%
%pdftoolbar=false]{hyperref}
\usepackage{url}
%% Define a new 'leo' style for the package that will use a smaller font.
%\makeatletter
%\def\...@leostyle{%

\...@ifundefined{selectfont}%{\def\urlfont{\sf}}%{\def\urlfont{\small\ttfamily}}}
%\makeatother
%% Now actually use the newly defined style.
%\urlstyle{leo}
\usepackage{breakurl}

Problem despite trying the insert URL option in lyx or the above putting the
url as ERT i have not been able to get it to break appropriately and the url
goes beyond the text margins. I have  tried the suggestion to put it as
\href{url}{...} as well

I would appreciate any help with this

Regards
Vivek



This thread may help: http://article.gmane.org/gmane.editors.lyx.general/32119/match=long+url.

/Paul