Add tags Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
I have the following problem:
The thing is that the URL is too long and it's not broken into multiple lines. From what I've read, it seems that the url package should take care of this, but it doesn't. Do you know any way to force the splitting ? Thank you.
You can make url less restrictive. For example using the option hypens:
how are you compiling? latex + dvips + ps2pdf does not automatically break URLs under hyperref, whereas pdflatex does. whith latex + dvips you also need breakurl
I'm compiling with pdflatex. Thanks Rasmus, but the solution doesn't seem to work:
breaks fine for me, but some of the text goes into the right margin because TeX is trying to maintain a strait right edge, and thus chooses these breaks to be better than stretching the word space too much.
This can be seen if you add \sloppy at the start of the codument.
No, this doesn't work for me at all.
But, in my latex file, I had a \url
Since the url is too long that I can't put such a url in a single row of latex editor Kile. There is a "return carriage" before "JP_ASMAAMBuilding.avi".
Therefore, whenever after I built the .pdf file, I can't manage to link to the url I want, because there is a space just before "JP_ASMAAMBuilding.avi".
So, every time I got "Error 404: File Not Found".
which actually means
"http://www.visionopen.com/products/JP_ASMAAMBuilding_media/ JP_ASMAAMBuilding.avi" is not a file.
My question is how I can manage to remove the space before "JP_ASMAAMBuilding.avi" so that the link address is really an available one?
Welcome to Vision Open
The url package sets URLs in math mode, so any spaces are actually ignored. So the code
Furthermore, the url package doesn't create hyperlinks, only hyperref does. The corresponding code
Thank you very much for your prompt reply.
I am using Kile under Linux. So, can you please tell me where I can specify "no space at the end of line" in Kile editor?
I tried all items under
but I can't find anything related to how to solve the problem encountering.
Can you please help to find out where I should change in the settings?
Welcome to Vision Open
Users browsing this forum: No registered users and 5 guests