Line breaks in long URL address

2017-12-30 Thread Rich Shepard
Document class is KOMA-Script article; preamble includes: \date{} \usepackage[hyphens]{url} \makeatletter \g@addto@macro{\UrlBreaks}{\UrlOrds} \makeatother but this URL runs off the right margin; it will not break at the text width:

Re: Line breaks in long URL address

2017-12-30 Thread Ricardo Berlasso
2017-12-30 19:22 GMT+01:00 Rich Shepard : > Document class is KOMA-Script article; preamble includes: > \date{} > \usepackage[hyphens]{url} > \makeatletter > \g@addto@macro{\UrlBreaks}{\UrlOrds} > \makeatother > > but this URL runs off the right margin; it will not

Re: Line breaks in long URL address

2017-12-30 Thread Rich Shepard
On Sat, 30 Dec 2017, Ricardo Berlasso wrote: Try enabling Hyperref package. On Document → Settings → PDF Properties enable "Use Hyperref Support" → on "Hyperlinks" tab select "Break links over lines". Ricardo, Thanks for the suggestion. I removed the [hyphens] option from the url package

Re: Line breaks in long URL address

2017-12-30 Thread Paul A. Rubin
On 12/30/2017 02:25 PM, Rich Shepard wrote: On Sat, 30 Dec 2017, Ricardo Berlasso wrote: Try enabling Hyperref package. On Document → Settings → PDF Properties enable "Use Hyperref Support" → on "Hyperlinks" tab select "Break links over lines". Ricardo,   Thanks for the suggestion. I

Re: Line breaks in long URL address

2017-12-30 Thread Charlie
On Sat, 30 Dec 2017 11:25:45 -0800 (PST) Rich Shepard wrote: > On Sat, 30 Dec 2017, Ricardo Berlasso wrote: > > > Try enabling Hyperref package. On Document → Settings → PDF > > Properties enable "Use Hyperref Support" → on "Hyperlinks" tab > > select "Break links over

Re: Line breaks in long URL address

2017-12-30 Thread Rich Shepard
On Sat, 30 Dec 2017, Paul A. Rubin wrote: I stripped out all but the date thing from the preamble, passed the hyphens option as a document option, and put the URL in two different ways (hyperlink, URL). Both broke successfully. Example attached. Paul, No url or hyperref package? Rich

Re: Line breaks in long URL address

2017-12-30 Thread Rich Shepard
On Sun, 31 Dec 2017, Charlie wrote: Picked up somewhere, from the net or maybe here on this list, years ago, and used constantly in the preamble of any document constructed with LyX, is this:

Re: Line breaks in long URL address

2017-12-30 Thread Rich Shepard
On Sat, 30 Dec 2017, Paul A. Rubin wrote: LyX automagically loads both (since I have both a URL and a hyperlink), at least according to the source pane. I'm using pdflatex; don't know if that makes any difference. Paul, I, too, use pdflatex. I'll try it again. Charlie's long macro

Re: Line breaks in long URL address

2017-12-30 Thread Paul A. Rubin
On 12/30/2017 03:54 PM, Rich Shepard wrote: On Sat, 30 Dec 2017, Paul A. Rubin wrote: I stripped out all but the date thing from the preamble, passed the hyphens option as a document option, and put the URL in two different ways (hyperlink, URL). Both broke successfully. Example attached.

Re: Line breaks in long URL address

2017-12-30 Thread Paul A. Rubin
n 12/30/2017 05:42 PM, Rich Shepard wrote:   Deleting all but the \date{} line in the preable and trying to preview brought up an error box telling me that I cannot use the macro '#' in horizontal mode. Of course, there's no '#' in the address string so I have no idea where LyX is seeing it.

Re: Line breaks in long URL address [WORKING]

2017-12-30 Thread Rich Shepard
On Sun, 31 Dec 2017, Charlie wrote: It is long indeed, but it works. Though I'm not canvassing for it, just suits my needs, and thought it might solve your problem. Charlie, Yes, it works. Left the final 'e' on the third line. Ugly, but it does do the job. Not worth anyone's time, but

Re: Line breaks in long URL address [WORKING]

2017-12-30 Thread Charlie
On Sat, 30 Dec 2017 14:30:21 -0800 (PST) Rich Shepard wrote: > > It is long indeed, but it works. Though I'm not canvassing for it, > > just suits my needs, and thought it might solve your problem. > > Charlie, > >Yes, it works. Left the final 'e' on the third

Re: Line breaks in long URL address

2017-12-30 Thread Charlie
On Sat, 30 Dec 2017 12:57:48 -0800 (PST) Rich Shepard wrote: > On Sun, 31 Dec 2017, Charlie wrote: > > > Picked up somewhere, from the net or maybe here on this list, years > > ago, and used constantly in the preamble of any document > > constructed with LyX, is this: