%% 
%% This is file `slidepagestyles.sty'.  It takes a bit of slides.cls and
%%	modifies the commands that generate headers and footers. 
%%	Created: 8/16/95	Lenwood S. Heath
%%	Modified: 8/8/97	Lenwood S. Heath
%% 

\def\oddfoot{}
\def\oddhead{}
\def\evenfoot{}
\def\evenhead{}

\if@compatibility
\def\ps@headings{%
\def\ps@slide{\def\@oddfoot{\@mainsize +\hfil\hbox to3em{\hss Slide \theslide}}%
 \def\@oddhead{\@mainsize +\hfil +}%
 \def\@evenfoot{\@mainsize +\hfil\hbox to3em{\hss Slide \theslide}}%
 \def\@evenhead{\@mainsize +\hfil +}}

\def\ps@overlay{\def\@oddfoot{\@mainsize +\hfil\hbox to3em{\hss\theoverlay}}%
 \def\@oddhead{\@mainsize +\hfil +}%
 \def\@evenfoot{\@mainsize +\hfil\hbox to3em{\hss\theoverlay}}%
 \def\@evenhead{\@mainsize +\hfil +}}
\def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil Note \thenote}%
 \def\@oddhead{}%
 \def\@evenfoot{\@mainsize \hbox{}\hfil Note \thenote}%
 \def\@evenhead{}}}
\else %%if@compatibility
\def\ps@headings{%
  \def\ps@slide{%
    \def\@oddfoot{\@mainsize \oddfoot \hfil\hbox to3em{\hss Slide \theslide}}%
    \def\@oddhead{\@mainsize \oddhead}%
    \def\@evenfoot{\@mainsize \evenfoot \hfil\hbox to3em{\hss Slide \theslide}}%
    \def\@evenhead{}}

  \def\ps@overlay{%
    \def\@oddfoot{\@mainsize \oddfoot \hfil\hbox to3em{\hss\theoverlay}}%
    \def\@oddhead{\@mainsize \oddhead}%
    \def\@evenfoot{\@mainsize \evenfoot \hfil\hbox to3em{\hss\theoverlay}}%
    \def\@evenhead{}}

  \def\ps@note{%
    \def\@oddfoot{%
      \@mainsize
      \if@clock \fbox{\large \arabic{minutes} min}\else \oddfoot \fi
      \hfil Note \thenote}%
    \def\@oddhead{\@mainsize \oddhead}%
    \def\@evenfoot{%
      \@mainsize
      \if@clock \fbox{\large \arabic{minutes} min}\else \evenfoot \fi
      \hfil Note \thenote}%
    \def\@evenhead{}}}
\fi  %% if@compatibility
\def\ps@plain{\def\ps@slide{%
 \def\@oddfoot{\@mainsize \mbox{}\hfil\hbox to 3em{\hss Slide \theslide}}%
 \def\@oddhead{}%
 \def\@evenfoot{\@mainsize \mbox{}\hfil\hbox to 3em{\hss Slide \theslide}}%
 \def\@evenhead{}}
\def\ps@overlay{\def\@oddfoot{\@mainsize
   \mbox{}\hfil\hbox to 3em{\hss\theoverlay}}%
 \def\@oddhead{}%
 \def\@evenfoot{\@mainsize \mbox{}\hfil\hbox to 3em{\hss\theoverlay}}%
 \def\@evenhead{}}
\def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil Note \thenote}%
 \def\@oddhead{}%
 \def\@evenfoot{\@mainsize \hbox{}\hfil Note \thenote}%
 \def\@evenhead{}}}
\def\ps@empty{%
\def\ps@slide{\def\@oddhead{}\def\@oddfoot{}%
\def\@evenhead{}\def\@evenfoot{}}%
\def\ps@overlay{\def\@oddhead{}\def\@oddfoot{}%
\def\@evenhead{}\def\@evenfoot{}}%
\def\ps@note{\def\@oddhead{}\def\@oddfoot{}%
\def\@evenhead{}\def\@evenfoot{}}}
\ps@headings
\let\@oddhead\@empty\let\@oddfoot\@empty
\let\@evenhead\@empty\let\@evenfoot\@empty

\renewcommand{\thepage}{\theslide}	% references to page number should
					% return the slide number


%%	Update enumerate and itemize environments to allow an optional
%%	parameter to adjust the amount of space between items
\renewcommand{\enumerate}[1][0pt]{%
  \addtolength{\parskip}{#1}
  \ifnum \@enumdepth >\thr@@\@toodeep\else
    \advance\@enumdepth\@ne
    \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
      \expandafter
      \list
        \csname label\@enumctr\endcsname
        {\usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}}%
  \fi}

\renewcommand{\itemize}[1][0pt]{%
  \addtolength{\parskip}{#1}
  \ifnum \@itemdepth >\thr@@\@toodeep\else
    \advance\@itemdepth\@ne
    \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
    \expandafter
    \list
      \csname\@itemitem\endcsname
      {\def\makelabel##1{\hss\llap{##1}}}%
  \fi}

%% 
%% End of file `slidepagestyles.sty'.
