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 have the following problem. I am writing a paper in LaTeX and at some point I am adding a URL as a footnote.

It looks like this:

\footnote{\url{https://lists.inf.ethz.ch/pipermail/barrelfish-users/2011-July/000204.html}}

It renders the URL as expected. But when I click on the URL in the PDF-file, my browser opens the URL up to the first -, i.e. it opens

 https://lists.inf.ethz.ch/pipermail/barrelfish-

Anyone an idea why this does happen and how I can fix the problem?


MWE

\documentclass{article}
\usepackage{url}
\begin{document}
\title{random title}
\maketitle
\begin{abstract}

MWE\footnote{\url{https://lists.inf.ethz.ch/pipermail/barrelfish-users/2011-July/000204.html}}
\end{abstract}

\end{document}
share|improve this question
1  
The MWE following works as expected: \documentclass{article} \usepackage{hyperref} \begin{document} \footnote{\url{https://lists.inf.ethz.ch/pipermail /barrelfish-users/2011-July/000204.html}} {\url{https://lists.inf.ethz.ch/pipermail/barrelfish-users/2011-July/000204.html‌​}} \end{document} The problem seems to be somewhere else, so please try to prepare a minimal working example. –  Johannes_B Nov 26 '13 at 17:17
    
Welcome to TeX.SX! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Andrew Swann Nov 26 '13 at 17:32
    
It might also help to know which pdf viewer you are using. –  ArTourter Nov 26 '13 at 18:23
    
Here is a MWE were it does not work: \documentclass{article} \usepackage{url} \begin{document} \title{random title} \maketitle \begin{abstract} MWE\footnote{\url{lists.inf.ethz.ch/pipermail/barrelfish-users/2011-July/…}} \end{abstract} \end{document} –  Albert Heinle Nov 26 '13 at 20:20
1  
Okay, I found a workaround. Apparently, it is not enough to add the package url but one has to additionally add hyperref in order to have the expected behaviour when clicking on the link in the document. This is very strange, and I would actually still like to know why this behaviour occurs. This is VERY strange to me, but maybe someone here has a good explanation. –  Albert Heinle Nov 26 '13 at 20:29
show 2 more comments

1 Answer

This is a 'feature' of the PDF viewer you are using. Some (most?) PDF viewers will attempt to find/'activate' links in plain text based on pattern matching. However, at the PDF itself does not contain a full hyperlink this may or may not be accurate. Adding the hyperref package normally fixes this as it includes a (PDF-level) hyperlink in the PDF when you use \url: just using the url package only makes the link human-readable.

share|improve this answer
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.