\documentclass{report}
\usepackage{epsf}
\ifx\pdfoutput\undefined
  \usepackage[raggedbottom]{webfiles}
\else
  \pdfoutput=1
  %\usepackage[pdftex]{hyperref}
  \usepackage[pdftex,raggedbottom]{webfiles}
\fi
\textwidth=16cm
\textheight=21cm
\topmargin=-\headheight
	\advance \topmargin by -\headsep
\oddsidemargin=0pt  \evensidemargin=0pt
\marginparwidth 0.5in
\pagestyle{headings}
\def\DO{\textbf{DO}}

\begin{document}
\title{Test voor {\tt webfiles} }
\author{Mark Potse}
\maketitle
%\tableofcontents
\listofprograms

\setcounter{xwebSecNoEject}{0}
\setcounter{xwebLopDepth}{9}

%{\catcode`\_=11
%\xweb_hypertype=2
\def\xwebContentsTop{\bigskip\centerline{Contents of \texttt{mtest}}}
\xwebContents{mtest}
%}

\chapter{{A CWEB program}}
\def\thexwebModule{\arabic{xwebModule}}
\webfile[reflist,hideformats]{CreateMap.tex}

\def\thexwebModule{\Roman{chapter}-\arabic{xwebModule}}
\chapter{An MWEB program}
\webfile[nocon,noreflist,hideformats]{mtest}

%\chapter{Spider (an AWKWEB program)}
%\webfile{spider}

%\def\thexwebModule{\arabic{xwebModule}}
%\chapter{A CWEB program with only changes}
%\webfile[onlychanges]{CreateMap}


\chapter{Indexes and Reflists}

\def\thexwebModule{\Roman{xwebModule}}
\xwebInputIndex{CreateMap.idx}

\def\thexwebModule{\arabic{xwebModule}}
\xwebInputIndex{CreateMap}

\xwebInputReflist{CreateMap.scn}

\xwebInputReflist{fake.scn}
\end{document}



