Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I face a weird problem. I use \url{} (URL package) to specify a URL in a bibitem. After compiling my LateX file, the URL is well displayed in my PDF file. But, when I drag the mouse over the URL, the URL that is displayed in the floating box appearing is wrong: it contains additional numbers. When I click on it, my browser goes to this wrong URL and does not find of course any website. My URL is quite long and it seems that these unwanted numbers appear whenever a linebreak is used by LateX.

Could anyone help me to solve this issue ?

share|improve this question
1  
Welcome to TeX.sx! You don't have to sign with your name since it automatically appears in the lower right corner of your post. A suggestion: Change your username to something more friendly than "user21071". Also, it would probably be easier for people to help you if you could include a minimal working example (MWE) that illustrates your problem –  Corentin Oct 18 '12 at 15:29
add comment

1 Answer

If your PDF viewer has made the link using some heuristics, then try package hyperref to get link annotations in the PDF file. Otherwise a MWE would show problematic characters in the URL (they might need to be percent encoded).

share|improve this answer
    
Thank you for your anwser, but what do you mean by MWE ? –  Arnaud Oct 19 '12 at 13:21
    
Moreover, when using hyperref with long URLs, it doesn't break properly the URLs –  Arnaud Oct 19 '12 at 13:26
    
OK I got it. Here is a MWE: –  Arnaud Oct 19 '12 at 13:56
    
\url{archive.defra.gov.uk/environment/quality/noise/research/…} is what I type in my LateX file. archive.defra.1181gov.uk/environment/quality/noise/research/… is the URL address my browser is looking for. –  Arnaud Oct 19 '12 at 14:03
    
@Arnaud See the first comment of Corentin to your question. It contains a link that explains "MWE". When using hyperref use a driver that supports broken links or in some cases package breakurl helps, see README of hyperref. –  Heiko Oberdiek Oct 19 '12 at 15:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.