<- sec1.tex

%
%  This is the first document segment input by report.tex.
%  It can be independently processed by latex2html.  (Note
%  that latex2html do not requre a \begin{documentclass}.
%

\begin{htmlonly}
\documentclass{article}
\usepackage{html,color,makeidx}
\input{sec1.ptr}tabutabu% Input counters and section
tabutabutabutabu%    information from sec1.ptr

\end{htmlonly}
%
%  The following command is ignored by LaTeX:
%

\internal{s2}tabutabutabu% Input \label information from
tabutabutabutabu%    the second segment of this
tabutabutabutabu%    report, found in
tabutabutabutabu%    report/s2internals.pl

\startdocumenttabutabutabu% Mark the end of the preamble
tabutabutabutabu% (Serves the role of \begin{document})
%
%  Here is the body of this segment:
%

Here is some text.
Here is some more text.

\subsection{First subsection}
Here is section 1 \label{first}.
\begin{figure}
\colorbox{red}{Some colored text\index{Color text}}
\caption[List of figure caption]{Figure 1 caption}
\end{figure}

%
%  This reference is defined in sec2.tex.
%

Reference\index{Reference} to \ref{second}.

%
%  Note that it does not have to end with \end{document}.
%