%% Created May 5, 2000, defined by WARM Associates 
%% for marslide.sty  (originally called marsden_slides.sty)
%% Revised May 20, 2000, 
%% Current Version: Wednesday, September 20, 2000
%% --------------------------------------------------
%%   This file is distributed in the hope that it will be useful,
%%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%% 
%% 
%% IMPORTANT COPYRIGHT NOTICE:
%% 
%% You are allowed to distribute this file alone.
%% 
%% Permission is granted to copy this file to another file with a
%% clearly different name and to customize the declarations in that
%% copy to serve the needs of your installation, provided that you
%% comply with the conditions in the file legal.txt from the LaTeX2e
%% distribution.
%% 
%% However, NO PERMISSION is granted to generate or to distribute a
%% modified version of this file under its original name.
%% 
%% You are NOT ALLOWED to change this file.
%% 
%% 
%% MODIFICATION ADVICE:
%% 
%% If you want to customize this file, use a different name for your
%% copy(ies) and modify the copy(ies); this will ensure that your
%% modifications do not get overwritten when you install a
%% new release.  
%% 
%% You can then easily distribute your modifications by distributing
%% the modified and renamed copy of the source file, taking care to
%% observe the conditions in legal.txt; this will ensure that other
%% users can safely use your modifications.
%% 
%% Please report errors to: Wendy G McKay <wgm@cds.caltech.edu>
%%                          Ross R Moore  <ross@ics.mq.edu.au>
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesFile{hugefonts.sty}
              [2000/09/20 v1.1
      Non-Standard LaTeX file (Slide sizes)]
%=======================================================================
%%TRIED TO PUT THIS AT THE TOP HugeFont.sty BUT IT DID NOT WORK

\newif\ifwithserif  
\newif\ifwithserifbold 
\newif\ifwithsansserif 
\newif\ifwithsemiserif 

\DeclareOption{serif}{%
      \def\slidesSerifshape{%
               \def\slidenormalshape{\rmfamily\upshape}}%
               \def\slidesfontshape{\slidesSerifshape}%
               \withseriftrue
}
\DeclareOption{serifbold}{%
      \def\slidesSerifshape{%
               \def\slidenormalshape{\rmfamily\upshape}}%
               \def\slidesfontshape{\slidesSerifshape\bfseries}%
               \withserifboldtrue
}

\DeclareOption{sansserif}{%
     def\slidesSansSerifshape{%
               \def\slidenormalshape{\sffamily\upshape}}%
               \def\slidesfontshape{\slidesSansSerifshape}%
               \withsansseriftrue
}

\DeclareOption{semiserif}{%
     \def\slidesSemiSerif{%
               \def\slidenormalshape{\rmfamily\slshape}}%
               \def\slidesfontshape{\slidesSemiSerif}%
               \withsemiseriftrue
}

\ProcessOptions                        
%=======================================================================


\newcommand\slidenormalsize{%
   \@setfontsize\slidenormalsize\@xxvpt{30}%
   \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
   \belowdisplayskip \abovedisplayskip
   \let\@listi\@listI}

\newcommand\slidesmall{%
   \@setfontsize\slidesmall\@xxpt{25}%
   \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
   \def\@listi{\leftmargin\leftmargini
               \topsep 9\p@ \@plus3\p@ \@minus5\p@
               \parsep 4.5\p@ \@plus2\p@ \@minus\p@
               \itemsep \parsep}%
   \belowdisplayskip \abovedisplayskip
}
\newcommand\slidefootnotesize{%
   \@setfontsize\slidefootnotesize\@xviipt{22}%
   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
   \def\@listi{\leftmargin\leftmargini
               \topsep 6\p@ \@plus2\p@ \@minus2\p@
               \parsep 3\p@ \@plus2\p@ \@minus\p@
               \itemsep \parsep}%
   \belowdisplayskip \abovedisplayskip
}
\newcommand\slidescriptsize{\@setfontsize\slidescriptsize\@xviipt{22}}
\newcommand\slidetiny{\@setfontsize\slidetiny\@xiipt\@xivpt}
\newcommand\slidelarge{\@setfontsize\slidelarge\@xxviiipt{33}}%{33}}
\newcommand\slideLarge{\@setfontsize\slideLarge\@xxxiipt{39}}%{39}}
\newcommand\slideLARGE{\@setfontsize\slideLARGE\@xxxvipt{42}}%{42}}
\newcommand\slidehuge{\@setfontsize\slidehuge\@xlpt{26}}%{46}}
\newcommand\slideHuge{\@setfontsize\slideHuge\@lvpt{66}}
\newcommand\slideHUGE{\@setfontsize\slideHUGE\@lxvpt{77}}

