Re: PDF Generation - URL problem
I have had the too long URL problem in the past and was monitoring this thread. I changed Herbert's test file just slightly (attached), and I don't see any difference in the way the 2 urls are treated. Both are broken correctly with pdflatex, but in the other pdf and xdvi output, they run off into the right margin and off the edge of the page. I have the same problem with equations, and in that case I think I have no alternative but to break into lines manually. But with URLs, where line placement is more unpredictable, I'm concerned. Herbert Voss wrote: Jason L W Lynn wrote: I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert \the_end -- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Sciencehttp://lark.cc.ku.edu/~pauljohn 1541 Lilac Lane, Rm 504 University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66044-3177 FAX: (785) 864-5700 #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage[colorlinks]{hyperref} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Custom \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 15cm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation What if this does not have a full line to work with? \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF. This one runs off the end of the page. \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
Re: PDF Generation - URL problem
I have had the too long URL problem in the past and was monitoring this thread. I changed Herbert's test file just slightly (attached), and I don't see any difference in the way the 2 urls are treated. Both are broken correctly with pdflatex, but in the other pdf and xdvi output, they run off into the right margin and off the edge of the page. I have the same problem with equations, and in that case I think I have no alternative but to break into lines manually. But with URLs, where line placement is more unpredictable, I'm concerned. Herbert Voss wrote: Jason L W Lynn wrote: I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert \the_end -- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Sciencehttp://lark.cc.ku.edu/~pauljohn 1541 Lilac Lane, Rm 504 University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66044-3177 FAX: (785) 864-5700 #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage[colorlinks]{hyperref} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Custom \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 15cm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation What if this does not have a full line to work with? \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF. This one runs off the end of the page. \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
Re: PDF Generation - URL problem
I have had the "too long URL" problem in the past and was monitoring this thread. I changed Herbert's test file just slightly (attached), and I don't see any difference in the way the 2 urls are treated. Both are broken correctly with pdflatex, but in the other pdf and xdvi output, they run off into the right margin and off the edge of the page. I have the same problem with equations, and in that case I think I have no alternative but to break into lines manually. But with URLs, where line placement is more unpredictable, I'm concerned. Herbert Voss wrote: Jason L W Lynn wrote: > I guess there isn't a solution to this problem as of yet. Perhaps I > will have to keep the URL as standard text and put the link somewhere > else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert \the_end -- Paul E. Johnson email: [EMAIL PROTECTED] Dept. of Political Sciencehttp://lark.cc.ku.edu/~pauljohn 1541 Lilac Lane, Rm 504 University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66044-3177 FAX: (785) 864-5700 #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage[colorlinks]{hyperref} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Custom \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 15cm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation What if this does not have a full line to work with? \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF. This one runs off the end of the page. \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
PDF Generation - URL problem
I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. Thanks, -- Jason L W Lynn [EMAIL PROTECTED]
Re: PDF Generation - URL problem
Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. Install the url package (ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/url.sty). The urls should break automatically afterwards. I don't know what is wrong if you have installed it already. You can find out wether LyX did recognize the url package in Help-LaTeX-Configuration. Georg
Re: PDF Generation - URL problem
Whoops... sorry... didn't copy the list... I have url.sty and am using it, but updated to the one you sent. Still no luck. Thanks for you help, jason On Fri, 2004-11-19 at 09:55, Georg Baum wrote: Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. Install the url package (ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/url.sty). The urls should break automatically afterwards. I don't know what is wrong if you have installed it already. You can find out wether LyX did recognize the url package in Help-LaTeX-Configuration. Georg -- Jason L W Lynn [EMAIL PROTECTED]
Re: PDF Generation - URL problem
Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. did you insert the url via Insert-Url and did you use pdflatex or ps2pdf? Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
Yes, I used Insert-URL. I use pdflatex (View-PDF (pdflatex)) Thanks, jason On Fri, 2004-11-19 at 10:56, Herbert Voss wrote: Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. did you insert the url via Insert-Url and did you use pdflatex or ps2pdf? Herbert -- Jason L W Lynn [EMAIL PROTECTED]
Re: PDF Generation - URL problem
Jason L W Lynn wrote: Yes, I used Insert-URL. I use pdflatex (View-PDF (pdflatex)) then send me the doc as private mail Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
Unfortunately, I cannot send you the document, but I can send you a test document that I just created that is causing problems. See attached. Thanks, jason On Fri, 2004-11-19 at 11:26, Herbert Voss wrote: Jason L W Lynn wrote: Yes, I used Insert-URL. I use pdflatex (View-PDF (pdflatex)) then send me the doc as private mail Herbert -- Jason L W Lynn [EMAIL PROTECTED] #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{ae,aecompl} \topmargin=-.5in \oddsidemargin=.25in \evensidemargin=0in \textwidth=6.25in \textheight=9in \pagestyle{headings} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation \begin_inset LatexCommand \url[http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html]{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF \begin_inset LatexCommand \url[This URL should not cause any problems at all]{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
Re: PDF Generation - URL problem
Jason L W Lynn wrote: Unfortunately, I cannot send you the document, but I can send you a test document that I just created that is causing problems. See attached. there is a misunderstanding here. The url is broken across the lines, but not your name for the link, which is in your case the same one. You can insert a space in the name field, where a linebreak makes sense. On the other hand it makes no real sense to have sich long lonks in your text. Use a short one. Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
I'm sorry if I didn't make myself clear. So you have the same problem, I guess? Unfortunately, I would like to have the entire URL for the 'Name' in the link because this will be going to print. Without the entire URL, there is no way a reader will know where to go. I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). Thanks for your help, jason On Fri, 2004-11-19 at 12:01, Herbert Voss wrote: there is a misunderstanding here. The url is broken across the lines, but not your name for the link, which is in your case the same one. You can insert a space in the name field, where a linebreak makes sense. On the other hand it makes no real sense to have sich long lonks in your text. Use a short one. Herbert -- Jason L W Lynn [EMAIL PROTECTED]
Re: PDF Generation - URL problem
Subject: Re: PDF Generation - URL problem From: Jason L W Lynn [EMAIL PROTECTED] To: Herbert Voss [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Fri, 19 Nov 2004 12:05:39 -0600 I'm sorry if I didn't make myself clear. So you have the same problem, I guess? Unfortunately, I would like to have the entire URL for the 'Name' in the link because this will be going to print. Without the entire URL, there is no way a reader will know where to go. I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). It seems to me that the implementation of a link in LyX is misleading, as the user would like the Name to behave as an anchor. Using ERT (or external postfiltering of the lyx file), I usually put external links as footnotes, anchored to the name, using the appropriate command in latex2html. Once turned in html, I get a real anchor. In that way, I get the hyperlink in electronic docs (either html or pdf) but the url remains printed in normal documents. In addition, printing as a footnote minimizes the risk of url hyphenation. However, it's not great when there are lots of urls in the page (but in that case, a html document would be better IMHO). -- Jean-Pierre
Re: PDF Generation - URL problem
Jason L W Lynn wrote: I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage[colorlinks]{hyperref} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Custom \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 15cm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
Re: PDF Generation - URL problem
An entirely non-LyX solution: Of course such long URLs are undesirable in general and that's why they invented tinyurl: http://tinyurl.com/ Copy and paste your long URL there, and they will generate a shorter (tiny) one for you. Suat Herbert Voss wrote: Jason L W Lynn wrote: I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert
PDF Generation - URL problem
I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. Thanks, -- Jason L W Lynn [EMAIL PROTECTED]
Re: PDF Generation - URL problem
Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. Install the url package (ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/url.sty). The urls should break automatically afterwards. I don't know what is wrong if you have installed it already. You can find out wether LyX did recognize the url package in Help-LaTeX-Configuration. Georg
Re: PDF Generation - URL problem
Whoops... sorry... didn't copy the list... I have url.sty and am using it, but updated to the one you sent. Still no luck. Thanks for you help, jason On Fri, 2004-11-19 at 09:55, Georg Baum wrote: Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. Install the url package (ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/url.sty). The urls should break automatically afterwards. I don't know what is wrong if you have installed it already. You can find out wether LyX did recognize the url package in Help-LaTeX-Configuration. Georg -- Jason L W Lynn [EMAIL PROTECTED]
Re: PDF Generation - URL problem
Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. did you insert the url via Insert-Url and did you use pdflatex or ps2pdf? Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
Yes, I used Insert-URL. I use pdflatex (View-PDF (pdflatex)) Thanks, jason On Fri, 2004-11-19 at 10:56, Herbert Voss wrote: Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. did you insert the url via Insert-Url and did you use pdflatex or ps2pdf? Herbert -- Jason L W Lynn [EMAIL PROTECTED]
Re: PDF Generation - URL problem
Jason L W Lynn wrote: Yes, I used Insert-URL. I use pdflatex (View-PDF (pdflatex)) then send me the doc as private mail Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
Unfortunately, I cannot send you the document, but I can send you a test document that I just created that is causing problems. See attached. Thanks, jason On Fri, 2004-11-19 at 11:26, Herbert Voss wrote: Jason L W Lynn wrote: Yes, I used Insert-URL. I use pdflatex (View-PDF (pdflatex)) then send me the doc as private mail Herbert -- Jason L W Lynn [EMAIL PROTECTED] #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{ae,aecompl} \topmargin=-.5in \oddsidemargin=.25in \evensidemargin=0in \textwidth=6.25in \textheight=9in \pagestyle{headings} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation \begin_inset LatexCommand \url[http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html]{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF \begin_inset LatexCommand \url[This URL should not cause any problems at all]{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
Re: PDF Generation - URL problem
Jason L W Lynn wrote: Unfortunately, I cannot send you the document, but I can send you a test document that I just created that is causing problems. See attached. there is a misunderstanding here. The url is broken across the lines, but not your name for the link, which is in your case the same one. You can insert a space in the name field, where a linebreak makes sense. On the other hand it makes no real sense to have sich long lonks in your text. Use a short one. Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
I'm sorry if I didn't make myself clear. So you have the same problem, I guess? Unfortunately, I would like to have the entire URL for the 'Name' in the link because this will be going to print. Without the entire URL, there is no way a reader will know where to go. I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). Thanks for your help, jason On Fri, 2004-11-19 at 12:01, Herbert Voss wrote: there is a misunderstanding here. The url is broken across the lines, but not your name for the link, which is in your case the same one. You can insert a space in the name field, where a linebreak makes sense. On the other hand it makes no real sense to have sich long lonks in your text. Use a short one. Herbert -- Jason L W Lynn [EMAIL PROTECTED]
Re: PDF Generation - URL problem
Subject: Re: PDF Generation - URL problem From: Jason L W Lynn [EMAIL PROTECTED] To: Herbert Voss [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Fri, 19 Nov 2004 12:05:39 -0600 I'm sorry if I didn't make myself clear. So you have the same problem, I guess? Unfortunately, I would like to have the entire URL for the 'Name' in the link because this will be going to print. Without the entire URL, there is no way a reader will know where to go. I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). It seems to me that the implementation of a link in LyX is misleading, as the user would like the Name to behave as an anchor. Using ERT (or external postfiltering of the lyx file), I usually put external links as footnotes, anchored to the name, using the appropriate command in latex2html. Once turned in html, I get a real anchor. In that way, I get the hyperlink in electronic docs (either html or pdf) but the url remains printed in normal documents. In addition, printing as a footnote minimizes the risk of url hyphenation. However, it's not great when there are lots of urls in the page (but in that case, a html document would be better IMHO). -- Jean-Pierre
Re: PDF Generation - URL problem
Jason L W Lynn wrote: I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage[colorlinks]{hyperref} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Custom \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 15cm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
Re: PDF Generation - URL problem
An entirely non-LyX solution: Of course such long URLs are undesirable in general and that's why they invented tinyurl: http://tinyurl.com/ Copy and paste your long URL there, and they will generate a shorter (tiny) one for you. Suat Herbert Voss wrote: Jason L W Lynn wrote: I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert
PDF Generation - URL problem
I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. Thanks, -- Jason L W Lynn <[EMAIL PROTECTED]>
Re: PDF Generation - URL problem
Jason L W Lynn wrote: > I'm having a problem with my pdflatex generation of my lyx document. > Any URLs that do not contain spaces (and are rather long) are not line > wrapping at the right margin. In fact, they are printing straight off > of the page. The URL name is usually the exact same as the URL (so that > printed copies show the URL as well). Does anyone know how to correct > this problem? Has anyone seen this before? I'd rather not go through > the entire document and insert forced line feeds before every link that > runs outside of the margins. Install the url package (ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/url.sty). The urls should break automatically afterwards. I don't know what is wrong if you have installed it already. You can find out wether LyX did recognize the url package in Help->LaTeX-Configuration. Georg
Re: PDF Generation - URL problem
Whoops... sorry... didn't copy the list... I have url.sty and am using it, but updated to the one you sent. Still no luck. Thanks for you help, jason On Fri, 2004-11-19 at 09:55, Georg Baum wrote: > Jason L W Lynn wrote: > > > I'm having a problem with my pdflatex generation of my lyx document. > > Any URLs that do not contain spaces (and are rather long) are not line > > wrapping at the right margin. In fact, they are printing straight off > > of the page. The URL name is usually the exact same as the URL (so that > > printed copies show the URL as well). Does anyone know how to correct > > this problem? Has anyone seen this before? I'd rather not go through > > the entire document and insert forced line feeds before every link that > > runs outside of the margins. > > Install the url package > (ftp://cam.ctan.org/tex-archive/macros/latex/contrib/misc/url.sty). The urls > should break automatically afterwards. > I don't know what is wrong if you have installed it already. You can find > out wether LyX did recognize the url package in Help->LaTeX-Configuration. > > > Georg -- Jason L W Lynn <[EMAIL PROTECTED]>
Re: PDF Generation - URL problem
Jason L W Lynn wrote: I'm having a problem with my pdflatex generation of my lyx document. Any URLs that do not contain spaces (and are rather long) are not line wrapping at the right margin. In fact, they are printing straight off of the page. The URL name is usually the exact same as the URL (so that printed copies show the URL as well). Does anyone know how to correct this problem? Has anyone seen this before? I'd rather not go through the entire document and insert forced line feeds before every link that runs outside of the margins. did you insert the url via Insert->Url and did you use pdflatex or ps2pdf? Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
Yes, I used Insert->URL. I use pdflatex (View->PDF (pdflatex)) Thanks, jason On Fri, 2004-11-19 at 10:56, Herbert Voss wrote: > Jason L W Lynn wrote: > > I'm having a problem with my pdflatex generation of my lyx document. > > Any URLs that do not contain spaces (and are rather long) are not line > > wrapping at the right margin. In fact, they are printing straight off > > of the page. The URL name is usually the exact same as the URL (so that > > printed copies show the URL as well). Does anyone know how to correct > > this problem? Has anyone seen this before? I'd rather not go through > > the entire document and insert forced line feeds before every link that > > runs outside of the margins. > > did you insert the url via Insert->Url and did you > use pdflatex or ps2pdf? > > Herbert -- Jason L W Lynn <[EMAIL PROTECTED]>
Re: PDF Generation - URL problem
Jason L W Lynn wrote: Yes, I used Insert->URL. I use pdflatex (View->PDF (pdflatex)) then send me the doc as private mail Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
Unfortunately, I cannot send you the document, but I can send you a test document that I just created that is causing problems. See attached. Thanks, jason On Fri, 2004-11-19 at 11:26, Herbert Voss wrote: > Jason L W Lynn wrote: > > Yes, I used Insert->URL. > > I use pdflatex (View->PDF (pdflatex)) > > then send me the doc as private mail > > Herbert -- Jason L W Lynn <[EMAIL PROTECTED]> #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{ae,aecompl} \topmargin=-.5in \oddsidemargin=.25in \evensidemargin=0in \textwidth=6.25in \textheight=9in \pagestyle{headings} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation \begin_inset LatexCommand \url[http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html]{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF \begin_inset LatexCommand \url[This URL should not cause any problems at all]{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
Re: PDF Generation - URL problem
Jason L W Lynn wrote: Unfortunately, I cannot send you the document, but I can send you a test document that I just created that is causing problems. See attached. there is a misunderstanding here. The url is broken across the lines, but not your name for the link, which is in your case the same one. You can insert a space in the name field, where a linebreak makes sense. On the other hand it makes no real sense to have sich long lonks in your text. Use a short one. Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: PDF Generation - URL problem
I'm sorry if I didn't make myself clear. So you have the same problem, I guess? Unfortunately, I would like to have the entire URL for the 'Name' in the link because this will be going to print. Without the entire URL, there is no way a reader will know where to go. I guess there isn't a solution to this problem as of yet. Perhaps I will have to keep the URL as standard text and put the link somewhere else (for those that are using the electronic copy). Thanks for your help, jason On Fri, 2004-11-19 at 12:01, Herbert Voss wrote: > there is a misunderstanding here. The url is broken across the lines, > but not your name for the link, which is in your case the same one. > You can insert a space in the name field, where a linebreak makes > sense. On the other hand it makes no real sense to have sich long > lonks in your text. Use a short one. > > Herbert -- Jason L W Lynn <[EMAIL PROTECTED]>
Re: PDF Generation - URL problem
>>Subject: Re: PDF Generation - URL problem >>From: Jason L W Lynn <[EMAIL PROTECTED]> >>To: Herbert Voss <[EMAIL PROTECTED]> >>Cc: [EMAIL PROTECTED] >>Date: Fri, 19 Nov 2004 12:05:39 -0600 >> >>I'm sorry if I didn't make myself clear. So you have the same problem, >>I guess? >> >>Unfortunately, I would like to have the entire URL for the 'Name' in the >>link because this will be going to print. Without the entire URL, there >>is no way a reader will know where to go. >> >>I guess there isn't a solution to this problem as of yet. Perhaps I >>will have to keep the URL as standard text and put the link somewhere >>else (for those that are using the electronic copy). It seems to me that the implementation of a link in LyX is misleading, as the user would like the Name to behave as an anchor. Using ERT (or external postfiltering of the lyx file), I usually put external links as footnotes, anchored to the name, using the appropriate command in latex2html. Once turned in html, I get a real anchor. In that way, I get the hyperlink in electronic docs (either html or pdf) but the url remains printed in normal documents. In addition, printing as a footnote minimizes the risk of url hyphenation. However, it's not great when there are lots of urls in the page (but in that case, a html document would be better IMHO). -- Jean-Pierre
Re: PDF Generation - URL problem
Jason L W Lynn wrote: > I guess there isn't a solution to this problem as of yet. Perhaps I > will have to keep the URL as standard text and put the link somewhere > else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage[colorlinks]{hyperref} \end_preamble \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Custom \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \paperwidth 15cm \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard This URL is one example that is causing trouble with PDF generation \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset . \layout Standard While this URL is one example that is not causing troubles with PDF \begin_inset LatexCommand \url{http://www.blkaskjsd.lsdkjslkjsd.com/sdlkjlsd/alksjdlkjsd/lksdjlkjsd.html} \end_inset \the_end
Re: PDF Generation - URL problem
An entirely non-LyX solution: Of course such long URLs are undesirable in general and that's why they invented tinyurl: http://tinyurl.com/ Copy and paste your long URL there, and they will generate a shorter (tiny) one for you. Suat Herbert Voss wrote: Jason L W Lynn wrote: > I guess there isn't a solution to this problem as of yet. Perhaps I > will have to keep the URL as standard text and put the link somewhere > else (for those that are using the electronic copy). you do not understand what I mean. Attached your doc, run it with pdflatex and everything will be as you expect. HErbert