%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % ST 810A -- INTRODUCTION TO SEMINAR % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Slides 1-up -- for projecting % % For one-slide per page, uncomment the following: % \documentclass{seminar} \usepackage{psfig,shadow,epsf,sem-a4,fancybox,pstricks,amsthm,amssymb,amsmath} \usepackage{graphicx,psfrag,pst-node,subfigure} \usepackage{fancyheadings} \usepackage{semlayer,semcolor} \slideframe{none} \input{seminar.bug} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Slides 2-up -- For handouts % % The following will print slides 2-up in landscape mode (side % by side rotated on the page. To get 2 slides per page, uncomment % the following: % % \documentclass[article,portrait]{seminar} % \usepackage{psfig,shadow,epsf,sem-a4,fancybox,pstricks,amsthm,amssymb,amsmath} % \usepackage{graphicx,psfrag,pst-node,subfigure} % \pagestyle{empty} % \slideframe{none} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Slides 4-up -- For handouts % % For slides 4 per page uncomment the following: % % \documentclass[article,portrait]{seminar} % \usepackage{psfig,shadow,epsf,sem-a4,fancybox,pstricks,amsthm,amssymb,amsmath} % \usepackage{graphicx,psfrag,pst-node,subfigure} % \twoup[1] % \pagestyle{empty} % \slideframe{none} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Alternative way to make handouts: process the slides 1-up and % then use psnup -- to use on unity: % % unity% add psutils % unity% psnup -nup 6 -r seminar.ps seminar_6up.ps % % if the 1-up slides are in seminar.ps, this will make a postscript % file seminar_6up.ps that diplays the slides 6 per page. Can change % the number and orientation -- type % % unity% man psnup % % to get the man pages that give further options. % % Note: if you use fancyheadings to make headers and footers, this % is the preferred way to make handouts so that the headers and footers % print out correctly with each slide in your handout! % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % The following are some newcommands I have defined for making % boxes for headings, colors, etc. % % Makes a box around stuff \def\boxit#1{\vbox{\hrule\hbox{\vrule\kern3pt \vbox{\kern5pt#1\kern5pt}\kern3pt\vrule}\hrule}} \newcommand{\myheading}[1]{\begin{center}\shabox{ \bf #1} \end{center}} % Command so bullets aren't colored \newcommand{\citem}{\item $\mbox{}$} % Command to make colored bullets (red) \newcommand{\ritem}{\item {\red $\mbox{}$}} % defining colors: % \newgray{vlgray}{0.9} \newrgbcolor{lblue}{0.8 0.92 0.95} \newrgbcolor{lred}{1 0.8 0.8} \newrgbcolor{lyellow}{1 1 0.6} \newrgbcolor{orange}{1 0.7 0.2} \newrgbcolor{lgreen}{0.87 0.95 0.8} %\newrgbcolor{dgreen}{0.37 0.43 0.37} \newrgbcolor{dgreen}{0.36 0.75 0.41} \newrgbcolor{violet}{0.6 0.0 0.4} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % To make cumulative overlays: % \makeatletter \def\pst@initoverlay#1{% \pst@Verb{% /BeginOL {dup (all) eq exch TheOL le or {IfVisible not {Visible /IfVisible true def} if} {IfVisible {Invisible /IfVisible false def} if} ifelse} def \tx@InitOL /TheOL (#1) def}} \makeatother % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This sets the height of the slide and can be changed % \setlength{\slideheight}{6.6in} % % This makes each slide start at the top rather than being centered % \centerslidesfalse % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % To turn overlays on and off (for making handouts, want them off) %\overlaystrue %\overlaysfalse \begin{document} %\rotateheaderstrue % To use fancyheadings.sty to make headers and footers for each slide, % uncomment following lines \pagestyle{fancy} \setlength{\headrulewidth}{0.15pt} \setlength{\footrulewidth}{.15pt} \rhead{\includegraphics[height=0.3cm]{newlogo.ps}} \lhead{\scriptsize \sl ST 810A, M. Davidian, Spring 2005} \lfoot{\scriptsize \sl Presentations using {\tt seminar.sty}} \cfoot{ } \rfoot{\scriptsize \rm \theslide} \begin{slide} \myheading{{\blue PRESENTATIONS USING {\tt seminar.sty}}} \begin{itemize} \ritem {\bf What is {\tt seminar.sty}?} \ritem {\bf The basics} \ritem {\bf Importing graphics} \ritem {\bf Color and other fancy stuff} \ritem {\bf Pointers for making ``good'' slides} \ritem {\bf Laptop presentations} \ritem {\bf Where to learn more} \ritem {\bf Competing packages} \end{itemize} \end{slide} \begin{slide} \myheading{{\blue WHAT IS {\tt seminar.sty}?}} {\bf \red Background:} {\tt seminar.sty} is a \LaTeX\, {\sl \blue document class} for typesetting slides \begin{itemize} \ritem Created and freely distributed by Timothy Van Zandt at Princeton University \ritem Has been around for over 10 years \ritem One of {\sl \blue many} resources for creating presentations using \LaTeX\, and still one of the most {\sl \blue popular} \end{itemize} {\bf \red Here:} A {\sl \blue very brief} introduction \begin{itemize} \ritem See the User's Guide and examples on the class web page for much more\ldots \end{itemize} \end{slide} \begin{slide} \myheading{{\blue THE BASICS}} {\bf \red Usage:} For full-sized slides \begin{verbatim} \documentclass{seminar} \end{verbatim} \begin{itemize} \ritem Options for making {\sl \blue handouts} \ritem {\sl \blue Special commands} (some of these coming up\ldots) \ritem {\sl \blue Almost anything} one would do in an ordinary \LaTeX\, document can be done in {\tt seminar} \end{itemize} \end{slide} \begin{slide} {\bf \red Creating a single slide:} {\sl \blue Easy!} \begin{verbatim} \begin{slide} stuff on slide \end{slide} \end{verbatim} \begin{itemize} \ritem Creates a slide in {\sl \blue landscape} format \ritem Can also create slides in {\sl \blue portrait} format; may be useful for presentations using {\sl \blue transparencies} (which no one uses anymore!) but {\sl \blue not} for presentations using {\sl \blue a laptop} \end{itemize} \vspace{-0.1in} \begin{verbatim} \begin{slide*} stuff on slide \end{slide*} \end{verbatim} \end{slide} \begin{slide} {\bf \red Content of slides:} May be {\sl \blue anything} \begin{itemize} \ritem {\sl \blue Text} \ritem {\sl \blue Math} (mathematical expressions, displayed equations, etc.) \ritem {\sl \blue Tables and figures} (imported graphics) \ritem {\sl \blue Pictures} \end{itemize} {\bf \red Size of slide content:} Scaled to be {\sl \blue larger} than in a regular document \begin{itemize} \ritem \ldots So there is a {\sl \blue limit} to what will fit on a slide (more later) \end{itemize} \end{slide} \begin{slide} {\bf \red Use of packages:} Most \LaTeX\, packages may be used with {\tt seminar.sty} \begin{itemize} \ritem Packages for {\sl \blue importing graphics} \ritem Here, I have used {\tt fancyheadings.sty} to create a ``{\sl \blue header}'' and ``{\sl \blue footer}'' for each slide (these could in fact be changed during the presentation; e.g., display the title of the current section); see slide~\pageref{p:fancy} \ritem In addition, {\tt seminar} has its {\sl \blue own commands} \end{itemize} \end{slide} \begin{slide} {\bf \red Special commands:} Like any \LaTeX\, package, {\tt seminar} defines a number of commands \begin{itemize} \ritem See the {\sl \blue documentation} for a complete description (slide~\pageref{p:more}) \end{itemize} {\bf \red Examples:} \begin{itemize} \ritem {\sl \blue Vertical positioning} -- default is for material on each slide to be {\sl \blue vertically centered}; may be changed to be {\sl \blue flush to the top} using \begin{verbatim} \centerslidesfalse \end{verbatim} and back to centered again with \verb+\centerslidestrue+ \ritem {\sl \blue Frames} -- default is for slides to have a {\sl \blue frame} (the {\tt plain} style); may be changed to with \begin{verbatim} \slideframe{style} \end{verbatim} where valid styles are {\tt plain} and {\tt none}; the {\tt fancybox} package offers {\sl \blue further options} \end{itemize} \end{slide} \begin{slide} {\bf \red Examples, continued:} \begin{itemize} \ritem Use \verb+\slideframe{none}+ for {\sl \blue laptop presentations} (coming up) \ritem {\sl \blue Size} -- Dimensions are set using \verb+\slideheight+ and \verb+\slidewidth+ (defaults are 8.5 in wide and 6.3 in high), e.g., these slides use \begin{verbatim} \setlength{\slideheight}{6.6in} \end{verbatim} \end{itemize} \end{slide} \begin{slide} {\bf \red Preparing handouts:} Printed slides two-to-a-page (``{\sl \blue two-up}'') or four-to-a-page (``{\sl \blue four-up}'') \begin{itemize} \ritem {\sl \blue Printing} ``{\sl \blue two-up}'' \begin{verbatim} \documentclass[article,portrait]{seminar} \end{verbatim} Slides come out two-to-a-page in {\sl \blue landscape format} \ritem {\sl \blue Printing} ``{\sl \blue four-up}'' \begin{verbatim} \documentclass[article,portrait]{seminar} \twoup[1] \end{verbatim} \ritem See the {\sl \blue template file} {\tt seminartemplate.tex} and examples on the class web page \end{itemize} \end{slide} \begin{slide} \myheading{{\blue IMPORTING GRAPHICS}} {\bf \red Several options:} Can use {\tt psfig}, {\tt epsf}, {\tt graphicx}, etc, as in an usual \LaTeX\, document \begin{itemize} \ritem {\sl \blue For example} -- using {\tt graphicx} \begin{verbatim} \begin{slide} {\bf \red Dental trajectories for 27 children:} \begin{figure} \begin{center} \includegraphics[height=2.5in]{dental.ps} \end{center} \end{figure} \end{slide} \end{verbatim} \end{itemize} \end{slide} \begin{slide} {\bf \red Dental trajectories for 27 children:} \begin{figure} \begin{center} \includegraphics[height=2.5in]{dental.ps} \end{center} \end{figure} \end{slide} \begin{slide} \myheading{{\blue COLOR AND OTHER FANCY STUFF}} {\bf \red Colors:} I use the {\tt pstricks} package to define colors \begin{itemize} \ritem Some colors (including {\red red}, {\green green}. {\blue blue}, {\cyan cyan}, {\magenta magenta}, and {\yellow yellow}) are {\sl \blue predefined} \ritem Others can be {\sl \blue defined} \ritem See the {\sl \blue template} file and the {\tt pstricks} documentation (link on the class web page) \end{itemize} \end{slide} \begin{slide} {\bf \red Making headings:} I use the following \verb+\newcommand+ that exploits the {\tt shadow} package \begin{small} \hspace*{-0.25in} \verb+\newcommand{\myheading}[1]{\begin{center}\shabox{ \bf #1} \end{center}}+ \end{small} and invoke it as \begin{verbatim} \myheading{{\blue COLOR AND OTHER FANCY STUFF}} \end{verbatim} {\bf \red Making bullets:} I make {\sl \blue colored bullets} with \begin{verbatim} \newcommand{\ritem}{\item {\red $\mbox{}$}} \begin{itemize} \ritem This item will have a red bullet \end{itemize} \end{verbatim} \end{slide} \begin{slide} {\bf \red Other neat stuff:} Drawing arrows to stuff using the {\tt pst-node} package \begin{footnotesize} \hspace*{-0.25in} \verb&$$\rnode{lt}{\epsilon_j}=\rnode{ft}{\epsilon_{1j}}+\rnode{st}{\epsilon_{2j}}$$& \begin{verbatim} \hfill\rnode{tl}{Overall deviation} \hfill\rnode{tf}{Measurement Error} \hfill\rnode{ts}{``Fluctuation''} \hspace*{\fill} \nccurve[linecolor=blue,angleA=90,angleB=270]{->}{tl}{lt} \nccurve[linecolor=blue,angleA=90,angleB=270]{->}{tf}{ft} \nccurve[linecolor=blue,angleA=90,angleB=270]{->}{ts}{st} \end{verbatim} \end{footnotesize} $$\rnode{lt}{\epsilon_j} = \rnode{ft}{\epsilon_{1j}} + \rnode{st}{\epsilon_{2j}}$$ \hfill\rnode{tl}{Overall deviation} \hfill\rnode{tf}{Measurement Error} \hfill\rnode{ts}{``Fluctuation''} \hspace*{\fill} \nccurve[linecolor=blue,angleA=90,angleB=270]{->}{tl}{lt} \nccurve[linecolor=blue,angleA=90,angleB=270]{->}{tf}{ft} \nccurve[linecolor=blue,angleA=90,angleB=270]{->}{ts}{st} \end{slide} \begin{slide} \label{p:fancy} {\bf \red Other neat stuff:} Here's how I made the {\sl \blue headers} and {\sl \blue footers} -- this goes at the beginning of the {\sl \blue document body} \begin{verbatim} \pagestyle{fancy} \setlength{\headrulewidth}{0.15pt} \setlength{\footrulewidth}{.15pt} \rhead{\includegraphics[height=0.3cm]{newlogo.ps}} \lhead{\scriptsize \sl ST 810A, M. Davidian, Spring 2004} \lfoot{\scriptsize \sl Presentations using {\tt seminar.sty}} \cfoot{ } \rfoot{\scriptsize \rm \theslide} \end{verbatim} \end{slide} \begin{slide} {\bf \red Other neat stuff:} Can insert {\sl \blue math} into figures using the {\tt psfrag} package -- put the following before the figure \begin{verbatim} \psfrag{alpha0}{\scriptsize $\alpha_{i0}$} \psfrag{alpha1}{\scriptsize $\alpha_{i1}$} \psfrag{density}{\tiny density} \end{verbatim} \begin{itemize} \ritem {\sl \blue Replaces} the first argument with the second \end{itemize} \end{slide} \begin{slide} {\bf \red Without {\tt psfrag}:} \begin{figure} \begin{center} \includegraphics[width=2.5in]{bpersp.eps} \end{center} \end{figure} \end{slide} \psfrag{alpha0}{\scriptsize $\alpha_{i0}$} \psfrag{alpha1}{\scriptsize $\alpha_{i1}$} \psfrag{density}{\tiny density} \begin{slide} {\bf \red With {\tt psfrag}:} \begin{figure} \begin{center} \includegraphics[width=2.5in]{bpersp.eps} \end{center} \end{figure} \end{slide} \begin{slide} \myheading{{\blue POINTERS FOR MAKING GOOD SLIDES}} {\bf \red Personal view:} \begin{itemize} \ritem {\sl \blue Good slides} are {\sl \blue simple slides} -- try not to pack {\sl \blue too much} on one slide, and try not to make {\sl \blue busy} slides \ritem Use a {\sl \blue consistent style} throughout a presentation \ritem Use {\sl \blue bullets} to organize material \ritem Use {\sl \blue color} for highlighting important points (but remember some colors {\sl \blue may not show up well} on screen or on handouts) \ritem If appropriate, use {\sl \blue lots of figures} \ritem Use tables of numbers {\sl \blue sparingly} \ritem Do not introduce {\sl \blue too much notation}; your audience will never remember it all! \end{itemize} \end{slide} \begin{slide} \myheading{{\blue LAPTOP PRESENTATIONS}} {\bf \red These days\ldots} Transparencies are a {\sl \blue thing of the past!} \begin{itemize} \ritem {\sl \blue Projection equipment} is now {\sl\blue reliable} \ritem {\sl \blue Projection} is {\sl \blue slicker} \ritem Can use {\sl \blue devices} such as {\sl \blue overlays} (possible with {\tt seminar}) and slick {\sl \blue slide transitions} (possible with add-ons to {\tt seminar}) \ritem {\sl \blue More generally}, use of a laptop allows {\sl \blue greater flexibility} (e.g., show video clips, access web sites, etc.) \end{itemize} {\bf \red Result:} The {\sl \blue modern} presenter will prepare a {\sl \blue laptop presentation} \begin{itemize} \ritem Standard in {\sl \blue industry} \ritem Standard at {\sl \blue statistical meetings}, {\sl \blue seminars} \end{itemize} \end{slide} \begin{slide} {\bf \red Animation:} There are many popular {\sl \blue effects} that one can exploit in a laptop presentation \begin{itemize} \ritem A useful such effect is the ability to uncover material on a slide a little bit at a time \ritem Sometimes called ``cumulative overlays'' \ritem {\tt seminar} only does ``non-cumulative'' overlays \end{itemize} \end{slide} \begin{slide} {\bf \red Cumulative overlays:} Not built-in to {\tt seminar}, but there is a {\sl \blue fix-up} \begin{itemize} \ritem Add the following to the preamble: \end{itemize} \begin{verbatim} \makeatletter \def\pst@initoverlay#1{% \pst@Verb{% /BeginOL {dup (all) eq exch TheOL le or {IfVisible not {Visible /IfVisible true def} if} {IfVisible {Invisible /IfVisible false def} if} ifelse} def \tx@InitOL /TheOL (#1) def}} \makeatother \end{verbatim} \end{slide} \begin{slide} {\bf \red To uncover material a bit at a time:} \begin{verbatim} \begin{overlay}{0} This comes up first\ldots \end{overlay} \begin{overlay}{1} And then this\ldots \end{overlay} \begin{overlay} And finally this! \end{overlay} \end{verbatim} \end{slide} \begin{slide} \begin{overlay}{0} This comes up first\ldots \end{overlay} \begin{overlay}{1} And then this\ldots \end{overlay} \begin{overlay}{2} And finally this! \end{overlay} \end{slide} \begin{slide} {\bf \red Overlay facts:} \begin{itemize} \ritem May be {\sl \blue turned on or off} with \verb+\overlaystrue+ and \verb+\overlaysfalse+ (for printing handouts) \ritem See the {\sl \blue class web page} for the source code to a full talk made with {\tt seminar} that makes use of cumulative overlays \end{itemize} \end{slide} \centerslidestrue \begin{slide} {\bf \red Personal opinion:} There can be {\sl \blue too much of a good thing} when it comes to {\sl \blue fancy slide shows} \end{slide} \centerslidesfalse \begin{slide} {\bf \red Recommendations:} \begin{itemize} \ritem {\sl \blue Learn} how to make laptop presentations \ritem Get used to using a {\sl \blue laser pointer} \ritem Become comfortable -- remember, you can't {\sl \blue write on slides}! \ritem Presentations with a laptop are {\sl \blue fun}! \end{itemize} \end{slide} \begin{slide} {\bf \red How to project slides made using {\tt seminar}?} \begin{itemize} \ritem Create a {\tt pdf} file \begin{verbatim} stat% add acrobat stat% latex myslides stat% dvips -P pdf myslides stat% distill myslides.ps \end{verbatim} \ritem Can use {\sl \blue full screen mode} of {\sl \blue Acrobat} reader \ritem Can also use new versions of {\sl \blue ghostview} to project postscript version in {\sl \blue full screen mode} \ritem {\sl \blue Advantage of pdf} -- {\sl \blue portability} (many Windows users will not have postscript viewer installed) \end{itemize} \end{slide} \begin{slide} \myheading{{\blue WHERE TO LEARN MORE}} \label{p:more} {\bf \red Written and web resources:} \begin{itemize} \ritem Van Zandt, T. (1993) {\tt seminar.sty}: A \LaTeX\, Style for Slides and Notes. ({\sl \blue Available on the class web page, along with a template file and examples.}) \ritem Examples, other resources (prepared by Denis Girou) available at {\tt http://www.tug.org/applications/Seminar/} ({\sl \blue There is a link on the class web page.}) \end{itemize} \end{slide} \begin{slide} \myheading{{\blue COMPETING PACKAGES}} {\bf \red For making laptop presentations:} \begin{itemize} \ritem {\tt seminar} is really a {\sl \blue basic} choice \ritem Other packages allow {\sl \blue fancy backgrounds}, {\sl \blue neat slide transitions}, etc. \ritem Options are {\sl \blue too numerous} to demonstrate \end{itemize} \end{slide} \begin{slide} {\bf \red Some possibilities:} \begin{itemize} \ritem {\tt prosper} -- uses {\tt seminar} but adds fancy {\sl \blue backgrounds}, {\sl \blue slide transitions} (see link on the class web page) \ritem {\tt texpower} \ritem {\tt foiltex}, {\tt pdftex}/{\tt pdflatex} \ritem {\tt ppower4} \ritem {\sl \blue Go to {\tt google} and type {\tt latex presentations}}! \ritem {\sl \blue Some links} to examples available on the class web page \end{itemize} \end{slide} \end{document}