\def\@xxviiipt{28}
\def\@xxxiipt{32}
\def\@xxxvipt{36}
\def\@xlpt{40}
\def\@lvpt{55}
\def\@lxvpt{65}

\let\ltx@floatboxreset\@floatboxreset
\def\SetSlideSizes{%
  \let\small\slidesmall
  \let\footnotesize\slidefootnotesize
  \let\scriptsize\slidescriptsize
  \let\tiny\slidetiny
  \let\large\slidelarge
  \let\Large\slideLarge
  \let\LARGE\slideLARGE
  \let\huge\slidehuge
  \let\Huge\slideHuge
  \let\HUGE\slideHUGE
  \let\normalsize\slidenormalsize
  \def\@floatboxreset{\ltx@floatboxreset\slidenormalshape}
}
%\def\Huge{\SetSlideSizes\normalsize\huge}

% Put as option above 5-21-00
\def\slidesSemiSerif{%
 \def\slidenormalshape{\rmfamily\slshape}}

\def\slidesSerifshape{%
 \def\slidenormalshape{\rmfamily\upshape}}

\def\slidesSansSerifshape{%
 \def\slidenormalshape{\sffamily\upshape}}


%=======================================================================
%%% version for mRSED
%%% DEFAULT FOR ROTIS IS SEMISERIF; 
%%% USE THIS FOR SLIDES WITH ROTIS
%%% \def\ActivateSlides{\AtBeginDocument{\SetSlideSizes
%%%         \slidesSemiSerif \normalsize \slidenormalshape}}


% 1st fixed version for marsden - serif/bfseries
%\def\slidesfontshape{\slidesSerifshape}
%
%\def\ActivateSlides{\AtBeginDocument{\SetSlideSizes
%        \slidesfontshape \normalsize \slidenormalshape}}
%

% newvversion with options
\ifwithserif
    \def\slidesfontshape{\slidesSerifshape}
\else
     \ifwithserifbold
     \def\slidesfontshape{\slidesSerifshape\bfseries}
     \else
          \ifwithsansserif
          \def\slidesfontshape{\slidesSansSerifshape}
          \else
              \ifwithsemiserif
              \def\slidesfontshape{\slidesSemiSerif}
              \else
              \def\slidesfontshape{\slidesSerifshape}
              \fi
          \fi
      \fi
\fi
\def\ActivateSlides{\AtBeginDocument{\SetSlideSizes
         \slidesfontshape \normalsize \slidenormalshape}}
%
%=======================================================================
%% NOTE to WARM: 5-21-00 This is a slightly modified  hugefont.sty
%% Is it possible to set options to choose 
%% serif, semiserif, or sansserif for the fontshape of the whole
%% document depending on the font chosen, 
%% Called from marsdenfontsdef.sty  
%% need to use \bfseries with CM as
%% the computer modern fonts are thin; also for the math.
%%
%%TRIED TO PUT THIS AT THE TOP HugeFont.sty BUT IT DID NOT WORK
%%\DeclareOption{serif}{%
%%      \def\slidesSerifshape{%
%%               \def\slidenormalshape{\rmfamily\upshape}}%
%%               \def\slidesfontshape{\slidesSerifshape}%
%%}
%%
%%\DeclareOption{serifbold}{%
%%      \def\slidesSerifshape{%
%%               \def\slidenormalshape{\rmfamily\upshape}}%
%%               \def\slidesfontshape{\slidesSerifshape\bfseries}%
%%}
%%
%%\DeclareOption{sansserif}{%
%%     def\slidesSansSerifshape{%
%%               \def\slidenormalshape{\sffamily\upshape}}%
%%               \def\slidesfontshape{\slidesSansSerifshape}%
%%}
%%
%%\DeclareOption{semierif}{%
%%     \def\slidesSemiSerif{%
%%               \def\slidenormalshape{\rmfamily\slshape}}%
%%               \def\slidesfontshape{\slidesSemiSerif}%
%%}
%%
%%\ProcessOptions                        
%%
%%
%%
%%\def\ActivateSlides{\AtBeginDocument{\SetSlideSizes
%%        \slidesfontshape \normalsize \slidenormalshape}}
%%
%=======================================================================
%% I PUT THIS IN MARSDEN_SLIDES.STY  but it does not work
%%\ifwithrotis 
%%\usepackage[semiserif]{HugeFont} 
%%\else  \ifwithlucida  
%%       \usepackage[serif]{HugeFont}
%%       \else \ifwithcm 
%%              \usepackage[serifbold]{HugeFont}
%%              \fi
%%       \fi
%%\fi
