% @(#) root.tex 1.46@(#) 95/05/21 %
\input{MODE}                            % Batch or normal?
\def\BIGmemory{}                        % We have a 256K main memory TeX.
\maxdeadcycles=250                      % We include lots of files.
%
%
\newcommand{\DOCUMENTNAME}{ExFilter V1.1.3 User Guide}
%
%
%
\newlength{\mainsize}
\iffalse	% true => PostScript
	\documentstyle[times,12pt,multicol,parskip,array,fancyheadings,ExNet]{book}
\else
	\documentstyle[12pt,multicol,parskip,array,fancyheadings,ExNet]{book}
\fi
%----------------------------------------------------------
% Set typescript (ie listings) in 12pt on 13pt to match main body text
% and main body verbatim text in particular but with a smaller
% baseline skip.
% (Usual is 10pt on 12pt.)
\catcode`@=11 \relax
\def\PROGttsize{\@setsize\PROGttsize{13pt}\xiipt\@xiipt}
\catcode`@=12 \relax
%----------------------------------------------------------
% PAGE LAYOUT.
%
% Layout page as A4 with narrow margins...  Note that this will probably
% be reduced to A5 for printing.
%
% At least 14mm on the binding side of each page to allow for a spiral-bound
% format.  Leave at least 5mm on the outside edge.  Leave room for 80 chars
% of \tt at the default size for verbatim listings.
%
% Shorten by a few mm so it'll fit on US letter too.
%
% Margin pars should not be used with this, but there is much more
% text on the page.
\catcode`@=11 \relax % Allow @ in commands just like for a .sty file...
\setlength{\mainsize}{1\@ptsize pt}
\setlength{\topskip}{\mainsize}         % Plain has 10pt.
\setlength{\maxdepth}{.4\mainsize}      % Plain has 4pt.
\setlength{\@maxdepth}{\maxdepth}       % This has to be set as well.

% BACK (inner) MARGIN.
\newlength{\backmargin}                         % Margin at binding.
\setlength{\backmargin}{18 true mm}             % 18mm back margin.

% FOREEDGE (outer) MARGIN.
\newlength{\foreedgemargin}                     % Foredge margin.
\setlength{\foreedgemargin}{10 true mm}         % 10mm foreedge margin.

% MARGIN PARAS.
\setlength{\marginparwidth}{\foreedgemargin}    % Fit notes into margin.
\divide \marginparwidth by 3
\multiply \marginparwidth by 2                  % Don't go right to paper edge.
\setlength{\marginparsep}{7pt}                  % 7pt from text.
\addtolength{\marginparwidth}{-\marginparsep}   % Adjust for gap from text.

% TEXT WIDTH.
% A4 paper width = 21cm
\setlength{\textwidth}{21 true cm}              % A4 paper width.
% Use right-hand page as prototype for chosing margin widths and thus
% page widths.
\addtolength{\textwidth}{-\backmargin}          % Remove RHP, LHS margin.
\addtolength{\textwidth}{-\foreedgemargin}      % Remove RHP, RHS margin.

% LEFT MARGIN ON ODD PAGES.
\setlength{\oddsidemargin}{\backmargin}
\addtolength{\oddsidemargin}{-1 true in}        % Remove 1in auto margin.

% LEFT MARGIN ON EVEN PAGES.
\setlength{\evensidemargin}{\foreedgemargin}
\addtolength{\evensidemargin}{-1 true in}       % Remove 1in auto margin.

% HEIGHT PARAMETERS.
% set headers and footers proportional to font size
\setlength{\headheight}{\mainsize}      % Height of heading.
\setlength{\headsep}{5pt}               % Space between heading and text.
\setlength{\topmargin}{7 true mm}       % 7mm top margin.
\addtolength{\topmargin}{-\headsep}     % Constant whitespace page-top to text.
\addtolength{\topmargin}{-1 true in}    % Remove 1in auto margin.
\setlength{\footheight}{\mainsize}      % Height of footing.
\setlength{\footskip}{\mainsize}        % Space between footing and text.

% compute space left for text
\iftrue %%% CHOSE A4 OR US LETTER LENGTH HERE...
    \setlength{\textheight}{29.7 true cm}       % A4 paper length.
    \addtolength{\textheight}{-1 true cm}       % 1cm sheet-feed margin.
\else
    \setlength{\textheight}{11 true in}         % 11" (US letter) length.
\fi
\addtolength{\textheight}{-2.5\mainsize}        % Headers and footers.
\addtolength{\textheight}{-12 true mm}          % 12mm top margin.
\addtolength{\textheight}{-12 true mm}          % 12mm bottom margin.

%\addtolength{\textheight}{-1pt} % Tune to get in whole # lines...
%\message{Baseline Skip}\showthe\baselineskip
%\message{Text height}\showthe\textheight

% `FANCYHEADINGS' parameters.
\headwidth=\textwidth
\headrulewidth 1pt
\footrulewidth=\headrulewidth
\plainheadrulewidth=\headrulewidth
\plainfootrulewidth=\footrulewidth
\advance\footskip\footrulewidth \advance\textheight-\footrulewidth
\advance\footskip0.5\mainsize \advance\textheight-0.5\mainsize
\catcode`@=12 \relax
%----------------------------------------------------------
%\raggedbottom
%
%
\input{LaTeXfix}                        % Better multi-part doc handling.
\makeindex
%\setcounter{secnumdepth}{5}
%
%
\input{WhatFile}                        % Which files to make...
%
%
% A couple of extra commands to make like easy...
% \MITOK{token} Prints token with \TOK{} and correctly indexes it as such.
\def\MITOK#1{\TOK{#1}\MANINDEX{\TOK{#1}}{}{}{#1}{}{}}
% \UNFINISHED indicates an unfinished point in the text by putting a huge
% asterisk (etc) in the text at that point and in the margin, and making
% a suitable index entry.
\def\UNFINISHED{\message{Unfinished text---requires attention.}{\Huge \MI{*UNFINISHED*}}\marginpar{\normalsize\hfil \makebox[0pt]{\rule{1em}{1em}}\hfil}}
%
% Customise footers.
\lfoot[\DOCUMENTNAME]{Tel: +44 181 244 0077}
\cfoot{{\copyright} ESL 1994--5}
\rfoot[info@exnet.com]{\DOCUMENTNAME}
%
\begin{document}
\pagenumbering{roman}\include{000}\pagenumbering{arabic}\setcounter{page}{1}
\input{sourcelist.lst}                  % input files

\mbox{}\cleardoublepage\mbox{}\cleardoublepage

\end{document}
