Compiling with htlatex the following small2e.tex
\documentclass{article} % Your input file must contain these two lines
\begin{document} % plus the \end{document} command at the end.
\section{Simple Text} % This command makes a section title.
Words are separated by one or more spaces. Paragraphs are separated by
one or more blank lines.
\end{document}
Creates a nice html file but with an empty title (it contains <title></title>
).
Is there a way to force tex4ht to output a title?
Using the following line in a private configuration file:
\HCode{<title>} My title \HCode{</title>}
simply adds "My title" as a title, but does not substitute the empty one, thus creating validation problems.