%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Latex Slides Class for Technical Talks %% David J. Stracuzzi %% September 28, 2006 %% %% %% Usage and commands: %% %% * Use \documentclass{techtalk} to load the both this class and the standard %% LaTeX2e slides class. %% %% * Set the author, title and date with \author, \title and \date as usual. %% %% * Set the author's institution with %% \affiliation{}{} %% %% * \emailaddress{} sets the author's email address %% %% * \webaddress{} sets the author's web page address %% %% * Use \maketitle to create the title slide as usual. %% %% * \slidebkgdcolor{} sets the background color of each slide %% (default white) %% %% * \slidetextcolor{} sets the text color of each slide %% (default black) %% %% * \slidetitlecolor{} sets the title color of each slide %% (default blue) %% %% * To create individual slides, use the \makeslide[4] command. %% \makeslide[] %% {} %% {} %% {} %% Example: %% \makeslide[Introduction]{0.25in}{ %% \begin{itemize} \itemsep 0in %% \item Slide content goes here %% \item More content %% \end{itemize} %% \vspace{-2in} <-- Add this to squeeze a little extra at bottom %% }{ %% \begin{itemize} %% \item Note to self: this slide is BORING! %% \end{itemize} %% } %% %% * The \onlynotes and \onlyslides commands work the same as in the standard %% LaTeX slides class. %% %% * Use -t landscape option on dvips to properly format slides %% > dvips -t letter -t landscape -o slides.ps slides.dvi %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} \ProvidesClass{techtalk} [2006/10/01 Technical Talk extension to slides class] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{letter}} \ProcessOptions\relax \LoadClass[landscape]{slides} \RequirePackage{color} \RequirePackage{graphicx} \RequirePackage{ifthen} \pagestyle{plain} \setlength{\oddsidemargin}{-0.25in} \setlength{\topmargin}{-1in} \setlength{\textheight}{7in} \setlength{\textwidth}{9.5in} \newcounter{techtalkpage} \setcounter{techtalkpage}{1} \newcommand{\techtalkdept}{} \newcommand{\techtalkinst}{} \newcommand{\techtalkemail}{} \newcommand{\techtalkweb}{} \newcommand{\techtalkbkgdcolor}{white} \newcommand{\techtalktextcolor}{black} \newcommand{\techtalktitlecolor}{blue} \newcommand{\affiliation}[2] { \renewcommand{\techtalkdept}{#1} \renewcommand{\techtalkinst}{#2} } \newcommand{\emailaddress}[1]{\renewcommand{\techtalkemail}{#1}} \newcommand{\webaddress}[1]{\renewcommand{\techtalkweb}{#1}} \newcommand{\slidebkgdcolor}[1]{\renewcommand{\techtalkbkgdcolor}{#1}} \newcommand{\slidetextcolor}[1]{\renewcommand{\techtalktextcolor}{#1}} \newcommand{\slidetitlecolor}[1]{\renewcommand{\techtalktitlecolor}{#1}} \newcommand{\pagefoot} { \begin{picture}(677, 10)(0, 50) \put (0, 30){\line(1,0){680}} \put (665, 15){\scalebox{0.75}{\thetechtalkpage}} \put (0, 20){\scalebox{0.5}{\@title}} \put (0, 10){\scalebox{0.5}{\@author}} \put (0, 0){\scalebox{0.5}{\techtalkdept}} \put (0,-10){\scalebox{0.5}{\techtalkinst}} \end{picture} } \newcommand{\makeslide}[4][_EMPTY_] { \begin{slide} \thispagestyle{empty} \pagecolor{\techtalkbkgdcolor} \color{\techtalktextcolor} \centering \ifthenelse{\equal{#1}{_EMPTY_}} {} {\begin{tabular}{p{9.2in}} \LARGE \textcolor{\techtalktitlecolor} {\textbf{#1}} \\ \hline \normalsize \end{tabular} } \begin{minipage}[c]{9.25in} \vspace*{#2} #3 \end{minipage} \vfill %\pagefoot \vspace{10pt} \end{slide} \addtocounter{techtalkpage}{1} \begin{note} \pagecolor{\techtalkbkgdcolor} \color{\techtalktextcolor} #4 \end{note} } \renewcommand{\maketitle} { \begin{titlepage} \pagecolor{\techtalkbkgdcolor} \color{\techtalktextcolor} \centering \LARGE \textcolor{\techtalktitlecolor}{\textbf{\@title}} \\[3ex] \large \@author \\[1.5ex] \normalsize \techtalkemail \\ \techtalkweb \\[3ex] \techtalkdept \\ \techtalkinst \\[3ex] \@date \end{titlepage} } \endinput