According to Harriet B Borton:
> >From the preamble of my latex file, I'm \inputing a file of my own macros.
> Many of my definitions work fine, but I'm trying to modify the section
> headings and I can't get \renewcommand{\section}[1]{.... #1..} to work.
> Latex2html does not see the parameter and all the sections disappear from the
> html output!

No doubt, Ross will augment this answer. I have found that you
can expect LaTeX2HTML to provide good translations if you don't
mess with commands that define the `logical' structure of the
document. To get the title of your document use:

\title{...}
\author{...}
\date{...}
\maketitle

... to get an abstract use

\begin{abstract}
...
\end{abstract}

... to get the various sectioning commands use

\chapter{...}
\section{...}
\subsection{...}

etc. Redefining macros that provide a document's logical
structure in LaTeX should be done in a document class ...
and in general you should expect such redefinitions to be
ignored by LaTeX2HTML. For one thing, the `explicit' style
that you try to achieve on your web browser might be a totally
broken mess on another browser.

One document that I translated for a friend wanted the headings
to appear in smallcaps. The definition

\newcommand{\sec}[1]{\section{{\sc #1}}}

worked to achieve the aim ... but you see \section is *not*
redefined here ... LaTeX2HTML will expand \sec to get the
logical structural entity \section, with which it knows to
generate a table of contents entry etc. etc.

In general then redefining commands that define logical
structure of a document should be avoided ... but if you
*must* impose some explicit style do it in such a way that
`goes with the flow' (as per the above example).

I hope that helps.

  Regards,
  Greg Gamble
___________________________________________________________________
Greg Gamble   __________________      mailto:[EMAIL PROTECTED]
Department of Mathematics ___                 Tel: +61-8 9380 3383
The University of Western Australia           Fax: +61-8 9380 1028
NEDLANDS WA 6907  AUSTRALIA         http://maths.uwa.edu.au/~gregg/
___________________________________________________________________

Reply via email to