On 22/04/2004, at 6:52 AM, Juergen Leising wrote:
Hello,
using lyx-1.3.4 I have some difficulties with producing clickable links, like some others here on the list.
First I add
\usepackage{html}
This leads to clickable links after converting the document by tex4ht or by pdftex, but not by latex2html.
That is surprising, since the html.sty package is written specially for latex2html . Furthermore, with html.sty and LaTeX2HTML, there is no need to load url.sty or do anything else to get active hyperlinks --- they should just work. However ...
... I think LyX adds extra TeX tests into the preamble, and it is these that cause the problems with LaTeX2HTML. (I don't use LyX myself, so do not know for sure, but have seen reports of this kind previously --- besides, it may depend upon version or your specific content.)
All you need to do is surround this extra, irrelevant (at least to LaTeX2HTML) preamble stuff with comments:
%begin{latexonly}
...
... coding with \if or \ifx tests, or somesuch
...
%end{latexonly}Now LaTeX2HTML will recognise that this is stuff that isn't needed, and could even be damaging, so just ignores it completely. For any other (La)TeX processor, these are just comments.
So my question is: why does latex2html not render \url to a proper hyperlink, whereas the other converters (tex4ht, pdftex) do produce working links?
This is the latex2html version I use:
$Id: latex2html.pin,v 1.70 2002/08/22 15:14:08 RRM Exp $ [english]This is LaTeX2HTML Version 2002-2-1 (1.70)
And \listfiles' output is:
html.sty 1999/07/19 v1.38 hypertext commands for latex2html (nd, hws, rrm)
whereas inside html.sty I found
% $Id: html.sty,v 1.39 2001/10/01 22:47:06 RRM Exp $
(the \ProvidesPackage{html} line claims 1.38)
Yes, thanks for reporting this. It's the \ProvidesPackage entry that wasn't updated, since it occurs some way into the file.
This is because the html.sty file is meant to work also with old LaTeX 2.09 systems, for which \ProvidesPackage is unknown. Not being near the top of the file, that edit seems to have been forgotten.
Hope this helps,
Ross Moore
Thank you.
Bye, Juergen.
-- *********************************************************** http://www.8ung.at/leising/ http://leising.freeshell.org/ *********************************************************** _______________________________________________ latex2html mailing list [EMAIL PROTECTED] http://tug.org/mailman/listinfo/latex2html
------------------------------------------------------------------------ Ross Moore [EMAIL PROTECTED] Mathematics Department office: E7A-419 Macquarie University tel: +61 +2 9850 8955 Sydney, Australia fax: +61 +2 9850 8114 ------------------------------------------------------------------------
_______________________________________________ latex2html mailing list [EMAIL PROTECTED] http://tug.org/mailman/listinfo/latex2html
