
% ----------------------------------------------------------------------
% This file contains a prelude designed for using latex to generate 
% landscape slides with the CLI logo border.
%
% Bevier & Young April, 1994
% ----------------------------------------------------------------------

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

\font\hdfont=cmr10 scaled 3200
\font\hdbldfont=cmbx10 scaled 3200
\font\bdfont=cmr10 scaled 2000

% \renewcommand{\bf}{\bdfont}

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

% ----------------------------------------------------------------------
% \SlideHeading{Text}
% ----------------------------------------------------------------------
\newcommand{\SlideHeading}[1]{\newpage\huge\begin{center}{\hdbldfont#1}\end{center}\vspace{0.5cm}}

% This will start a new slide without a slideheader.
\newcommand{\NewSlide}{\newpage\huge\vspace{0.5cm}}

% This gives a heading without a new slide.
\newcommand{\NewHeading}[1]{\vspace{0.5cm}\huge\begin{center}{\hdbldfont#1}\end{center}\vspace{0.5cm}}

% ----------------------------------------------------------------------
% \PrSlideHeading{Text}
% ----------------------------------------------------------------------
% This is a hack to put a PROPRIETARY warning on slides.  It replaces 
% \SlideHeading with \PrSlideHeading the argument must be set with the
% \ProprietaryString{Text}
\newcommand{\ProprietaryString}[1]{\setbox102=\hbox{\LARGE#1}}
\newcommand{\@ProprietaryString}{\copy102}

\newcommand{\PrSlideHeading}[1]%
{\newpage\huge\begin{center}{\vspace*{-.6in}{\hbox to 8.25in {\hfil\@ProprietaryString\hfil}}\par\vspace{0.3in}\hdbldfont#1}\end{center}\vspace{0.5cm}}

% This will start a new slide without a slideheader.
%\newcommand{\NewSlide}{\newpage\huge\vspace{0.5cm}}

\newcommand{\PrNewSlide}%
{\newpage\huge\begin{center}{\vspace*{-0.6in}{\hbox to 8.25in {\hfil\@ProprietaryString\hfil}}\par\vspace{-0.2in}\quad}\end{center}\vspace{0.5cm}}

% ----------------------------------------------------------------------
% \DroppedSlideHeading{Text}{dimension}
% ----------------------------------------------------------------------

% This one is just like \SlideHeading except that it takes a second
% argument telling how far down to skip before placing the heading.

\newcommand{\DroppedSlideHeading}[2]{\newpage\huge\vspace*{#2}\begin{center}{\hdbldfont#1}\end{center}\vspace{0.5cm}}

% ------------------------------------------------------------
% Picture Environments
% ------------------------------------------------------------

% The argument to \Picture is a sequence of latex picture commands.
% \Grid takes the same argument, displaying a grid on the slide
% with labels giving the units of measurement.

\newcommand{\Picture}[1]
{\begin{picture}(560,350)(-16,0)#1\end{picture}}

\newcommand{\Grid}[1]
{\begin{picture}(560,350)(-16,0)#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}
\end{picture}}


%----------------------------------------------------------------------
% The following is the main feature of the style file. The CLI border
% is brought in as a page footing.
%
% 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 SlideSetTitle info included.

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

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

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

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

% This is used to force the EventString to occupy as much
% space as the copyright stuff so the SlideSetTitle is centered.
\newcommand{\rbx}[1]{\hbox to 2.5in{\hfil\normalsize #1}}

\newcommand{\nocopyright}{\hbox to 2.5in{\hfil\quad}}

\pagestyle{myheadings}
\OddPageFooting{\widecliborder\nocopyright%
\hfil\NormalsizeBox{\@SlideSetTitle:\ \thepage}%
\hfil\rbx{\@eventstring}}

\EvenPageFooting{\widecliborder\nocopyright%
\hfil\NormalsizeBox{\@SlideSetTitle:\ \thepage}%
\hfil\rbx{\@eventstring}}






