\documentclass{article}
\usepackage[dvips]{graphicx}
\usepackage{francais}
\usepackage{html}
\usepackage{makeidx}
%begin{latexonly}
\usepackage[T1]{fontenc}
%end{latexonly}

\internal{../ex31/}
\internal[sections]{../ex31/}
%\internal[contents]{../ex31/}
\internal[figure]{../ex31/}
\internal[index]{../ex31/}

\internal{../ex32/}
\internal[sections]{../ex32/}
%\internal[contents]{../ex32/}
\internal[table]{../ex32/}
\internal[index]{../ex32/}

\makeindex
\title{Exemple d'un document segmenté}
\author{Ross Moore \& Michel Goossens}

\begin{document}
\maketitle\htmlrule
\tableofchildlinks\htmlrule
%begin{latexonly}
\tableofcontents
%end{latexonly}
\listoffigures\listoftables\htmlrule

\segment{ex31}{section}{Une figure EPS}
\endsegment[section]
\html{Référence à figure~\ref{Fpsfig}.}

\segment{ex32}{section}{Exemple d'un tableau}
\endsegment[section]
\html{Référence à tableau~\ref{tab-exa}.}
\htmlrule \input{ex3bib}
\htmlrule \printindex \htmlrule
\end{document}
