1

I want to have a list of websites in a itemize-environment, but I need to use \usepackage{url} instead of \usepackage{hyperref}, because hyperref creates some problems in the document (see Multiple Footnotes in the same caption/figure/table and using hyperref). Some of them end with a "/" but the link gets substituted with "/•" then the URL does not work any more.

%LaTeX=>PDF
\documentclass{report}

\usepackage{tablefootnote} % allows to use several \tablefootnote in table&tabular
\usepackage{url}           % enables \url

\begin{document}  

\begin{itemize}
\item \url{http://www.washingtonpost.com/}
\item \url{http://www.newyorktimes.com/}
\item \url{http://www.lemonde.fr/}
\item \url{http://www.guardian.co.uk/}
\item \url{http://www.spiegel.de/}
\item \url{http://www.bbc.co.uk/news/}
\end{itemize}

\end{document}

Click on the links in the PDF and you will see the links are not work properly.

4
  • 4
    There are no links in the PDF here: the url package does not create them. Some PDF viewers make links 'on the fly' by interpreting the text of the PDF, but this is outside of the control of the 'TeX end'.
    – Joseph Wright
    Commented Sep 23, 2016 at 7:44
  • The issue you raise in the other question is a warning, not an error: you should still be perfectly fine including URLs as hyperlinks.
    – Joseph Wright
    Commented Sep 23, 2016 at 7:46
  • @JosephWright: Thanks, it was a problem of Sumatra-PDF-Viewer. Other PDF Viewers linked it correctly (Foxit Reader, Nitro Reader, PDF-XChange Editor), there are also PDF-Viewer which doesn't link \url{} using "\usepackage{url}" at all. As you correctly said the url package does not create links, only some PDF-Viewers. Commented Sep 24, 2016 at 9:45
  • 4
    If you have problems with footnotes and hyperref, then disable the footnote support of hyperef: hyperfootnotes=false. Commented Sep 24, 2016 at 10:05

1 Answer 1

1

As @JosephWright correctly said the url package does not create links, only some PDF-Viewers. It was a problem of Sumatra-PDF-Viewer. Other PDF Viewers linked it correctly (Foxit Reader, Nitro Reader, PDF-XChange Editor), there are also PDF-Viewer which doesn't link \url{} using \usepackage{url} at all.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .