Re: I'm certain it has been discussed here previously..............
On Mon, 04 Jun 2012 08:43:50 -0400 "Allen Barker allen.l.bar...@gmail.com" suggested this: >There's a good discussion on the page >http://tex.stackexchange.com/questions/3033/forcing-linebreaks-in-url > >The solution to just add > >\renewcommand{\UrlBreaks}{\do\/\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\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\0\do\1\do\2\do\3\do\4\do\5\do\6 >\do\7\do\8\do\9\do\_\do\%\do\&\do\.\do\?} > >to the preamble seems to work for me with pdfLatex, but not with >Postscript. Thank you Allen. As you recommend, that is a good discussion. I tried various ways of getting it to work from the suggestions and finally got it working with this from the discussion: \renewcommand{\UrlBreaks}{\do\/\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\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} Like you, I see that it works correctly in the pdf document but not in postscript. But that works well enough for my purpose. Thank you again. It's much appreciated. Charlie -- ** ** ** ** ** ** ** ** ** ** Registered Linux User:- 329524 *** After the ecstasy, the laundry. Zen Saying *** Debian GNU/Linux - just the best way to create magic ___
Re: I'm certain it has been discussed here previously..............
On 06/03/2012 05:38 AM, Charlie wrote: I'm certain it's been discussed here before, but I can't find a reference to it. The way to stop a URL as an "insert URL" from running out over the margins into infinity. This happens in various document classes. The first line of the Insert URL has the right idea, but the second one doesn't stop at any margin. I know it can be done easily without using the insert URL application, but then the URL can't just be clicked on in the .pdf version to take the reader to the location. Instead it needs to be copied and pasted into a browser address bar. I think it should be possible to show the URL in a different way, even if it's just a link to the correct page. Just thought I would ask if someone can point me to the location of the discussion. There's a good discussion on the page http://tex.stackexchange.com/questions/3033/forcing-linebreaks-in-url The solution to just add \renewcommand{\UrlBreaks}{\do\/\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\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\0\do\1\do\2\do\3\do\4\do\5\do\6 \do\7\do\8\do\9\do\_\do\%\do\&\do\.\do\?} to the preamble seems to work for me with pdfLatex, but not with Postscript. It lets Latex do a line break after a forward slash or any alphabetic character. I also added numbers and some punctuation symbols, though a few are probably superfluous. (Any character which is not on the list but is in the URL seems to make the line breaks overhang just slightly, by a character.) The only downside seems to be that the breaks are placed arbitrarily in the URL. A different option would be to use \href directly in an ERT: \def\ab{\allowbreak} \href{http://longURL.com/thisIsALongStringWhichCanBreakBetweenWords} {\texttt{http://longURL.com/this\ab Is\ab A\ab Long\ab String\ab Which\ab Can\ab Break\ab Between\ab Words}} Note that this allows breaks wherever the \ab is. It also allows for the text of the link to be different from the URL itself, so you could just substitute some descriptive phrase in place of the full URL in the second argument. (Without \texttt it will be in the same font as the surrounding text, just like a hyperlink.) In pdfLatex the links are clickable, but even in Postscript they seem to print and line-break OK. Unfortunately, the Latex \allowbreak command cannot be entered from the Insert > Hyperlink dialog.
Re: I'm certain it has been discussed here previously..............
On Mon, 4 Jun 2012 09:42:25 +0800 "Ray Rashif schivmeis...@gmail.com" suggested this: >Did you try explicitly loading the url package in preamble? I lied Ray, it didn't work after all. It worked on a bodgied version of a url, but when I got home and tried it on the real thing. No didn't work. Tried it as an ERT - but wouldn't allow it. I just thought I better clarify this as someone else might find it in the archives try it and wonder why it worked for me and will not work for them. Doesn't matter. I'll just use the URL as plain text and the reader can copy and paste it into their browser address bar. Thanks again for your time. Charlie -- ** ** ** ** ** ** ** ** ** ** Registered Linux User:- 329524 *** Never doubt the potential of creative idleness being a way of life. Man was elevated from the barbarian state by those who were idle, but thought a lot. ---anon *** Debian GNU/Linux - just the best way to create magic ___
Re: I'm certain it has been discussed here previously..............
On Mon, 4 Jun 2012 09:42:25 +0800, Ray Rashif wrote: On 3 June 2012 17:38, Charlie wrote: I'm certain it's been discussed here before, but I can't find a reference to it. The way to stop a URL as an "insert URL" from running out over the margins into infinity. This happens in various document classes. The first line of the Insert URL has the right idea, but the second one doesn't stop at any margin. I know it can be done easily without using the insert URL application, but then the URL can't just be clicked on in the .pdf version to take the reader to the location. Instead it needs to be copied and pasted into a browser address bar. I think it should be possible to show the URL in a different way, even if it's just a link to the correct page. Just thought I would ask if someone can point me to the location of the discussion. Thank you, Charlie Did you try explicitly loading the url package in preamble? No Ray I did not, and have done so now and it works. Thank you very much for your help. Charlie -- ** ** ** ** ** ** ** ** ** ** Registered Linux User:- 329524 *** Every man is guilty of all the good he didn't do. -Voltaire *** Debian GNU/Linux - just the best way to create magic ___
Re: I'm certain it has been discussed here previously..............
On 3 June 2012 17:38, Charlie wrote: > > I'm certain it's been discussed here before, but I can't find a > reference to it. > > The way to stop a URL as an "insert URL" from running out over the > margins into infinity. This happens in various document classes. > > The first line of the Insert URL has the right idea, but the second one > doesn't stop at any margin. > > I know it can be done easily without using the insert URL application, > but then the URL can't just be clicked on in the .pdf version to take > the reader to the location. Instead it needs to be copied and pasted > into a browser address bar. > > I think it should be possible to show the URL in a different way, even > if it's just a link to the correct page. > > Just thought I would ask if someone can point me to the location of the > discussion. > > Thank you, > Charlie > -- > ** ** ** ** ** ** ** ** ** ** > Registered Linux User:- 329524 > *** > > Patriotism is supporting your country all the time, and your government > when it deserves it. --Mark Twain > > *** > Debian GNU/Linux - just the best way to create magic > ___ Did you try explicitly loading the url package in preamble? -- GPG/PGP ID: C0711BF1
I'm certain it has been discussed here previously..............
I'm certain it's been discussed here before, but I can't find a reference to it. The way to stop a URL as an "insert URL" from running out over the margins into infinity. This happens in various document classes. The first line of the Insert URL has the right idea, but the second one doesn't stop at any margin. I know it can be done easily without using the insert URL application, but then the URL can't just be clicked on in the .pdf version to take the reader to the location. Instead it needs to be copied and pasted into a browser address bar. I think it should be possible to show the URL in a different way, even if it's just a link to the correct page. Just thought I would ask if someone can point me to the location of the discussion. Thank you, Charlie -- ** ** ** ** ** ** ** ** ** ** Registered Linux User:- 329524 *** Patriotism is supporting your country all the time, and your government when it deserves it. --Mark Twain *** Debian GNU/Linux - just the best way to create magic ___