[l2h] best way to handle \htmladdnormallink with underscore names ?
Ross Moore
ross.moore at mq.edu.au
Thu Feb 9 07:22:10 CET 2012
Hi Nasser,
On 09/02/2012, at 11:30 AM, Nasser M. Abbasi wrote:
> On 2/8/2012 1:09 PM, Ross Moore wrote:
>> Hello Nasser,
>>
>> On 09/02/2012, at 12:14 AM, Nasser M. Abbasi wrote:
>>
>>> this is on linux and using l2h : 2008 (1.71)
>>>
>>> when I write
>>>
>>> \htmladdnormallink{a_b_c_d_e.m}{a_b_c_d_e.m}
>>>
>>> I get error about missing $ becuase it think it is math.
>> And so it is, in the LaTeX part.
>>
>> Why not use \htmlurl or \url ?
>> These just take a single argument.
>>
>
> Thanks Ross for the answer.
>
> Actually this whole url business with l2h is confusing to me,
> I need to try to find one canonical setup for it and use it.
>
> Here is why, If I just do
>
> \documentclass[12pt]{article}
> \usepackage{html}
> \begin{document}
> \url{a_b.c}
> \end{document}
>
> I get the same message about missing $. I click 'q' and
> let it go on, then look at the html output and the links are
> there OK.
>
> If I add hyperref
>
> \documentclass[12pt]{article}
> \usepackage{html}
> \usepackage{hyperref}
Try swapping the loading order:
\usepackage{hyperref}
\usepackage{html}
html.sty has coding that adjusts to what hyperref
has already setup.
> \begin{document}
> \url{a_b.c}
> \end{document}
>
> then I DO not get error about $ but l2h says:
>
> *********** WARNINGS ***********
> No implementation found for style `hyperref'
>
> I also know that \href{}{} gave me problems before, I do not know
> what those were, but in my notes, I said not to use it.
>
> So that is why I was using \htmladdnormallink all the time, since
> at least it was working except for this issue.
>
> But I like \url more, so I am just ignoring the error about
> No implementation found, since it seems to work any way and
> I do not get the error about the missing $.
>
>> You are loading \usepackage{html} as advised for
>> all LaTeX2HTML jobs?
>>
>
> yes ofocurse, it is the first thing I listed on my l2h setup page:
>
> http://12000.org/my_notes/l2hwin/index.htm#SECTION00033000000000000000
>
> regards,
> --Nasser
Cheers,
Ross
------------------------------------------------------------------------
Ross Moore ross.moore at 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 latex2html
mailing list