% -*- Mode:Text -*- 
\documentstyle{book}

\input pack10.sty
\input packchapter.sty


\makeatletter

% \inputfilename is like \jobname, but is the file currently being read
\def\@input#1{\openin1 #1\def\currentinputfile{#1} \ifeof1 \typeout
  {No file #1.}\else\closein1 \relax\@@input #1 \fi}

% do not force table of contents to be one column
\def\tableofcontents{\chapter*{Contents\@mkboth{CONTENTS}{CONTENTS}}
  \@starttoc{toc}}

\def\l@part#1#2{\addpenalty{-\@highpenalty}	%{ENTRY}{PAGE}
   \addvspace{2.25em plus 1pt}  % space above part line
   \begingroup
   \@tempdima 3em         % width of box holding part number, used by 
     \parindent \z@ \rightskip \@pnumwidth             %% \numberline
     \parfillskip -\@pnumwidth   
     {\large \bf          % set line in \large boldface
     \leavevmode          % TeX command to enter horizontal mode.       
     #1\hfil \hbox to\@pnumwidth{\hss}}\par
     \nobreak             % Never break after part entry
    \global\@nobreaktrue                        %% Added 24 May 89 as 
    \everypar{\global\@nobreakfalse\everypar{}}%% suggested by Jerry Leichter
   \endgroup}

\def\part#1{\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart \hspace{1em}#1}}

\makeatother

\input sorspath
\proofbox{{\em STEP Architecture Reference}\par
	{\tt\sourcepath/\inputfilename}\par
	DRAFT, \today}

\input notecomm
\input cam8spec

\input psfig
\psdraft

\newsavebox{\toy}

\begin{document}

%\include{_cover}
  \pagenumbering{roman}
  \include{_toc}
  \pagenumbering{arabic}

\include{_intro}

\include{_part1}
%\addcontentsline{toc}{part}{\protect\numberline{1}{Theory of operation}}
\include{_geo}
\include{_bus}
\include{_host}
\include{_stream}
\include{_regs}
% regs.tex will create a file called skim.tex
% which will be read by regs.tex on the following LaTeX pass
% If this file is lost, use a null file to start with

\include{_part2}
%\addcontentsline{toc}{part}{\protect\numberline{1}{System structure}}
%\include{_sys}
\include{_machine}
\include{_box}
\include{_module}
\include{_chip}

\end{document}

\def\include#1{\@include#1 }

\endinput


\edef\thisverypage{\value{page}}
\setcounter{page}{0}
\addcontentsline{toc}{part}{\protect\numberline{\Roman{1}}{Theory of operation}}
\setcounter{page}{\thisverypage}

\def\l@part#1#2{\addpenalty{-\@highpenalty}
   \addvspace{2.25em plus 1pt}  % space above part line
   \begingroup
   \@tempdima 3em         % width of box holding part number, used by 
     \parindent \z@ \rightskip \@pnumwidth             %% \numberline
     \parfillskip -\@pnumwidth   
     {\large \bf          % set line in \large boldface
     \leavevmode          % TeX command to enter horizontal mode.       
     #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
     \nobreak             % Never break after part entry
    \global\@nobreaktrue                        %% Added 24 May 89 as 
    \everypar{\global\@nobreakfalse\everypar{}}%% suggested by Jerry Leichter
   \endgroup}


