[OS X TeX] Hyperlink failure with TeXShop and Preview

Bruno Voisin bvoisin at mac.com
Sun Feb 11 04:38:31 EST 2007


Le 11 févr. 07 à 01:11, Peter Dyballa a écrit :

> And your observation does not seem to be right: clicking a correct  
> URL with <>; converted to HEX or hex is forwarded to the browser,  
> for example:
>
> 	\href{http://dx.doi.org/10.1002/1099-095X(200102)12:1%3c57::AID- 
> ENV446%3e3.0.CO%3b2-1}{DOI:10.1002/1099-095X(200102)12:1<57::AID- 
> ENV446>3.0.CO;2-1}
> 	\doi{10.1002/1099-095X(200102)12:1\%3C57::AID-ENV446\%3E3.0.CO\% 
> 3B2-1}
>
> which also works with HEX translation. Did you translate ``;´´ too?

All my observations referred to using the macro without performing  
any HEX translation: the point was to take any DOI copied from any  
journal site as is, and have \doi{this-doi} insert in a LaTeX  
document this doi verbatim and make the doi a link to the  
corresponding web address on the doi proxy <http://dx.doi.org/>. The  
user is not expected to perform any pre-processing, namely to replace  
the problematic characters with HEX escape sequences.

Heiko Oberdiek's macro does exactly that: it takes as an argument the  
DOI in its original form, here

10.1002/1099-095X(200102)12:1<57::AID-ENV446>3.0.CO;2-1

prints this original form in the LaTeX output, and makes any HEX  
translation (required for use in a URL) completely transparent to the  
user.

For example, in the present case my LaTeX document would contain:

Chashechkin, Yu.~D., Kistovich, Yu.~V. \& Smirnov, S.~A. (2001)
Linear generation theory of 2D and 3D periodic internal waves in a  
viscous stratified fluid.
\textit{Environmetrics}, vol.~\textbf{12}, no.~1, pp.~57--80.
Received 26~March 1998; revised 19~November 1998.
\doi{10.1002/1099-095X(200102)12:1<57::AID-ENV446>3.0.CO;2-1}.
%\href{http://dx.doi.org/10.1002/1099-095X(200102)12:1\%3C57::AID- 
ENV446\%3E3.0.CO;2-1}
%     {DOI:10.1002/1099-095X(200102)12:1<57::AID-ENV446>3.0.CO;2-1}.

Bruno


------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list