
% ----------------------------------------------------------------------
% This file contains a prelude designed for using latex to generate 
% slides.
%
% NOTE: 
% THIS FILE IS INCOMPATIBLE WITH /local/src/vmach/latex/footings.sty
%
%     Sample use of this sty file:
%
% ----------------------------------------------------------------------

% Define Text height and width
% Warning: If changes are made - make identical changes in definition
% of Slide, PictureSlide and GridSlide commands below.

\textheight=432bp % 6 inches
\textwidth=594bp % 8.25 inches
\oddsidemargin=27bp % leftmargin=rightmargin=1.375in
\topmargin=-18bp

%\newfont{hdfont}{cmr32}
%\newfont{bdyfont}{cmr20}
\font\hdfont=cmr10 scaled 3200
\font\hdbldfont=cmbx10 scaled 3200
\font\bdfont=cmr10 scaled 2000

\renewcommand{\bf}{\bdfont}

\newcommand{\SmallBox}[1]{\mbox{\small #1\/}}
\newcommand{\NormalsizeBox}[1]{\mbox{\normalsize #1\/}}
\newcommand{\LargeBox}[1]{\mbox{\Large #1}}
\def\widecliborder{\special{psfile=/usr/cli/slides/cli-review-4-94/cli-wide-border.ps
	             hoffset=-85 voffset=-55 hscale=100 vscale=100}}

% ----------------------------------------------------------------------
% \Heading{Text}
% Displays text in centered environment, bold-faced.
% ----------------------------------------------------------------------
\newcommand{\Heading}[1]{\begin{center}{\hdbldfont#1}\end{center}\vspace{0.5cm}}
%\newcommand{\Heading}[1]{\begin{center}{\bf#1}\end{center}\vspace{0.5cm}}

% ----------------------------------------------------------------------
% \Slide{title}{text}
% Display a single-page slide with a border
% NOTE: sensitive to textheight & textwidth
% ----------------------------------------------------------------------

\newcommand{\Slide}[2]{
\setbox1=\hbox to594bp{
\hfil
\begin{minipage}{0.96\textwidth}
\Heading{#1}
\huge
#2
\end{minipage}
\hfil}
\setbox2=\vbox to432bp{\vspace{12bp}\box1\vfil}
\newpage
\begin{center}
\begin{picture}(594,432)
\put(0,0){\box2}
%\put(0,0){\framebox(594,432){\box2}}
\end{picture}
\end{center}
\normalsize
}

% ----------------------------------------------------------------------
% \PictureSlide{title}{text}
% text is a set if latex picture commands
%
% \GridSlide{title}{text}
% A PictureSlide that displays a grid around the edge. Useful for
% constructing a picture.
% ----------------------------------------------------------------------

\newcommand{\PictureSlide}[2]
{\Slide{#1}{\setlength{\unitlength}{1bp}
\thicklines\huge
\begin{picture}(560,350)(0,0)
#2
\end{picture}}}

\newcommand{\GridSlide}[2]
{\PictureSlide{#1}{
%Grid
\put(0,0){\framebox(560,350)}
\multiput(35,0)(35,0){15}{\line(0,1){10}}
\multiput(0,35)(0,35){9}{\line(1,0){10}}
\put(280,160){\line(0,1){30}}
\put(260,175){\line(1,0){40}}
\normalsize
\put(72,2){70}
\put(142,2){140}
\put(212,2){210}
\put(282,2){280}
\put(352,2){350}
\put(422,2){420}
\put(492,2){490}
\put(2,72){70}
\put(2,142){140}
\put(2,212){210}
\put(2,282){280}
\huge
#2}}

% ----------------------------------------------------------------------
% I've grabbed this form from latex's article.sty to redefine page footers.
% Using the forms
%  \pagestyle{myheadings}
%  \PageFooting{\hfil FOO\hfil}
% will create a page footing with FOO centered.
% I've defined the commands \OddPageFooting and \EvenPageFooting, but haven't
% tested them yet.
% Bevier, 12/4/91, modified by Young, 3/28/94
% ----------------------------------------------------------------------

\if@twoside \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{\@oddpagefooting}\def\@evenfoot{\@evenpagefooting}\def\@evenhead{}\def\@oddhead{}\def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
{\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
\else \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{\@oddpagefooting}\def\@evenfoot{\@evenpagefooting}\def\@oddhead{}\def\sectionmark##1{\markright {\uppercase{\ifnum \c@secnumdepth
>\z@
 \thesection\hskip 1em\relax \fi ##1}}}}
\fi
\def\ps@myheadings{\let\@mkboth\@gobbletwo
\def\@oddhead{}\def\@oddfoot{\@oddpagefooting}\def\@evenhead{}\def\@evenfoot{\@evenpagefooting}\def\sectionmark##1{}\def\subsectionmark##1{}}

\def\OddPageFooting#1{\def\@oddpagefooting{#1}}
\def\@oddpagefooting{}
\def\EvenPageFooting#1{\def\@evenpagefooting{#1}}
\def\@evenpagefooting{}
\def\PageFooting#1{\def\@oddpagefooting{#1}}

% This is some new stuff for the .sty file.  It gives a better
% looking footline with the SlideTitle info included.

\newcommand{\SlideTitle}[1]{\setbox100=\hbox{#1}}
\newcommand{\@SlideTitle}{\copy100}

\newcommand{\EventString}[1]{\setbox101=\hbox{#1}}
\newcommand{\@eventstring}{\copy101}

\pagestyle{myheadings}
\OddPageFooting{\NormalsizeBox{\widecliborder Copyright \copyright\ \number\year\ Computational Logic, Inc.}\hfil\NormalsizeBox{\@SlideTitle:\thepage}\hfil\NormalsizeBox{\@eventstring\ \today}}
\EvenPageFooting{\NormalsizeBox{\widecliborder Copyright \copyright\ \number\year\ Computational Logic, Inc.}\hfil\NormalsizeBox{\@SlideTitle:\thepage}\hfil\NormalsizeBox{\@eventstring\ \today}}






