% Where things are defined: 
%
% itchapter.sty         - overall document style definition
%                                  and page header definitions
%                       - defines some environments e.g. aside
%                       - to what depth subsections and subsubsections are numbered (also in book.tex)?
%
%                       - asides
% itchapter11.sty       - this is invoked by itchapter.sty (11pt only)
%                                 defines section heading styles
%			- also indentations 
% chapternotes.sty	- defines the page size and requests exercise.sty, 
%                                elias.sty, rissanen.sty
%                           (and margins)
%                       - defines the footers (but does not instruct that they be used)
% prooflike
% itprnnchapter.sty
% lsalike.sty           - the bibliography and citation stuff
% exercise.sty          - commands for handling exercise and solution numbering
%                                  and rats
%                                   pagerefs are used heavily in here
% tex/newcommands1.tex  - defines my dvips handling stuff
%
% marginfig.sty         - defines figuremargin{}{} and similar figure placers
%                         Also the algorithm object
%                         Uses the concept of figtype to control captions.
% mycaption.sty		- defines figtype meaning
% floatflt              - makes it possible to have floating figures (not used)
% mparhackleft-209      - forces all marginpars to appear left
% symbols               - a few math symbols
% booktabs              - nice table formatting
% chapsummary.sty - specifies a set of commands for spitting out
%                    information about which chapters belong in which
%                    themes of the book.
%
% tocloftcomp, tocloft  - table of contents
% generic defns: /usr/local/texlive/texmf/tex/latex/base/book.cls
%
% {fixmathDJCM}%  provides bold alpha etc.
%
% Who uses this style: book.tex and l?.tex
%

