Text FormattingLinebreak in URL breaks Link Target

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
foobert
Posts: 2
Joined: Fri Oct 02, 2009 12:43 pm

Linebreak in URL breaks Link Target

Post by foobert »

Hi,

in a larger document I have the problem. If a URL is broken into multiple lines, clicking on the first part of the broken URL, the browser opens only with the first part.

An example:

Code: Select all

\documentclass{report}
\usepackage{hyperref}
\begin{document}
Attribution-No Derivative Works as Refer
\url{http://creativecommons.org/licenses/by-nd/3.0/de/}
to view a copy of the full license.
\end{document}
In this example, the URL is broken into

http://creativecommons.org

/licenses/by-nd/3.0/de/

When I click on the first part http://creativecommons.org opens. When I click on the second part http://creativecommons.org/licenses/by-nd/3.0/de/ opens.

Using: MacTex 2008, XeTeX (xelatex XeTeX 3.1415926-2.2-0.999.6 (Web2C 7.5.7)), Preview.app and Skim.app

Do you know how to resolve the bug?

THanks, Foobert
Attachments
test.pdf
(9.62 KiB) Downloaded 270 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Re: Linebreak in URL breaks Link Target

Post by Stefan Kottwitz »

Hi Foobert,

welcome to the board!
The example is working fine for me, with pdfLaTeX, LaTeX, XeLaTeX, tried with Okular and the Adobe Reader. But also your attached pdf file did work. Perhaps try another pdf reader to check if the reader is not working well.

Stefan
LaTeX.org admin
foobert
Posts: 2
Joined: Fri Oct 02, 2009 12:43 pm

Re: Linebreak in URL breaks Link Target

Post by foobert »

The sample seems to work for evince too.

As, it only malfunctions on Mac OS X PDF Renders (Skim & Preview.app) it seems to be a Mac OS X related bug.
Post Reply