summaryrefslogtreecommitdiff
path: root/web/webfiles/test.tex
blob: 308458a0ea0f0308875da218c8ac4e5355fbbd32 (plain)
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
\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}