% LaTeX customizations for the ISODE User's Manual

\makeatletter

\def\preface{\chapter*{Preface\@mkboth{PREFACE}{PREFACE}}}

\let\l@@part=\l@part			%%% l@part doesn't quite prevent
\let\l@@chapter=\l@chapter		%%% breaks correctly
\def\l@part#1#2{\l@@part{#1}{#2} \let\l@chapter=\l@@@chapter}
\def\l@@@chapter#1#2{%
    \vskip 1.0em plus 1pt
    \nobreak
    \begingroup
	\@tempdima 1.5em
	\parindent \z@ \rightskip \@pnumwidth 
	\parfillskip -\@pnumwidth   
	\bf
	\leavevmode
	#1\hfil \hbox to\@pnumwidth{\hss #2}\par
    \endgroup
    \let\l@chapter=\l@@chapter
}

\def\volone/{{\em Volume One}}
\def\voltwo/{{\em Volume Two}}
\def\volthree/{{\em Volume Three}}
\def\volfour/{{\em Volume Four}}
\def\volfive/{{\em Volume Five}}

\ifcase\volnum
\or		%%% volume 1
    \def\readauxfiles{%
	\makeatletter
	\@input{psap2.aux}
	\@input{ssap.aux}
	\@input{tsap.aux}
	\@input{services.aux}
	\@input{tailoring.aux}
	\@input{logging.aux}
	\@input{q-dsa.aux}
	\@input{q-appendix-b.aux}
	\makeatother
    }
\or		%%% volume 2
    \def\readauxfiles{%
	\makeatletter
	\@input{acsap.aux}
	\@input{rosap.aux}
	\@input{rtsap.aux}
	\@input{psap.aux}
	\@input{entities.aux}
	\@input{defining.aux}
	\@input{appendix2.aux}
	\@input{pepy.aux}
	\makeatother
    }
\or		%%% volume 3
    \def\readauxfiles{%
	\makeatletter
	\@input{acsap.aux}
	\@input{psap.aux}
	\@input{psap2.aux}
	\@input{tsap.aux}
	\@input{logging.aux}
	\makeatother
    }
\or		%%% volume 4
    \def\readauxfiles{%
	\makeatletter
	\@input{acsap.aux}
	\@input{rosap.aux}
	\@input{psap.aux}
	\@input{tsap.aux}
	\@input{logging.aux}
	\@input{defining.aux}
	\makeatother
    }
\or		%%% volume 5
    \def\readauxfiles{%
	\makeatletter
	\@input{acsap.aux}
	\@input{tsap.aux}
	\@input{logging.aux}
	\@input{entities.aux}
	\makeatother
    }
\fi

\makeatother

\def\isodevrsn/{6.0}	\def\isodeprevrsn/{6.0}
\def\tarplace/{\verb"isode/"}
\def\uktarfile/{\verb"<SRC>isode-6.tar"}
\def\PSfile/{\verb"isode-ps.tar.Z"}
\def\tarsize/{14MB}
\def\compressfile/{\verb"isode-6.tar.Z"}
\def\ukcompressfile/{\verb"<SRC>isode-6.tar.Z"}
\def\compressize/{4.5MB}
\def\PSsize/{7MB}
\def\compatvrsn/{6.0}	\def\compatprevrsn/{6.0}
\def\tsapvrsn/{6.0}	\def\tsaprevrsn/{6.0}
\def\ssapvrsn/{6.0}	\def\ssaprevrsn/{6.0}
\def\psapvrsn/{6.0}	\def\psaprevrsn/{6.0}
\def\psapXvrsn/{6.0}	\def\psapXrevrsn/{6.0}
\def\pepyvrsn/{6.0}	%%% \def\pepyprevrsn/{6.0}
\def\acsapvrsn/{6.0}	\def\acsaprevrsn/{6.0}
\def\rtsapvrsn/{6.0}	\def\rtsaprevrsn/{6.0}
\def\rosapvrsn/{6.0}	\def\rosaprevrsn/{6.0}
\def\rosyvrsn/{6.0}	\def\rosyprevrsn/{6.0}
\let\posyvrsn=\pepyvrsn	\let\posyprevrsn=\pepyprevrsn
\def\ftamvrsn/{6.0}	\def\ftamprevrsn/{6.0}

\makeindex

%%% LaTeX has its margins mixed up!
\newdimen\foosidemargin
\let\foosidemargin=\oddsidemargin
\let\oddsidemargin=\evensidemargin
\let\evensidemargin=\foosidemargin

\pagestyle{headings}
