1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
%
% This simple example illustrates how documents can be
% split into smaller segments, each segment processed
% by latex2html separately. This document can be
% processed through latex and latex2html with the
% corresponding makefile.
%
\documentclass{article} % Must use LaTeX 2e
\usepackage{html,makeidx,color}
%
% The following commands are necessary to generate
% the list of figures, and table of contents in this
% document segment. Information for the list of tables
% and the index could be similarly loaded, if needed.
% These commands are ignored by LaTeX.
%
\internal[figure]{s1} % Include list-of-figure
% information from
% report/s1figure.pl
\internal[figure]{s2} % Include list-of-figure
% information from
% report/s2figure.pl
\internal[sections]{s1} % Include section information
% from report/s1sections.pl
\internal[sections]{s2} % Include section information
% from report/s2sections.pl
\internal[contents]{s1} % Include table-of-content
% information from
% report/s1contents.pl
\internal[contents]{s2} % Include table-of-content
% information from
% report/s2contents.pl
\internal[index]{s1}
\internal[index]{s2}
% \internal[table]{s1} % Uncomment these if you need
% \internal[table]{s2} % a list of tables
\begin{document} % The start of the document
\title{A Segmentation Example}
\author{by Ross Moore}
\date{translated \today}
\maketitle
%
% Generate the table of contents and list of figures in
% both the LaTeX and HTML documents.
%
\tableofcontents
\listoffigures
%
% The following two commands are ignored by latex2html:
% Note that they do not contain the string "\section",
% which would confuse latex2html.
%
%
% Generate a \section{Section 1 title} command.
% Update latex2html counters and dump them to sec1.ptr.
% Also write an \htmlhead command to sec1.ptr.
% Then proceed to input sec1.tex.
%
\segment{sec1}{section}{Section 1 title}
%
% Generate a \section{Section 2 title} command.
% Update latex2html counters and dump them to sec2.ptr.
% Also write an \htmlhead command to sec2.ptr.
% Then proceed to input sec2.tex.
%
\segment{sec2}{section}{Section 2 title}
%
% Print the index:
%
\printindex
\end{document}
|