\newcommand{\coursetitle}[1]{\def\@coursetitle{#1}}
\newcommand{\lecturetitle}[1]{\def\@lecturetitle{#1}}
\newcommand{\shortlecturetitle}[1]{\def\@shortlecturetitle{#1}}
\newcommand{\shortauthor}[1]{\def\@shortauthor{#1}}% restored Sat 5/10/02

\oddsidemargin  -11mm% -7mm % (tweaked jan 2000)
\evensidemargin -11mm% -7mm %                      was 0.2in
\topmargin     -0.4in% was 0in % was -0.3, Mike L recommended shift. % when it was -0.2in, the letter version lost copyright line (.2in shift required
%\textheight  225mm% july 99 was 200mm  9in% 9in = 225mm
%\textheight  240mm% on Wed 25/6/03 changed to 255mm because of misunderstanding about footer
\textheight  255mm% july 99 was 200mm  9in% 9in = 225mm (return to this later)
\textwidth   130mm% july 99 was 145mm!  6.3in% 6.3in = 160mm 
\newlength{\fulltextwidth}
\newlength{\fulltextlessindentwidth}
\newlength{\textwidthlessindents}% used in conclusionbox which is defined in itprnnchapter.tex
\newlength{\slightlyskinnytextwidth}% used in conclusionbox
\fulltextwidth   189mm% used at the index
\fulltextlessindentwidth   155mm%  used in marginfig.sty since Tue 31/12/02
\textwidthlessindents 112mm %}{\textwidth minus 2* some sort of  \leftmargini, but not the 19pt (6.67mm) one, the 9mm.
\slightlyskinnytextwidth  128mm
% Wed 4/7/01 for algorithm box
\newlength{\skinnytextwidth}
\newlength{\skinnydiffwidth}
\skinnytextwidth 125mm
\skinnydiffwidth 1mm% roughly half the diff between textwidth and skinnytextwidth
% but a little smaller to allow for thickness of fbox
% 
\marginparwidth  53mm % width of parbox containing marginal objects
\marginparsep   6mm % space between margin and marginal note
\newlength{\marginparsepfudge}% used from Sat 12/7/03 in place of marginparsep in my marginfig contexts
\marginparsepfudge   5mm % space between margin and marginal note, introduced Sat 12/7/03
\newlength{\margindistance}
\newlength{\margindistancefudge}
\margindistance 59mm % the sum of the above two, except maybe it needs to be about 5mm smaller?
\margindistancefudge 54mm % fudged version of the above, used in marginfig.sty Until Sat 12/7/03 this was 54mm
\marginparpush  4mm % minimal space between successive marginal notes
% see also marginfig.sty
\newcommand{\beginfullpagewidth}{\begin{narrow}{0in}{-\margindistance}}%%
\newcommand{\ENDfullpagewidth}{\end{narrow}}
% added Tue 13/8/02 for use at the index:
% this worked when I used the old defn of index but it does not work with the new multicol.sty
\newcommand{\removemargins}{% this command fails to work!!!  Use ``narrow'' instead
% the following two commands change the page layout to get rid of margins
\setlength{\linewidth}{\fulltextwidth}%defined in chapternotes.sty
\setlength{\textwidth}{\fulltextwidth}%defined in chapternotes.sty
\setlength{\margindistance}{0in}% this is to make the headers defined in itchapter.sty look right
}
\newcommand{\restoremargins}{
\setlength{\textwidth}{130mm}
\setlength{\linewidth}{\textwidth}
\setlength{\margindistance}{59mm}
}
%
% world scientific size preferred:  
% cheap: 234 156mm (royal octavo)
% or:    246 189mm (crown quarto)
% royal octavo - you can assume a text area (excluding headers
% but including your margin comments) of approximately 190 x 110 mm. If we
% went to the next size up, namely a trim size of about 242 x 185, the text
% area would be 200 x 145 mm. (Note that these dimensions are approximately
% and subject to an error margin of +/- 4 mm.) I would suggest that 11 point
% Computer Modern Roman be used as the base font.
%
% CUP page cut size is 247mm, 174mm.


%\def\ps@headings{ 
%  \let\@mkboth\markboth 
%%   \def\@oddfoot{\copyright\  \@shortauthor:~\today \hfill \thepage}
%%   \def\@oddhead{{\sc \@coursetitle} \hfill \@shortlecturetitle}
%   \def\@evenfoot{\thepage \hfill  \copyright\  \@shortauthor:~\today}
%%   \def\@evenhead{\@oddhead}
%  \def\@oddfoot{\copyright\  \@shortauthor:~\today \hfill \thepage}
%%%  \def\@oddhead{{\sc \@coursetitle} \hfill \@shortlecturetitle}
%%%  \def\@oddhead{{\sc \@chapapp\ \thechapter \ --- \@lecturetitle} \hfill \thepage}
%%  \def\@oddhead{\hfill {\sc \@chapapp\ \thechapter \ --- \@lecturetitle}}% want this overridden by chapter
%%  \def\@evenhead{{\sc \@coursetitle} \hfill }
%}
% jan 2000 added the margindistance feature. see also itchapter
% for the corresponding footer effect.
% OVERRULED BELOW
 \def\@lfootmessage{\sf{\centerline{\copyright\
 \@shortauthor.~Draft~\thedraft.~\today}
 \hspace*{-\textwidth} \hspace{-5mm}
% {\small\sf{\thepage}} % cut Wed 9/4/03
 \hfill
% {\tiny\tt\elias{\thepage}} \hfill
      \hspace*{-\margindistance}}}
 \def\@rfootmessage{\sf{\centerline{\copyright\
 \@shortauthor.~Draft~\thedraft.~\today}
 \hspace*{-\textwidth} \hspace{-5mm}
 \hfill
% {\tiny\tt\elias{\thepage}} \hfill
  \hspace*{-\margindistance}  %   {\small\sf{\thepage}} % cut Wed 9/4/03
}}
% OVERRULE
 \def\@lfootmessage{}
 \def\@rfootmessage{}
% WAS until Mon 4/2/02....
% \def\@rfootmessage{\sf{\centerline{\copyright\
% \@shortauthor:~Draft~\thedraft.~\today}
% \hspace*{-\textwidth} \hspace{-5mm}   \hfill
% {\tiny\tt\elias{\thepage}}\hspace*{-\margindistance}}}
%
% \def\@lfootmessage{\sf{\centerline{\copyright\
% \@shortauthor.~Draft~\thedraft.~\today}
% \hspace*{-\textwidth} \hspace{-5mm} \thepage \hfill
%      {\tiny\tt\elias{\thepage}}\hspace*{-\margindistance}}}
%% \thepage \hfill  \copyright\  \@shortauthor.~\today \hfill \elias{\thepage}}
% \def\@rfootmessage{\sf{\centerline{\copyright\
% \@shortauthor:~Draft~\thedraft.~\today}
% \hspace*{-\textwidth} \hspace{-5mm} {\tiny\tt\elias{\thepage}}  \hfill
%       \thepage\hspace*{-\margindistance}}}
% \copyright\  \@shortauthor:~\today \hfill \thepage}
 \def\@footmessage{\sf\hfill \copyright\  \@shortauthor:~Draft~\thedraft~\today \hfill}
\pagestyle{headings}


\input{exercise.sty}
\input{elias.sty} 
\input{rissanen.sty} 

\endinput
