# [OS X TeX] A \url problem

Maarten Sneep maarten.sneep at xs4all.nl
Sun Nov 1 11:38:57 EST 2009

On 1 nov 2009, at 17:31, Vic Norton wrote:

> I am having a \url problem (with TeXShop/LaTeX) that is driving me
> crazy. Any advice would be greatly appreciated.
>
> My problem can be illustrated with two parboxes, each containing the
> same URL.
>
> \parbox{6.0in}{\url{
>  http://vic.norton.name/finance-math/notionportf/pricedistrib.csv
> }}
>
> \parbox{5.0in}{\url{
>  http://vic.norton.name/finance-math/notionportf/pricedistrib.csv
> }}
>
> The first parbox typesets the URL on one line. Clicking on this line
> opens a browser and displays the desired URL.
>
> The second parbox typesets the URL on two lines:
>   http://vic.norton.name/finance-math/notionportf/
>   price_distrib.csv
> Both lines are colored to indicate an active link, and the cursor
> changes to a pointing finger when it is over either line. However,
> when you hold the cursor over the first line, you see that it is
> pointing at the directory
>   http://vic.norton.name/finance-math/notionportf/
> which (on clicking the line) will not allow itself to be listed. The
> second line
>   price_distrib.csv
> points nowhere and goes nowhere, even though appears to be a link.
>
> I can't figure out what the problem is here. There are broken URLs
> in my bibliography that work fine, but the 5-inch parbox one doesn't
> work at all.
>
> Any advice would be greatly appreciated.

try to use \href{}{} instead. That way I don't think the url is
broken, although text itself can be broken. Note that this is
(breaking links across lines) is only supported with pdflatex, not tex
+ghostscript.

HTMH,

Maarten