% bk10.sty 19-Jan-88
\typeout{Wiley BK10 for `Wiley Book Style' <1-9-91 RHL & PJF>.}


\lineskip 1pt \normallineskip 1pt
\def\baselinestretch{1}

\def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt
\abovedisplayskip 10pt plus2pt minus5pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6pt plus3pt
minus3pt\let\@listi\@listI} 
\def\small{\@setsize\small{11pt}\ixpt\@ixpt
\abovedisplayskip 8.5pt plus 3pt minus 4pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus2pt\belowdisplayshortskip 4pt plus2pt minus 2pt
\def\@listi{\leftmargin\leftmargini \topsep 4pt plus 2pt minus 2pt\parsep 2pt
plus 1pt minus 1pt
\itemsep \parsep}}
\def\footnotesize{\@setsize\footnotesize{9.5pt}\viiipt\@viiipt
\abovedisplayskip 6pt plus 2pt minus 4pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus 1pt\belowdisplayshortskip 3pt plus 1pt minus
2pt
\def\@listi{\leftmargin\leftmargini \topsep 3pt plus 1pt minus 1pt\parsep 2pt
plus 1pt minus 1pt
\itemsep \parsep}}
\def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
\def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
\def\large{\@setsize\large{14pt}\xiipt\@xiipt}
\def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
\def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
\def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
\def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
\normalsize 

%\oddsidemargin .5in \evensidemargin 1.5in 
\oddsidemargin 1.0in \evensidemargin 1.0in 
\marginparwidth .75in \marginparsep 7pt 
 \topmargin -.5in \headheight 12pt \headsep .25in \footskip .35in 
%\topmargin .75in \headheight 12pt \headsep .25in \footskip .35in 

%\textheight = 41\baselineskip
%\textheight = 7.375in % Wiley size
\textheight = 47pc % 50 pica
\advance\textheight by \topskip
%\textwidth 4.625in \columnsep 10pt \columnseprule 0pt  % Wiley size
\textwidth 30pc \columnsep 10pt \columnseprule 0pt  % Wiley size

% Parameters used by the special table of contents format that's used
% in the MIT-Press-Book style.

\newdimen\toc@leftwidth
\toc@leftwidth 7.5pc
\newdimen\toc@rightwidth
\toc@rightwidth 18.7pc
\newdimen\toc@colsep
\toc@colsep .8pc
\newdimen\toc@prechapterskip
\toc@prechapterskip 20pt
\newdimen\toc@postchapterskip
\toc@postchapterskip 8pt


\footnotesep 6.65pt 
\skip\footins 9pt plus 4pt minus 2pt 
\floatsep 12pt plus 2pt minus 2pt \textfloatsep 20pt plus 2pt minus 4pt
\intextsep 12pt plus 2pt minus 2pt \@maxsep 20pt \dblfloatsep 12pt plus 2pt
minus 2pt \dbltextfloatsep 20pt plus 2pt minus 4pt \@dblmaxsep 20pt 
\@fptop 0pt plus 1fil \@fpsep 8pt plus 2fil \@fpbot 0pt plus 1fil 
\@dblfptop 0pt plus 1fil \@dblfpsep 8pt plus 2fil \@dblfpbot 0pt plus 1fil
\marginparpush 5pt 

\parskip 0pt plus 1pt \parindent 15pt \partopsep 2pt plus 1pt minus 1pt 
\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301 
\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty
-\@lowpenalty 

%
%\def\@makechapterhead#1{ \vspace*{15pt} { \parindent 0pt \raggedright 
% \ifnum \c@secnumdepth >\m@ne  {\huge\sc \@chapapp{} \thechapter}\par 
% \vskip 20pt \fi \line(1,0){325}\par
% \vskip 10pt {\huge\it #1} \line(1,0){325}\par
% \nobreak \vskip 60pt } }

%\def\@makeschapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright 
% \Huge #1\par 
% \nobreak \vskip 40pt } }
%
%\def\chapter{\cleardoublepage \thispagestyle{plain} \global\@topnum\z@
%\@afterindentfalse \secdef\@chapter\@schapter} 
%\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
% \refstepcounter{chapter}
% \typeout{\@chapapp\space\thechapter.}
% \addcontentsline{toc}{chapter}{\protect
% \numberline{\thechapter}#1}\else
% \addcontentsline{toc}{chapter}{#1}\fi
% \chaptermark{#1}
% \addtocontents{lof}{\protect\addvspace{10pt}}
%\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn
%\@topnewpage[\@makechapterhead{#2}] 
% \else \@makechapterhead{#2}
% \@afterheading \fi} 
%\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
% \else \@makeschapterhead{#1} 
% \@afterheading\fi}
%    ****************************************
%    *        CHAPTERS AND SECTIONS         *
%    ****************************************
%
%
\let\clearchapterpage\clearpage

\def\part{\cleardoublepageempty   % Starts new page.
  \thispagestyle{empty}      % Page style of part page is 'empty'
  \if@twocolumn              % IF two-column style
     \onecolumn              %  THEN \onecolumn
     \@tempswatrue           %       @tempswa := true
    \else \@tempswafalse     %  ELSE @tempswa := false
  \fi                        % FI
  \bgroup\parindent 0pt\raggedright\secdef\@part\@spart}     

\def\@part[#1]#2{\ifnum \c@secnumdepth >-2\relax  % IF secnumdepth > -2
        \refstepcounter{part}                     %   THEN step part counter
        \addcontentsline{toc}{part}
           {\protect\numberline{\thepart} #1}\else% ELSE add unnumbered line
        \addcontentsline{toc}{part}{#1}\fi        % FI
   \markboth{}{}
   \ifnum \c@secnumdepth >-2\relax  % IF secnumdepth > -2
      \@chapterheadlayout{Part \thepart:}{#1}\else
      \@chapterheadlayout{}{#1}\fi
   \@endpart}
    
% \@endpart finishes the part page
%
\def\@endpart{\par\egroup     % END centering 
   \vfil\newpage              % End page with 1fil glue.
   \if@twoside                % IF twoside printing
       \hbox{}                %   THEN Produce totally blank page
       \thispagestyle{empty}  
       \newpage        
   \fi                        % FI
   \if@tempswa                % IF @tempswa = true       
     \twocolumn               %   THEN \twocolumn 
   \fi}                       % FI

\def\@spart#1{\@chapterheadlayout{}{#1}\@endpart}

% The chapter headings will be formatted as follows:
%
%     CHAPTER 27
%     ---------------------------------------------
%
%
%     Still Further Considerations
%     ----------------------------	
%
%
% The \@chapterheadlayout definition helps keep the line the same distance from
% the top of the page and the text regardless of what happens.
% However, things could be changed so that the text moves downward if
% the chapter has a long title.
%
% A \chapter*{...} chapter DOES appear in the table of contents,
% in this document style; however, it appears in a different format
% from a normal chapter.

\def\@topchapterdecls{\parindent\z@\raggedright\Large\bf}

%\def\@topchapterbox#1{\hbox{\vbox to 58pt{\vfill
\def\@topchapterbox#1{\hbox{\vbox to 1pt{\vfill
%     \parbox[b]{\textwidth}{\raggedright\hyphenpenalty5000 #1}}}\par
%     \parbox[b]{\textwidth}{\raggedright\hyphenpenalty5000 \chptnfont #1}}}\par
     \parbox[b]{\textwidth}{\raggedright\hyphenpenalty5000 \chptnfont #1}}}\par
%     \hbox to \textwidth{\hrulefill}}
     \hbox to \textwidth{}\hrule height3pt width30pc}

\def\@bottomchapterbox#1{\hbox{}\par
%   \vbox to 65pt{\parbox[b]{\textwidth}{\raggedright\hyphenpenalty1000 #1}
%   \vbox to 105pt{\parbox[b]{\textwidth}{\raggedright\hyphenpenalty1000
%	\chptfont #1}\vfill}\hrule height1pt width30pc}
   \parbox[b]{\textwidth}{\raggedright\hyphenpenalty1000
	\chptfont #1\vfill}\vskip 12pt \hrule height1pt width30pc}

\def\@chapterheadlayout#1#2{\@topchapterbox{#1}\vskip 120pt
	\@bottomchapterbox{#2}\vskip 30pt}

% \@makechapterhead {TEXT} : Makes the heading for the \chapter command.
%

\def\@makechapterhead#1{             % Heading for \chapter command
    \bgroup
    \@topchapterdecls
    % IF secnumdepth > -1 THEN
    % print 'Chapter' and number.
    \ifnum \c@secnumdepth >\m@ne
      \@chapterheadlayout{\@chapapp\ \thechapter}{#1}\else
%      \@chapterheadlayout{\thechapter}{#1}\else
      \@chapterheadlayout{}{#1}\fi
    \nobreak
    \egroup}

% \@makeschapterhead {TEXT} : Makes the heading for the \chapter* command.
%

\def\@makeschapterhead#1{             % Heading for \chapter* command
  \bgroup
  \@topchapterdecls
  \@chapterheadlayout{}{#1}\nobreak
  \egroup}

% \secdef{UNSTARCMDS}{STARCMDS} :
%    When defining a \chapter or \section command without using
%    \@startsection, you can use \secdef as follows:
%       \def\chapter { ... \secdef \CMDA \CMDB }
%       \def\CMDA    [#1]#2{ ... }  % Command to define \chapter[...]{...}
%       \def\CMDB    #1{ ... }      % Command to define \chapter*{...}

\def\chapter{\clearchapterpage  % Starts new page, possibly leaving a blank one.
   \thispagestyle{empty}     % Page style of chapter page is empty
   \global\@topnum\z@        % Prevents figures from going at top of page.
   \@afterindentfalse        % Suppresses indent in first paragraph.  Change
   \secdef\@chapter\@schapter}   % to \@afterindenttrue to have indent.

\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
        \refstepcounter{chapter}
        \typeout{Book \@chapapp\space\thechapter.}
        \addcontentsline{toc}{chapter}{\protect
        \numberline{\thechapter}#2}\else
      \addcontentsline{toc}{chapter}{#1}\fi
   \chaptermark{#1}
   \addtocontents{lof}{\protect\addvspace{10pt}} % Adds between-chapter space
   \addtocontents{lot}{\protect\addvspace{10pt}} % to lists of figs & tables.
   \if@twocolumn                                 % Tests for two-column mode.  
           \@topnewpage[\@makechapterhead{#2}]  
     \else \@makechapterhead{#2}
           \@afterheading                  % Routine called after chapter and
     \fi}                                  % section heading.

% We arrange for \chapter* entries to appear in the table of contents, but
% indicated with "schapter" rather than "chapter".

\def\@schapter#1{\addcontentsline{toc}{schapter}{#1}\if@twocolumn
        \@topnewpage[\@makeschapterhead{#1}]
        \else \@makeschapterhead{#1}\@afterheading\fi
        \markboth{#1}{#1}}

% \chapter{...} isn't supposed to be used in the front matter;
% \chapter*{...} is supposed to be used instead.

\def\front@chapter[#1]#2{\front@schapter{#2}}

\def\front@makeschapterhead#1{\bgroup      % Heading for \chapter* command in
  \parindent 0pt\raggedright               % front matter
  \large\uppercase{#1}\par\nobreak
  \vspace{20pt}
  \egroup
  \@afterindenttrue
  \@afterheading}

%\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
% -.2ex}{2.3ex plus .2ex}{\Large\secfont}}
%\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
% -.2ex}{1.5ex plus .2ex}{\subsecfont}}
%\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
%-1ex minus -.2ex}{1.5ex plus .2ex}{\subsubfont}}
%\def\paragraph{\@startsection
% {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
%\def\subparagraph{\@startsection
% {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
% .2ex}{-1em}{\normalsize\bf}}

\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
 -.2ex}{2.3ex plus .2ex}{\Large\hfont}}
\def\subsection{\@startsection{subsection}{2}{0pt}{-3.25ex plus -1ex minus 
 -.2ex}{1.5ex plus .2ex}{\large\hfont}}
\def\subsubsection{\@startsection{subsubsection}{3}{0pt}{-3.25ex plus
-1ex minus -.2ex}{1.5ex plus .2ex}{\subhfont}}
\def\paragraph{\@startsection
 {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\hfont}}
\def\subparagraph{\@startsection
 {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
 .2ex}{-1em}{\normalsize\hfont}}

%\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
% -.2ex}{2.3ex plus .2ex}{\Large\bf}}
%\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
% -.2ex}{1.5ex plus .2ex}{\large\bf}}
%\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
%-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
%\def\paragraph{\@startsection
% {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
%\def\subparagraph{\@startsection
% {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
% .2ex}{-1em}{\normalsize\bf}}

\def\chaptermark#1{}

%\setcounter{secnumdepth}{2}
\setcounter{secnumdepth}{1}

\def\appendix#1{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \def\@chapapp{APPENDIX}
 \def\thechapter{\Alph{appendix}}
 \chapter{#1}
}

\def\references#1{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
% \def\@chapapp{REFERENCES}
 \def\@chapapp{}
 \def\thechapter{\Alph{references}}
 \chapter{#1}
}

\def\index#1{\par
 \setcounter{chapter}{0}
 \setcounter{section}{0}
 \def\@chapapp{INDEX}
 \def\thechapter{\Alph{index}}
 \chapter{#1}
}



\leftmargini 25pt
\leftmarginii 22pt \leftmarginiii 18.7pt \leftmarginiv 17pt \leftmarginv 10pt
\leftmarginvi 10pt
\leftmargin\leftmargini
\labelsep 5pt
\labelwidth\leftmargini\advance\labelwidth-\labelsep
\def\@listI{\leftmargin\leftmargini \parsep 4pt plus 2pt minus 1pt\topsep 8pt
plus 2pt minus 4pt\itemsep 4pt plus 2pt minus 1pt}
\let\@listi\@listI
\@listi 
\def\@listii{\leftmargin\leftmarginii
 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
 \topsep 4pt plus 2pt minus 1pt
 \parsep 2pt plus 1pt minus 1pt
 \itemsep \parsep}
\def\@listiii{\leftmargin\leftmarginiii
 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
 \topsep 2pt plus 1pt minus 1pt 
 \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
 \itemsep \topsep}
\def\@listiv{\leftmargin\leftmarginiv
 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
\def\@listv{\leftmargin\leftmarginv
 \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
\def\@listvi{\leftmargin\leftmarginvi
 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}

%    *********************************************
%    *           SPECIAL PAGE FORMAT             *
%    *********************************************
%
%    Alignment marks and a copyright notice are added.
%

%\def\@vcut{\hrule height 18pt depth 0pt width .5pt\relax}
\def\@lvcut{\vskip 18pt \hrule height 0pt depth 4pt width .5pt\relax}
\def\@vcut{\vskip -18pt \hrule height 18pt depth 0pt width .5pt\relax}
\def\@hcut{\vrule height .5pt depth 0pt width 17.5pt\relax}

\def\@ltcut{}
\def\@rtcut{}
\def\@lbcut{
  \vbox to 69pt{
    \vfil
    \hbox to 0pt{\hskip-62pt\vbox{\vskip 4pt }\hfil}}}
\def\@rbcut{
  \vbox to 69pt{
    \vfil
    \hbox to 0pt{\hfil\vbox{}\hskip-62pt}}}
%\def\@ltcut{
%  \vbox to 34pt{
%    \hbox to 0pt{\hskip-62pt\vbox to 0pt{\@vcut\vss}\@hcut\hfil}
%    \vfil}}
%\def\@rtcut{
%  \vbox to 34pt{
%    \hbox to 0pt{\hfil\@hcut\vbox to 0pt{\@vcut\vss}\hskip-62pt}
%    \vfil}}
%\def\@lbcut{
% %  \vbox to 29pt{
%  \vbox to 69pt{
%    \vfil
%    \hbox to 0pt{\hskip-62pt\vbox{\vskip 4pt \@lvcut}\@hcut\hfil}}}
%\def\@rbcut{
% %  \vbox to 29pt{
%  \vbox to 69pt{
%    \vfil
%    \hbox to 0pt{\hfil\@hcut\vbox{\@lvcut}\hskip-62pt}}}

\def\@outputpage{\begingroup\catcode`\ =10 \if@specialpage 
     \global\@specialpagefalse\@nameuse{ps@\@specialstyle}\fi
     \if@twoside 
       \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
            \let\@themargin\oddsidemargin
          \else \let\@thehead\@evenhead
          \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
     \fi\fi
     \shipout
     \vbox{\normalsize \baselineskip\z@ \lineskip\z@
           \vskip \topmargin \moveright\@themargin
           \vbox{\hbox to 27pc{\@ltcut\hfil\@rtcut}\setbox\@tempboxa
                 \vbox to\headheight{\vfil \hbox to\textwidth{\@thehead}}
                 \dp\@tempboxa\z@
                 \box\@tempboxa
                 \vskip \headsep
                 \box\@outputbox
                 \vskip0pt
                 \hbox to 27pc{\@lbcut\hfil\@rbcut}
                 \hbox to 27pc{\hfil\vrule width 0pt height 10pt\bf
                                \arabic{page}\hfil}
                 \vskip 10pt
                 \hbox to 27pc{\hfil\pagemark\hfil}}}
     \global\@colht\textheight
     \endgroup
     \stepcounter{page}\let\firstmark\botmark}

