\documentclass{beamer}
\usepackage{color,graphicx,psfrag}
\usepackage{beamerthemesplit}
\usetheme{Warsaw}
\usecolortheme{whale}
\title[Intro to Beamer]{How to give a mathematical slide talk: an
  introduction to Beamer}
\author[Jay Daigle]{Jay Daigle}
\institute{Occidental College}

%\date{June 15, 2007}
\ifx\pdfoutput\undefined
% we are running LaTeX, not pdflatex
\usepackage{graphicx}
\else
% we are running pdflatex, so convert .eps files to .pdf
\usepackage{graphicx}
\usepackage{epstopdf}
\fi
\newtheorem{thm}{Theorem}
\newtheorem{rmk}[thm]{Remark}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{dfn}[thm]{Definition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{conj}[thm]{Conjecture}
\newcommand{\del}{\Delta^S}
\newcommand{\delt}{\del(M)}
\newcommand{\newL}{\mathcal{L}^S}
\newcommand{\floor}[1]{\left\lfloor #1 \right\rfloor}
\newcommand{\ceil}[1]{\left\lceil #1 \right\rceil}

\definecolor{Blue}{rgb}{0,0,.8}
\definecolor{Green}{rgb}{0,.8,0}
\definecolor{Red}{rgb}{.8,0,0}

%------
\begin{document}
\frame{\maketitle}

\frame{\centering
\includegraphics[scale=.4]{beamer_pictures/attenshun.jpg}
}

\frame{\frametitle{Outline} 

\tableofcontents

}

\section{Goals}

\frame{\frametitle{Goals for a good talk} \pause
  \begin{itemize}
  \item Clarity\pause
  \item Audience attention \pause
  \item Audience enjoyment \pause
  \end{itemize}
  \begin{block}{Question}
    How can we accomplish these goals?
  \end{block}
}

\frame{}
\section{How to Use Slides}

\frame{\frametitle{Signposting} \pause
    \begin{block}{}
      "Tell them what you are going to tell them, tell them, then tell them what you told them."
    \end{block}
\pause

  \begin{itemize}

  \item Know where you're going! \pause
  \item Outlines are good \pause
  \item Don't give away too much \pause
  \item Leave blank spaces to reorient. 

  \end{itemize}
}


\frame{\frametitle{Don't crowd your slides} \pause
  Sometimes it's really tempting to fill your entire slide with text.
  This is actually a bad idea.  If your slide is filled with a ton of
  text, your audience will feel obligated to read it.  This is bad
  because this is tiring for them; it is also bad because when they
  are reading the slide they aren't hearing anything you're saying. 

  Thus when you flip to a new slide filled with text (or with other
  information like complicated graphics), you will have to stop and
  wait for your audience finish reading.  This will annoy your
  audience, and also lose their attention.  (Especially since they
  will all finish at different times).  When you start talking again
  everyone will be disoriented.
  % \pause
  % \begin{figure}[h]
  %   \centering
  %   \includegraphics[scale=.2]{beamer_pictures/Worst-powerpoint-slide.jpg} ~~~
  %   \includegraphics[scale=.2]{beamer_pictures/powerpoint-training-slides-before-006.jpg}
%  \end{figure}

}

\frame{\frametitle{Clean slides} \pause
  \begin{itemize}
  \item Avoid full sentences \pause
  \item Use bullet points \pause
  \item Lots of pauses \pause but \pause don't \pause use them to
    excess \pause like this. \pause
  \end{itemize}
  \begin{block}{}
     You can make your audience read if there is one clear idea you
    want to talk about for a while. 
    
  \end{block}
}

\frame{\frametitle{Don't read your slides} \pause
  \begin{itemize}
  \item Your audience can read too. \pause
  \item Slideshow is second voice. \pause
  \item Display equations, don't read them \pause
  \end{itemize}

  \begin{block}{Navier-Stokes Equations} \pause

    \begin{align}
  \alert<9,11>{\frac{\partial}{\partial t} u_i} + \sum_{j=1}^3 u_j
      \color<10,11>{blue}{\frac{\partial 
  u_i}{\partial x_j}} & = \nu \Delta u_i - \frac{\partial p}{\partial x_i} +
              f_i(x,t) \\
  & \nabla \cdot \textbf{u} = \sum_{i=1}^n \color<10,11>{blue}{\frac{\partial
    u_i}{\partial x_i}} = 0
\end{align}
 \end{block} \pause
\begin{itemize}
\item Use highlighting to focus on parts of the slide. \pause  Plan
  ahead! \pause \pause \pause
\end{itemize}


}

\frame{\frametitle{Let your audience rest} \pause
  \begin{itemize}
  \item Everyone needs breaks. \pause 

    \includegraphics[scale=.3]{beamer_pictures/bored_cat.jpg}
    \pause 
  \item Plan for on-ramps. \pause
  \item Pictures are a good change of pace. 
  \end{itemize}
}






\frame{}


\section{Beamer}

\begin{frame}[fragile]\frametitle{Beamer} \pause
Beamer is a package that lets us make slide shows in \LaTeX. \pause
\begin{block}{}
\begin{verbatim}
\documentclass{beamer}
\usepackage{color,graphicx,psfrag}
\usepackage{beamerthemesplit}
\usetheme{Warsaw}
\usecolortheme{whale}
\end{verbatim} 
\end{block} \pause
Play around with themes and color themes.  

  
\end{frame}

\begin{frame}[fragile]\frametitle{Frames and pauses} \pause
  \begin{itemize}
  \item Each slide is enclosed in \\ 
    \verb`\frame{\frametitle{Title} ` \\
      slide contents \\
    \verb`}` \pause
\item The command \verb`\pause` creates pauses on the slides.
  \end{itemize}
\end{frame}

\begin{frame}[fragile] \frametitle{Blocks} \pause
  \begin{block}{}
    We can create floating blocks of text with the code \\
    \verb`\begin{block}{} ` \\
      text \\
      \verb`\end{block}`
  \end{block}
\pause

  \begin{block}{Titled Blocks}
    We can give the block a title with \\
    \verb`\begin{block}{Title} ` \\
      text \\
      \verb`\end{block}`
  \end{block}
\pause

\begin{alertblock}{}
We can make a different color of block with \\
\verb`\begin{alertblock}{}` \\
test\\
\verb`\end{alertblock}`
\end{alertblock}
\end{frame}

\begin{frame}[fragile]\frametitle{Alerts}\pause 
  \begin{itemize}
  \item We can use the \verb`\alert` command to highlight text with
    controlled timing. \pause
  \item Text in \verb`\alert<4>{text}` will be highlighted on the
    \alert<4>{fourth} pause in the slide. \pause \pause
  \item It can be hard to tell when it will show up, but just try it
    out and adjust.
  \item We can also use \verb`\color<6>{blue}text` to
    \color<6>{blue}{set text to be a color}. 
  \end{itemize}
\end{frame}
\frame{\frametitle{Summary} \pause
  \begin{itemize}
  \item Have a narrative \pause
  \item Signpost \pause
  \item Use clean slides \pause
  \item Don't read to your audience \pause
  \item Give your audience breaks \pause 
  \item Beamer is cool.
  \end{itemize}
}

\frame{}

% \frame{
% \begin{align*}
% \uncover<1-3>{(a+1)^p&= \sum _{k=0}^{p} {{p}\choose {k}} a^{p-k} 1^{k}\\}
% \uncover<2->{&= 
% a^p + \alert<10,11>{ { {p}\choose {1} } } 
% a^{p-1}+
% \only<10,11>{\textcolor{blue}{{{{p}\choose {2}}}} a^{p-2}+...+}
%   \only<1-9,12->{{{{{p}\choose {2}}}} a^{p-2}+...+}
% \alert<10,11>{{{p}\choose {p-1}}}a 
% + 1}
% \end{align*}
% \pause \pause \pause \pause

% }





\end{document}
