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