%% %% slide.sty Cengiz's Slide Style %% Copyright (c) 1991 University of Maryland %% All Rights Reserved. %% %% Permission to use, copy, modify, distribute, and sell this software and its %% documentation for any purpose is hereby granted without fee, provided that %% the above copyright notice appear in all copies and that both that %% copyright notice and this permission notice appear in supporting %% documentation, and that the name of U.M. not be used in advertising or %% publicity pertaining to distribution of the software without specific, %% written prior permission. U.M. makes no representations about the %% suitability of this software for any purpose. It is provided "as is" %% without express or implied warranty. %% %% U.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL %% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL U.M. %% BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES %% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION %% OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN %% CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. %% %% Author: Cengiz Alaettinoglu %% Systems Design and Analysis Group %% Department of Computer Science %% University of Maryland at College Park %% \typeout{Slide Macros June 11 1991 by Cengiz Alaettinoglu} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% For documentation see slide:eg.tex \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}}}} \def\cfooter#1{\global\gdef\cft{{#1}}} \def\author#1{\global\gdef\lft{{\em #1\ \ \thepage}}} \def\slide#1{\newpage{\Huge\centering\bf {#1}\\[4mm]\vfill}\LARGE} \def\lslide#1{\newpage{\Huge\raggedright\bf{#1}\\[4mm]\vfill}\LARGE} \def\head#1{{\Huge\centering\bf {#1}\\[4mm]}\vfill} \def\lhead#1{{\Huge\raggedright\bf {#1}\\[4mm]}\vfill} \def\cm{\vskip1cm} \long\def\centerslide#1#2{{\hfill\parbox{#1}{#2}\hfill\hfill}} \let\centersld=\centerslide %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Following are the slide styles \def\decl(#1,#2){ \expandafter\newdimen\csname DIM@#1\endcsname \global\csname DIM@#1\endcsname #2 \expandafter\def\csname #1\endcsname{ \expandafter\number\csname DIM@#1\endcsname} } \decl(paperh,11in)\decl(paperw,8.5in) \decl(s@boy,9.5in)\decl(s@en,7.5in) \def\portrait#1#2{ \DIM@paperh 11in \DIM@paperw 8.5in \@setslidesize{#1}{#2} } \def\landscape#1#2{ \DIM@paperh 8.5in \DIM@paperw 11in \@setslidesize{#1}{#2} } \decl(boy,9.5in)\decl(en,7.5in) \decl(boy@b,0in)\decl(boy@c,0in)\decl(en@b,0in)\decl(en@c,0in) \decl(zero@b,0.06in)\decl(zero@c,0.24in) \decl(boy@d,0in)\decl(en@d,0in)\decl(en@e,0in) \decl(zero@d,0.13in)\decl(zero@e,0.1in)\decl(zero@f,0.065in) %%%%%%%%%%%%%%%%%%%% Set Text Sizes %%%%%%%%%%%%%%%%%%%% \def\@textbottom{\vfill\vfill\vfill\vfill\vfill\vfill} \def\@texttop{\vfill\vfill\vfill} \setlength{\textheight}{8.3in} \setlength{\textwidth}{6.5in} \setlength{\topmargin}{-0.5in} \setlength{\oddsidemargin}{0in} \setlength{\evensidemargin}{0in} \setlength{\topskip}{0in} \setlength{\headheight}{0in} \setlength{\headsep}{0in} \setlength{\footheight}{0in} \setlength{\footskip}{0in} \setlength{\marginparwidth}{0in} \setlength{\marginparsep}{0in} \setlength{\parskip}{4mm} \setlength{\parindent}{0mm} \renewcommand{\baselinestretch}{1.5} \def\shiftframe{\vskip-0.45in\hskip-0.56in} \def\setslidetextsize#1#2{ \textheight #1 \advance\textheight by -0.7in \textwidth #2 \advance\textwidth by -1in \topmargin -#1 \advance\topmargin by \DIM@paperh \divide\topmargin by 2 \advance\topmargin by -0.78in % -1 + 0.45/2 \oddsidemargin -#2 \advance\oddsidemargin by \DIM@paperw \divide\oddsidemargin by 2 \advance\oddsidemargin by -0.5in % -1 + 0.5 \evensidemargin \oddsidemargin \hsize \textwidth \vsize \textheight } %%%%%%%%%%%%%%%%%%%% Draw a General Double Frame %%%%%%%%%%%%%%%%%%%% %% %% This draws a general double frame, depending on the diemnsions %% defined by \@setslidesize, it appears as a different frame %% (double, single, etc.). %% \def\ps@dbframe{ \let\@mkboth\markboth \def\@oddhead{ \normalsize \vbox{\shiftframe \setlength{\unitlength}{1sp} \begin{picture}(\s@en,\s@boy)(0,0) \thicklines \put(0,0){\line(0,1){\boy}} \put(\en,0){\line(0,1){\boy}} \put(0,0){\line(1,0){\en}} \put(0,\s@boy){\line(1,0){\en}} \put(\zero@b,\zero@c){\line(0,1){\boy@b}} \put(\en@c,\zero@c){\line(0,1){\boy@b}} \put(\zero@b,\zero@c){\line(1,0){\en@b}} \put(\zero@b,\boy@c){\line(1,0){\en@b}} \put(\zero@d,\boy@d){\makebox[\DIM@en@d]{ \normalsize\rm \lhd\hfill\chd\hfill\rhd}} \put(\zero@e,\zero@f){\makebox[\DIM@en@e]{ \normalsize\rm \lft\hfill\cft\hfill\rft}} \end{picture} } } \def\@oddfoot{} \let\@evenhead\@oddhead \let\@evenfoot\@oddfoot \def\sectionmark##1{} \def\subsectionmark##1{} } %%%%%%%%%%%%%%%%%%%% Double frame with bottom %%%%%%%%%%%%%%%%%%%% \def\set@dbframe@size#1#2{ \DIM@s@boy #1 \DIM@s@en #2 \DIM@boy \DIM@s@boy \DIM@en \DIM@s@en \DIM@boy@b \DIM@s@boy \advance\DIM@boy@b by -0.30in \DIM@boy@c \DIM@s@boy \advance\DIM@boy@c by -0.06in \DIM@en@b \DIM@s@en \advance\DIM@en@b by -0.12in \DIM@en@c \DIM@s@en \advance\DIM@en@c by -0.06in \DIM@boy@d \DIM@s@boy \advance\DIM@boy@d by -0.23in \DIM@en@d \DIM@s@en \advance\DIM@en@d by -0.15in \DIM@en@e \DIM@s@en \advance\DIM@en@e by -0.15in \DIM@zero@b 0.06in \DIM@zero@c 0.24in \DIM@zero@d 0.05in \DIM@zero@e 0.05in \DIM@zero@f 0.065in \setslidetextsize{#1}{#2} } %%%%%%%%%%%%%%%%%%%% Double frame %%%%%%%%%%%%%%%%%%%% \def\set@dframe@size#1#2{ \DIM@s@boy #1 \DIM@s@en #2 \DIM@boy \DIM@s@boy \DIM@en \DIM@s@en \DIM@boy@b \DIM@s@boy \advance\DIM@boy@b by -0.08in \DIM@boy@c \DIM@s@boy \advance\DIM@boy@c by -0.04in \DIM@en@b \DIM@s@en \advance\DIM@en@b by -0.08in \DIM@en@c \DIM@s@en \advance\DIM@en@c by -0.04in \DIM@boy@d \DIM@s@boy \advance\DIM@boy@d by -0.20in \DIM@en@d \DIM@s@en \advance\DIM@en@d by -0.10in \DIM@en@e \DIM@s@en \advance\DIM@en@e by -0.10in \DIM@zero@b 0.04in \DIM@zero@c 0.04in \DIM@zero@d 0.03in \DIM@zero@e 0.03in \DIM@zero@f 0.09in \setslidetextsize{#1}{#2} } \let\ps@dframe=\ps@dbframe %%%%%%%%%%%%%%%%%%%% Single frame %%%%%%%%%%%%%%%%%%%% \def\set@sframe@size#1#2{ \DIM@s@boy #1 \DIM@s@en #2 \DIM@boy \DIM@s@boy \DIM@en \DIM@s@en \DIM@boy@b \DIM@s@boy \DIM@boy@c \DIM@s@boy \DIM@en@b \DIM@s@en \DIM@en@c \DIM@s@en \DIM@boy@d \DIM@s@boy \advance\DIM@boy@d by -0.17in \DIM@en@d \DIM@s@en \advance\DIM@en@d by -0.05in \DIM@en@e \DIM@s@en \advance\DIM@en@e by -0.05in \DIM@zero@b 0in \DIM@zero@c 0in \DIM@zero@d 0.005in \DIM@zero@e 0.005in \DIM@zero@f 0.06in \setslidetextsize{#1}{#2} } \let\ps@sframe=\ps@dbframe %%%%%%%%%%%%%%%%%%%% Lines %%%%%%%%%%%%%%%%%%%% \def\set@slines@size#1#2{ \DIM@s@boy #1 \DIM@s@en #2 \DIM@boy 0in \DIM@en \DIM@s@en \DIM@boy@b 0in \DIM@boy@c 0in \DIM@en@b 0in \DIM@en@c 0in \DIM@boy@d \DIM@s@boy \advance\DIM@boy@d by -0.17in \DIM@en@d \DIM@s@en \DIM@en@e \DIM@s@en \DIM@zero@b 0in \DIM@zero@c 0in \DIM@zero@d 0in \DIM@zero@e 0in \DIM@zero@f 0.06in \setslidetextsize{#1}{#2} } \let\ps@slines=\ps@dbframe %%%%%%%%%%%%%%%%%%%% Empty, Plain %%%%%%%%%%%%%%%%%%%% \def\set@plain@size#1#2{ \DIM@s@boy #1 \DIM@s@en #2 \DIM@boy 0in \DIM@en 0in \DIM@boy@b 0in \DIM@boy@c 0in \DIM@en@b 0in \DIM@en@c 0in \DIM@boy@d \DIM@s@boy \DIM@en@d \DIM@s@en \DIM@en@e \DIM@s@en \DIM@zero@b 0in \DIM@zero@c 0in \DIM@zero@d 0in \DIM@zero@e 0in \DIM@zero@f 0in \setslidetextsize{#1}{#2} } \let\ps@plain=\ps@dbframe \let\set@empty@size=\set@dbframe@size %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\slidestyle#1{ \pagestyle{#1} \expandafter\let\expandafter\@setslidesize\csname set@#1@size\endcsname \@setslidesize{\DIM@s@boy}{\DIM@s@en} } %%%%%%%%%%%%%%%%%%%% Figure and Table Environments %%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%% Initialize %%%%%%%%%%%%%%%%%%%% \slidestyle{dframe} \LARGE \lheader{} \cheader{} \rheader{\thepage} \lfooter{University of Texas at El Paso} \cfooter{} \rfooter{Knowledge Representation Group}