[pdftex] Underscore in URL using hyperref (very old issue?)

Michael Chapman mchapman at mchapman.com
Tue Apr 16 17:45:25 CEST 2002

On Tuesday 16 April 2002 08:20, Barry McMullin wrote:
> For the record: things were actually a bit more complicated for
> me: I had simplified the example I posted to get the "simplest"
> test case.  But what I was "really" doing, was defining a macro
> of my own, looking more or less like this:
>   \newcommand{\hoturl}[1]{\href{#1}{#1}}

Mmm, also for the record, I do this (in Latex):


much the same (but getting rid of the "http://", as well).

It's a useful macro, but not robust enough for all URL's. Suppose one of us 
should re-write it to do the escaping ... 

Suspect these may be too custom for consideration for inclusion in hyperref? 
(E.g. not only changing colours, but font shapes:
    \href{mailto:#1}{\textcolor{mail}{\footnotesize \texttt{#1}}}} ), though 
some simple escaping routine might be useful as a building block?


More information about the pdftex mailing list