[OS X TeX] A \url problem
Ross Moore
ross at ics.mq.edu.au
Mon Nov 2 06:30:53 CET 2009
Hi Vic,
On 02/11/2009, at 3:16 PM, Vic Norton wrote:
>
> 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.)
Thanks for this.
Your full example below worked just fine for me,
except for the LucidaBright stuff.
So I commented that out, and all was fine.
% use Lucida fonts for both text and math.
%\usepackage[altbullet]{lucidabr} % get larger bullet
%\DeclareEncodingSubset{TS1}{hlh}{1} % including \oldstylenums
Not sure why Lucida didn't want to work for me, as I have used
it before --- years ago probably!
Anyway, would you run your test file without Lucida,
to see whether that is the complete cause of the URL woes?
BTW, also add \listfiles anywhere in the preamble.
It will cause packages and versions to be listed.
e.g., for me it gives the list below.
Look through this to see any glaring differences
with what you are using.
*File List*
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
fontenc.sty
t1enc.def 2005/09/27 v1.99g Standard LaTeX file
inputenc.sty 2004/02/05 v1.0d Input encoding file
utf8.def 2004/02/09 v1.1b UTF-8 support for inputenc
t1enc.dfu 2004/02/09 v1.1b UTF-8 support for inputenc
ot1enc.dfu 2004/02/09 v1.1b UTF-8 support for inputenc
omsenc.dfu 2004/02/09 v1.1b UTF-8 support for inputenc
textcomp.sty 2005/09/27 v1.99g Standard LaTeX package
ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
ts1enc.dfu 2004/02/09 v1.1b UTF-8 support for inputenc
amsmath.sty 2000/07/18 v2.13 AMS math features
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
amsbsy.sty 1999/11/29 v1.2d
amsopn.sty 1999/12/14 v2.01 operator names
amssymb.sty 2002/01/22 v2.2d
amsfonts.sty 2001/10/25 v2.2f
amsthm.sty 2004/08/06 v2.20
bm.sty 2004/02/26 v1.1c Bold Symbol Support (DPC/FMi)
dsfont.sty 1995/08/01 v0.1 Double stroke roman fonts
verbatim.sty 2003/08/22 v1.5q LaTeX2e package for verbatim
enhancements
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
pdftex.def 2007/01/08 v0.04d Graphics/color for pdfTeX
geometry.sty 2002/07/08 v3.2 Page Geometry
geometry.cfg
float.sty 2001/11/08 v1.3d Float enhancements (AL)
url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc.
natbib.sty 2007/02/05 8.0 (PWD)
parskip.sty 2001/04/09 non-zero parskip adjustments
color.sty 2005/11/14 v1.0j Standard LaTeX Color (DPC)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
colortbl.sty 2001/02/13 v0.1j Color table columns (DPC)
array.sty 2005/08/23 v2.4b Tabular extension package (FMi)
listings.sty 2004/10/17 1.3b (Carsten Heinz)
lstpatch.sty 2004/10/17 1.3b (Carsten Heinz)
lstmisc.sty 2004/09/07 1.3 (Carsten Heinz)
listings.cfg 2004/09/05 1.3 listings configuration
layout.sty 2000/09/25 v1.2c Show layout parameters
hyperref.sty 2008/09/27 v6.78k Hypertext links for LaTeX
ifpdf.sty 2007/12/12 v1.6 Provides the ifpdf switch (HO)
ifvtex.sty 2007/09/09 v1.3 Switches for detecting VTeX and its
modes (HO)
ifxetex.sty 2006/08/21 v0.3 Provides ifxetex conditional
hycolor.sty 2007/04/11 v1.1 Code for color options of hyperref/
bookmark (HO
)
pd1enc.def 2008/09/27 v6.78k Hyperref: PDFDocEncoding
definition (HO)
etexcmds.sty 2007/12/12 v1.2 Prefix for e-TeX command names (HO)
infwarerr.sty 2007/09/09 v1.2 Providing info/warning/message (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty 2007/10/18 v3.0 Keyval support for LaTeX options (HO)
bitset.sty 2007/09/28 v1.0 Data type bit set (HO)
intcalc.sty 2007/09/27 v1.1 Expandable integer calculations (HO)
bigintcalc.sty 2007/11/11 v1.1 Expandable big integer calculations
(HO)
pdftexcmds.sty 2007/12/12 v0.3 LuaTeX support for pdfTeX utility
functions (
HO)
kvsetkeys.sty 2007/09/29 v1.3 Key value parser with default
handler support
(HO)
atbegshi.sty 2007/09/09 v1.6 At begin shipout hook (HO)
hpdftex.def 2008/09/27 v6.78k Hyperref driver for pdfTeX
ts1cmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
supp-pdf.tex
nameref.sty 2007/05/29 v2.31 Cross-referencing by name of section
refcount.sty 2006/02/20 v3.0 Data extraction from references (HO)
urltest.out
urltest.out
t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions
umsa.fd 2002/01/19 v2.2g AMS font definitions
umsb.fd 2002/01/19 v2.2g AMS font definitions
***********
>
> 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}
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross at maths.mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the macostex-archives
mailing list