> I am using latex2html V98.1p1 and have the following problem:
>
> In my small Latex document I use the symbols "\textless" and "\textgreater"
> for enclosing email-addresses. If I run latex2html on this document it
> complains:
>
> Unkown commands: textless textgreater
Which LaTeX package defines these ?
Neverthless the fix is simple.
1. load the package \usepackage{html}
for the html.sty that comes with LaTeX2HTML
2. define the commands yourself, for HTML only:
\begin{htmlonly}
\newcommand{\textless}{<}
\newcommand{\textgreater}{>}
\end{htmlonly}
But as a point of style, it isn't a good idea to include such
non-intuitive macro-names and explicit email addresses
directly into the body of your document.
Better is to define macros within the preamble;
e.g.
\newcommand{\email}[1]{\textless{#1}\textgreater}
\newcommand{\RossEmail}{\email{ross@.....}}
\newcommand{\FredEmail}{\email{fred@.....}}
For a document that is intended both for .dvi and HTML you then
give alternative expansions for \email as follows:
%begin{latexonly}
\newcommand{\email}[1]{\textless{#1}\textgreater}
%end{latexonly}
\begin{htmlonly}
\newcommand{\email}[1]{\htmladdnormallink {<#1>}{mailto:#1}}
\end{htmlonly}
This approach has many advantages:
1. Your document body is easily readable for subsequent editing
e.g. it is clear what \FredEmail{} means.
2. The body is identical for processing by LaTeX or LaTeX2HTML
or any other macro-based processing system.
3. if someone's email adress changes, it is easy to find the correct
place to do the edit, for all instances in the document.
4. You can change the presentation style for all email addresses
within the document by a single edit within the preamble.
> How can I handle this?
As above.
Hope this helps,
Ross Moore