[l2h] Question regarding HTMLset. "<" and ">" erroneously translated to "&lt;" and "&gt;"

Walter Gull Walter.Gull at freesurf.ch
Thu Apr 7 17:14:53 CEST 2005


I want to place additional HTML header information into a HTML file 
generated with LaTeX2HTML. While I can achieve that using a 
.latex2html-init file, I don't know how to get the same result using the 
\HTMLset macro in the .tex file itself. The problem is that the angular 
brackets <> surrounding the intended META entry are translated to &lt; 
and &gt; respectively. I played a lot with quotation marks, apostrophes 
and backslashes already.

Thank you for your help.

Walter Gull


SUMMARY:

The intended META-entry:
<META NAME="keywords" CONTENT="Gull, Walter,Zurich">
achieved by a line
$LATEX2HTML_META='<META NAME="keywords" CONTENT="Gull, Walter,Zurich>';
in a .latex2html-init file.

The erroneous META-entry:
&lt;META NAME="keywords" CONTENT="Gull, Walter,Zurich"&gt;
resulting from the LaTeX command
\HTMLset{LATEX2HTML_META}{<META NAME="keywords" CONTENT="Gull, 
Walter,Zurich">}


ALL DETAILS:

Here is my minimal.tex file:

=question.tex==========
\documentclass[12pt,twoside,a4paper]{article}
\usepackage{html}
\title{Gull}
%\HTMLset{LATEX2HTML_META}{'<META NAME="keywords" CONTENT="Gull, 
Walter,Zurich">'}
\HTMLset{LATEX2HTML_META}{<META NAME="keywords" CONTENT="Gull, 
Walter,Zurich">}
\begin{document}
\thispagestyle{empty}
\noindent
}%
\begin{center}
{\Huge Familie Gull Zurich-Affoltern, Schweiz\\}
\end{center}
\end{document}
===========

Here the used command:
===========
latex2html -info 0 -local_icons -html 4 -split 0 -no_navigation 
-no_address question.tex
===========

And here the source of the resulting html file:

=question.html==========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
   Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Gull</TITLE>
<META NAME="description" CONTENT="Gull">
<META NAME="keywords" CONTENT="question">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

&lt;META NAME="keywords" CONTENT="Gull, Walter,Zurich"&gt;

<LINK REL="STYLESHEET" HREF="question.css">

</HEAD>

<BODY >

<DIV ALIGN="CENTER">
<BIG CLASS="XHUGE">Familie Gull Zurich-Affoltern, Schweiz
<BR></BIG>

</DIV>
<BR><HR>

</BODY>
</HTML
===========
-- 
---------------------------------------------------------------------
Walter E. Gull                 Phone:  +41 44 370 10 71
mailto:Walter.Gull at freesurf.ch http://home.tiscalinet.ch/gull/walter/
Tobelsteig 1                   PGP KeyID: 0x0C965A78 - Fingerprint:
CH-8046 Zurich                 5092 1A6B 5887 4C0C A1F0
Switzerland                    B27E 593A 3E6E 0C96 5A78
---------------------------------------------------------------------



More information about the latex2html mailing list