% 
% A set of macros to prepare slides
%
% Cengiz Alaettinoglu  Apr 23 1991
%                      Mar  9 1990
%
% Compatibility:
%  Backward compatibile with the previous version
%
% Commands:
%  \slide{Centered Boldface Header}
%  \lslide{Left Justified Boldface Header}
%      The page is framed, with UM logo on the lower rigth corner
%  
%  \head{Centered Boldface Header}
%  \lhead{Left Justified Boldface Header}
%      To print an header easily
%  
%  \cm   
%      Vertical 1cm space  
%  
% Declerations:  
%  \rheader{A message to be printed on the top-rigth     of each slide}
%  \cheader{A message to be printed on the top-center    of each slide}
%  \lheader{A message to be printed on the top-left      of each slide}
%  \rfooter{A message to be printed on the bottom-rigth  of each slide}
%  \cfooter{A message to be printed on the bottom-center of each slide}
%  \lfooter{A message to be printed on the bottom-left   of each slide}
%  \author{ A message to be printed on the bottom-left   of each slide
%               followed by page number}
%
%  Use \thepage on one of the above to get the page number\ldots.
%  Use \usebox{\UM} on one of the above to get the UM logo.
% 
% Notes:
%  The frame is done as if it is the header of each page. Therefore one must
%  not change the pagestyle which is set correctly here.
%
% Example:
%   
%              \documentstyle[slide,12pt]{article}
%              \author{Cengiz Alaettinoglu}
%              \lheader{\em Systems Design and Analysis Group}
%              \rheader{\thepage}
%              \rfooter{SDAG}
%              
%              \begin{document}
%              
%              \slide{Title}
%              Hello World...
%              \cm\cm A slide macro package...
%              
%              
%              \lslide{Another Title}
%                \begin{itemize}
%                  \item Hello Cengiz 
%                  \item Hello SDAG
%                  \item Hello World
%                  \item Hello Everybody
%                \end{itemize}
%
%              \newpage
%                 This is the third slide.
%
%                 You do not have to use \\slide, each page is a slide
%              
%              \end{document}
%
\setlength{\textheight}{6.5in}
\setlength{\textwidth}{7.7in}
\setlength{\topmargin}{0.2in}
\setlength{\oddsidemargin}{0.5in}
\setlength{\evensidemargin}{0.5in}
\setlength{\topskip}{0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0.1in}
\renewcommand{\baselinestretch}{1.2}
\setlength{\footheight}{0in}
\setlength{\footskip}{0in}
\setlength{\marginparwidth}{0in}
\setlength{\marginparsep}{0in}
\setlength{\parskip}{4mm}
\setlength{\parindent}{0mm}

\def\rheader#1{\global\gdef\rhd{{#1}}}
\def\lheader#1{\global\gdef\lhd{{#1}}}
\def\cheader#1{\global\gdef\chd{{#1}}}
\def\lfooter#1{\global\gdef\lft{{#1}}}
\def\rfooter#1{\global\gdef\rft{{\hbox{#1 \hskip-0.3in}}}}
\def\cfooter#1{\global\gdef\cft{{#1}}}
\def\author#1{\global\gdef\lft{{\em #1\ \ \thepage}}}

\def\ps@slide{\let\@mkboth\markboth
\def\@oddhead{\normalsize\vbox{
                     \vskip-0.45in\hskip-0.5in\setlength{\unitlength}{1in}
                     \begin{picture}(8.5,6.7)(0,0)
                        \thicklines
                        \put(0,0){\line(0,1){6.7}}
                        \put(0.03,0.03){\line(0,1){6.64}}
                        \put(8.5,0){\line(0,1){6.7}}
                        \put(8.47,0.03){\line(0,1){6.64}}
                        \put(0,6.7){\line(1,0){8.5}}
                        \put(0.03,6.67){\line(1,0){8.44}}
                        \put(0,0){\line(1,0){7.7}}
                        \put(8.3,0){\line(1,0){0.2}}
                        \put(0.03,0.03){\line(1,0){7.67}}
                        \put(8.3,0.03){\line(1,0){0.17}}
                        \put(0.1,6.5){\makebox[8.3in]{\normalsize\rm
                                        \lhd\hfill\chd\hfill\rhd}}
                        \put(0.1,0.1){\makebox[7.9in]{\normalsize\rm
                                        \lft\hfill\cft\hfill\rft}}
% Following line changed by RIG from UMD to LUC
          \put(7.5,0.0){\raisebox{-1mm}{\makebox[1.0in][c]{\large LUC}}}
                     \end{picture}}}
\def\@oddfoot{}
\let\@evenhead\@oddhead\let\@evenfoot\@oddfoot
\def\sectionmark##1{}\def\subsectionmark##1{}}
\def\cm{\vskip1cm}
%\def\slide#1{\vfill\newpage\vskip10cm{\Huge\centering{\bf{#1}}\\[0mm]}\LARGE\vfill}
% Above line changed by RIG to:
\def\slide#1{\vfill\newpage\vskip10cm{\Huge\centering{\bf{#1}}\\[0mm]}\huge\bf\vfill}
%\def\slidetop#1{\vfill\newpage{\LARGE\centering{\bf{#1}}\\\Large}
\def\lslide#1{\vfill\newpage{\LARGE\raggedright\bf{#1}\\[0mm]}\Large\vfill}
\def\head#1{{\Huge\centering\bf {#1}\\[4mm]}}
\def\lhead#1{{\Huge\raggedright\bf {#1}\\[4mm]}}


\lheader{}
\cheader{}
\rheader{}
\lfooter{}
\cfooter{}
\rfooter{}
\pagestyle{slide}

\normalsize\Large



