[OS X TeX] A \url problem

Vic Norton vic at norton.name
Sun Nov 1 23:16:15 EST 2009


On Nov 1, 2009, at 3:02 PM, Ross Moore wrote:

> So what packages *are* you loading?
> Is it just  url.sty  ?
> Or something else as well, or instead.
> Please show your complete LaTeX preamble, otherwise noone
> can reproduce the problems you are describing.

I'm sorry, Ross. I should have sent a complete test script.
OK, here it is, both ways: with
\urldef\pricedistURL\url{http://vic.norton.name/finance-math/ 
notionportf/pricedistrib.csv}
and without. Same problem either way.
(But \url{\pricedistURL} does not work for me.)

Again the two-line 5.0in-outputs point to
    http://vic.norton.name/finance-math/notionportf/
when the cursor is over the text of the fist line, but point to
   http://vic.norton.name/finance-math/notionportf/pricedistrib.csv
when the cursor is just past the text of the first line
or over the text of the second line.

Here is a complete LaTeX test script.

%%!TEX encoding = UTF-8 Unicode

\documentclass[12pt, letterpaper]{article}

% we have to change the font encoding for Lucida.
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % to get the right copyright, etc.
\usepackage{amsmath,amssymb}  % Better math support & more symbols
\usepackage{amsthm}
\usepackage{bm}      % for boldfaced Greek
\usepackage{dsfont}  % Mathematical doublestroke, e.g. $\mathds{R}$

% use Lucida fonts for both text and math.
\usepackage[altbullet]{lucidabr}     % get larger bullet
\DeclareEncodingSubset{TS1}{hlh}{1}  % including \oldstylenums

\usepackage{textcomp}  % for special text symbols
\usepackage{verbatim}  % for comment environment

\theoremstyle{remark}
\newtheorem*{rmk}{Remark}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}
\newtheorem{propn}{Proposition}

\usepackage[pdftex]{graphicx}

\usepackage{geometry}
\geometry{letterpaper, nohead,
    hmargin={1.25in, 1.25in}, vmargin={1.15in, 1.15in},
    footskip=0.75in
}
\usepackage{float}

\usepackage{url}
\urldef\pricedistURL\url{http://vic.norton.name/finance-math/ 
notionportf/pricedistrib.csv}

\usepackage{natbib}
    \bibliographystyle{myplainnat}
    \bibpunct{[}{]}{,}{a}{}{,}

\usepackage[parfill]{parskip}    % Activate to begin paragraphs with  
an empty line
\setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}

\usepackage{color}
\definecolor{link}{rgb}{0.25,0.0,0.75}
\definecolor{paleyellow}{rgb}{1.0,1.0,0.6}
\usepackage{colortbl}

\usepackage{listings}
\usepackage{layout}

\usepackage[%
    colorlinks=true,citecolor=blue,urlcolor=blue,linkcolor=link%
    ]{hyperref}

\newcommand{\heading}[1]{%
    {\fontsize{18}{22}\selectfont\textbf{#1}}}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}

\newcommand{\tick}[1]%
    {\textbf{\texttt{#1}}}


\begin{document}

\begin{minipage}{6.0in}
\pricedistURL
\end{minipage}

\begin{minipage}{5.0in}
\pricedistURL
\end{minipage}

\begin{minipage}{6.0in}
\url{http://vic.norton.name/finance-math/notionportf/pricedistrib.csv}
\end{minipage}

\begin{minipage}{5.0in}
\url{http://vic.norton.name/finance-math/notionportf/pricedistrib.csv}
\end{minipage}

\end{document}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20091101/a5014fc7/attachment.html>


More information about the MacOSX-TeX mailing list