[l2h] hyperref.sty vs. html.sty: "\textunderscore undefined"

Jens Krinke krinke@fmi.uni-passau.de
Mon, 16 Sep 2002 12:26:25 +0200

Julius Smith wrote:
> I often use the construct (from html.sty)
>     \htmladdnormallinkfoot{description}{http://www.somewhere.org/\~{}name/file\_name.html} 
> (Note the quoted '~' and '_'.)  This has been working fine for some years.
> Today I tried using the hyperref package for the first time, and I ran 
> into the error  "\textunderscore undefined" at '\_'.  After some Web 
> searching and general futzing around, I seem to have come up with the 
> following workaround:
>     \htmladdnormallinkfoot{description}{\url{http://www.somewhere.org/~name/file_name.html}} 
> (Note the use of \url{} and no more quoting of '~' and '_'.)
> While this seems to work, based on a test sample of one, I wonder if 
> there is a better, more "correct" way to handle this problem?

You might want to try hthtml.sty instead of html.sty, where ~ and _ may 
be used directly:
However, I haven't tried it together with hyperref.sty.