+%
+% Minimal document skeleton. For testing, link your 'manpage' in at
+% the place indicated below.
+%
+% Run tex2rtf with (for example)
+% tex2rtf minimal.tex test.htm -html -twice
+%
+% latex should also parse this file correctly.
+%
+% Of course many references will be unresolved in the test page, but
+% local references should be there.
+%
+\documentstyle[a4,makeidx,verbatim,texhelp,fancyheadings,palatino]{report}
+\sloppy
+\newcommand{\indexit}[1]{#1\index{#1}}
+\newcommand{\pipe}[0]{$\|$\ }%
+\input psbox.tex
+
+\parskip=2pt
+\parindent=0pt
+
+\makeindex
+\begin{document}
+\tableofcontents
+
+\pagestyle{fancyplain}
+\bibliographystyle{plain}
+\setheader{{\it CONTENTS}}{}{}{}{}{{\it CONTENTS}}
+\setfooter{\thepage}{}{}{}{}{\thepage}
+\pagenumbering{roman}
+
+\chapter{Minimal}
+\pagenumbering{arabic}%
+\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%
+\setfooter{\thepage}{}{}{}{}{\thepage}
+
+% put your file(s) in an \input{} statement here
+\input{text.tex}
+
+\addcontentsline{toc}{chapter}{Index}
+\setheader{{\it INDEX}}{}{}{}{}{{\it INDEX}}%
+\setfooter{\thepage}{}{}{}{}{\thepage}
+
+\end{document}