% Document Preamble

%  Must be compiled with pdf Latex

\documentclass[12pt]{beamer}


% If you want to print handouts
%\documentclass[12pt,handout]{beamer}

% Changing the fonts: this will make the slides more readable and the math look like regular tex math
\usefonttheme{serif}

% Titles will appear in Small Cap Serif
\usefonttheme{structuresmallcapsserif}

% -----------------------------------------
% Center the Frame Title
% -----------------------------------------

\setbeamertemplate{frametitle} {
\begin{centering}
\vspace{0.1in} \insertframetitle
\par
\end{centering}}

% -----------------------------------------
% Number the slides but don't show the distracting total number of slides
% -----------------------------------------

\setbeamertemplate{footline}{\hspace{350pt}\insertframenumber \vspace{0.1in}}  %  Thanks to Jihee Kim for figuring out how to suppress the total number of slides

% -----------------------------------------
% Get rid of the irritating navigation bar
% -----------------------------------------

\setbeamertemplate{navigation symbols}{}

%  Handy commands to save typing

\newcommand{\ex}[1]{\mbox{ }\mathbb{E}_{#1}\mbox{ }}
\newcommand{\sep}{\vspace{0.3in}}
\newcommand{\vv}{0.1in}

 % \fig{filename}{title}{width}  creates a slide with an excel or other pdf figure or table:
 \newcommand{\xltab}[3]{\begin{frame}\frametitle{#2}\centerline{\includegraphics[width=#3in]{#1}}\end{frame}}
 \newcommand{\fig}[3]{\begin{frame}\frametitle{#2}\centerline{\includegraphics[width=#3in]{#1}}\end{frame}}

 % \blackslide   creates a black slide to be used like the b key in Powerpoint to avoid distracting material on the screen while you talk
\newcommand{\blackslide}[1]{\beamersetaveragebackground{black}\begin{frame}\frametitle{}\end{frame}\beamersetaveragebackground{white}}

%  \bs{title}  to begin slide with title
\newcommand{\bs}[1]{\begin{frame}\frametitle{#1}}
\newcommand{\es}{\end{frame}}

%  \cm{title} for centered material
\newcommand{\cm}[2]{\begin{frame}\frametitle{#1}\begin{centering}#2\end{centering}\end{frame}}

% \e for one display equation: \e {title}{equation}
\newcommand{\e}[2]{\begin{frame}\frametitle{#1}\[ #2\]\end{frame}}

% \ee{title}{firstequation}{secondequation} for two animated equations
\newcommand{\ee}[3]{\begin{frame}\frametitle{#1}\uncover<1->{\[ #2\]}\uncover<2->{ \[ #3 \]}\end{frame}}

% \eee for three equations
\newcommand{\eee}[4]{\begin{frame}\frametitle{#1}\uncover<1->{\[ #2\]}\uncover<2->{ \[ #3 \]}\uncover<3->{ \[ #4 \]}\end{frame}}

%\eeee for four equations
\newcommand{\eeee}[5]{\begin{frame}\frametitle{#1}\uncover<1->{\[ #2\]}\uncover<2->{ \[ #3 \]}\uncover<3->{ \[ #4 \]}\uncover<4->{ \[ #5 \]}\end{frame}}

% \m for one chunk of material: \m {title}{material}
\newcommand{\m}[2]{\begin{frame}\frametitle{#1} #2\end{frame}}

% \mm{title}{firstmaterial}{secondmaterial} for two animated chunks
\newcommand{\mm}[3]{\begin{frame}\frametitle{#1}\uncover<1->{ #2}\uncover<2->{ \\ \vspace{\vv} #3 }\end{frame}}

% \mmm for three chunks
\newcommand{\mmm}[4]{\begin{frame}\frametitle{#1}\uncover<1->{ #2}\uncover<2->{ \\ \vspace{\vv} #3 }\uncover<3->{\\ \vspace{\vv}  #4 }\end{frame}}

% \mmmm for four chunks
\newcommand{\mmmm}[5]{\begin{frame}\frametitle{#1}\uncover<1->{ #2}\uncover<2->{\\ \vspace{\vv} #3 }\uncover<3->{\\ \vspace{\vv}  #4 }\uncover<4->{\\ \vspace{\vv}  #5 }\end{frame}}


\begin{document}


