[l2h] Links dont show up in html

Ross Moore ross at ics.mq.edu.au
Mon May 18 09:43:47 CEST 2009


Hello Dev,

On 18/05/2009, at 4:54 PM, Devranjan Das wrote:

> List,
> I am trying to get a HTML out for the following. However I dont get  
> the desired output when I convert it using latex2html. Please help.


> \documentclass[12pt,twoside]{article}
> \usepackage{hyperref}
> \usepackage{hyperlatex}
> \hypersetup{colorlinks=true, linkcolor=blue, filecolor=blue,  
> pagecolor=blue, urlcolor=blue}
> \pagestyle{HTML}
> \begin{document}
> \section{Software Requirement Specifications}
> \begin{enumerate}
>  \item \htmladdnormallink {pdf}{ftp://31.50.2.109/Dev Ranjan/SRS/ 
> Kaiga3&4Spec.pdf}
>
> \end{enumerate}
>
> \end{document}

Use the "Conditional coding" structures of LaTeX2HTML,
via  \usepackage{html}  where html.sty  should have come
with the  LaTeX2HTML installation.

e.g., your document preamble can be this way:

>>> \documentclass[12pt,twoside]{article}
>>> %begin{latexonly}
>>> % this bypasses coding that is not relevant to LaTeX2HTML
>>> \usepackage{hyperref}
>>> \usepackage{hyperlatex}
>>> \hypersetup{colorlinks=true, linkcolor=blue, filecolor=blue,  
>>> pagecolor=blue, urlcolor=blue}
>>> \pagestyle{HTML}
>>> %end{latexonly}
>>> \usepackage{html}
>>>
>>> \begin{document}



Now that URL is a problem.
It has a space in the name, and also an & .
So technically it is not correct, though some browsers may still
"get it right" --- more by luck than good management.

You could try:
  \htmladdnormallink {pdf}{ftp://31.50.2.109/Dev\ Ranjan/SRS/Kaiga3 
\&4Spec.pdf}
where the space and & are both escaped with a \ .

If that works, you can how use conditional coding as follows:

>>> \section{Software Requirement Specifications}
>>> \begin{enumerate}
>>>  \item
>>> %begin{latexonly}
>>> \htmladdnormallink {pdf}{ftp://31.50.2.109/Dev Ranjan/SRS/ 
>>> Kaiga3&4Spec.pdf}
>>> %end{latexonly}
>>> \begin{htmlonly}
>>>  \htmladdnormallink {pdf}{ftp://31.50.2.109/Dev\ Ranjan/SRS/Kaiga3 
>>> \&4Spec.pdf}
>>> \end{htmlonly}
>>> \end{enumerate}
>>>
>>> \end{document}




>
>
> -- 
> Dev Ranjan Das

Hope this helps,

	Ross Moore

------------------------------------------------------------------------
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 latex2html mailing list