\documentclass{beamer} %documentclass for beamer

\usepackage{hyperref} \hypersetup{breaklinks=true, pagecolor=white,
colorlinks= true, linkcolor=black, hyperfootnotes= false, urlcolor=blue
} \urlstyle{ rm} \usepackage{graphicx} \usepackage{amsmath} \usepackage{
amssymb}

\usepackage{beamerthemesplit} %Key package for beamer

\usenavigationsymbolstemplate{} %Gets rid of slide navigation symbols



         \begin{document}

\baselineskip 12pt

\parskip = 12pt

  \parindent 24pt

%end{frame}

\begin{frame}

  \frametitle{Beamer Example  }

\noindent
 8 April 2008\\ Eric Rasmusen, erasmuse@indiana.edu\\ This
file is   at \url{http://www.rasmusen.org/a/beamer-rasmusen.pdf}  

  These notes are     tips and tricks  that I have found useful or
thought might be useful. I wrote these for my own use and have not tried
to make them clear for others, but some other people will find them
useful.

Beamer is easy to use. It took me less than an hour, starting from no
knowledge, to google info up, get Beamer working,  and write these
notes.

 \end{frame} 

\begin{frame}

  \frametitle{Related Files }

The source file for this pdf is at
 \url{http://www.rasmusen.org/a/beamer-rasmusen.tex}
 


See the  "Beamer v3.0 Guide", 2004, at 
\url{http://faq.ktug.or.kr/wiki/uploads/beamer_guide.pdf}.


  

My latest Latex tips are at:
 \url{http://www.rasmusen.org/a/latex-rasmusen.txt} 

 My latex examples pages are at
\url{http://www.rasmusen.org/a/latex-rasmusen.pdf} and
 \url{http://www.rasmusen.org/a/latex-rasmusen.tex} 

 My email address is erasmuse@indiana.edu.




\end{frame}

\begin{frame}

  \frametitle{Beamer Example, Page 1 }

The pause command will allow stuff to show up one click at a time. Just put  $\backslash$pause   where you want the slide to pause till you use the downarrow or clicker. 

\pause

alert{sdfwfddf} and structure{sdfsdfd} gives colors.

Beamer's default is 22pt font.

  Some commands I like to put before $\backslash$begin\{document\}: 

 $\backslash$usenavigationsymbolstemplate\{\}  to ge  rid of slide navigation symbols

 $\backslash$setbeamertemplate\{footline\}[frame number] to add slide numbers

 $\backslash$beamersetleftmargin\{.2in\}

 $\backslash$beamersetrightmargin\{.2in\}

\end{frame}

\begin{frame}[squeeze]

  \frametitle{Beamer Example,This Frame Using the [Squeeze] Option }

 We will view this person as consisting of three people, Self 0, Self 1,
and Self 2, with utility functions: 
\begin{equation} \label{u0}
 U_0 = U(
C_0) +  \beta\delta(X +U(C_1)) + \beta\delta^2(-\alpha X +U(C_2)) 
\end{equation}

 \begin{equation} \label{u1} 
U_1 = X +U(C_1) + \beta\delta(-
\alpha X +U(C_2)),
 \end{equation} and
 \begin{equation} 
U_2 = -\alpha  XS
+ U(C_2),
 \end{equation}
 with     $ \alpha >1$,
$0 \leq \delta< \frac{1}{1+r}$, and $0 \leq \beta<1$.   If the person
chooses to use the cocaine he receives $X$  in period 1  and loses
$\alpha X$ in period 2, where we assume the loss is bigger than the
gain, so $ \alpha >1$. Utility is separable in consumption and cocaine
use. For the first part of the paper we will assume utility is linear in
consumption ($U(C)=C$); we will assume it concave when we come to
consider  ``bequests'' motivated by  a  consumption-smoothing.

The   utility function is quasi-hyperbolic in the style of Laibson
(1997): our person has an exponential discount factor of
$0 \leq \delta< \frac{1}{1+r}$ (so his rate of time preference is
greater than the market interest rate)  and a hyperbolic adjustment
parameter of $0 \leq \beta<1$.     If $\beta=0$ he does not care at all
about the welfare of his future self; if $\beta=1$ he has a standard
exponential-discounting utility function.\footnote{Phelps \& Pollack (
1968) had  used the quasi-hyperbolic form to discount generations of
people over time.   Laibson (1997) applied it to within the self  and
named it ``quasi-hyperbolic''. True ``hyperbolic'' discounting, proposed
by Chung  \&   Herrnstein (1961) in connection with a particular theory
of behavior, has similar qualitative features but is more complicated to
work with. See Angeletos, Laibson, Repetto, Tobacman  \& Weinberg (2001)
for a good brief explanation of the differences.}

\end{frame}

\begin{frame}[shrink]

  \frametitle{Beamer Example,This Frame Using the  [Shrink]  Option }

  I will have frequent occasion to refer to the assumption  on the value
of $\delta$ that I made above    so let us label it:

\noindent {\bf The  Consume-Early Assumption:} The person's rate of time
preference is greater than the market rate of interest: \begin{equation}
0 \leq \delta< \frac{1}{1+r} \end{equation}

  A common distinction in the behavioral economics literature is between
sophisticated consumers, who  are fully aware that they are time-
inconsistent  and adjust their behavior for that, and naive consumers
who are not aware that their future self may choose differently.    The
model here is simple enough for  the knowledge of time-inconsistency not
to matter, but we will assume that consumers do have rational beliefs
about what future consumers will do.

  The motivation for the model is to set up as simply as possible a
situation where a decision might be made   when it has no immediate
effect on utility (Period 0), at the time of a positive effect (Period
1), or at the time of a negative effect (Period 2).

 
\bigskip

\noindent {\bf  Positive Analysis }

     In general when utility functions are non-exponential we must work
back from the last period to the first. Self 0 controls the value of
$C_0$, Self 1 controls $X$ and $C_1$, and Self 2 controls $C_2$, but it
will be interesting to see what each person would do if he controlled
all of the decision variables.

Self 2 would  consume his entire wealth, so $C_2 = W + (1+r) (W_1-
C_1)$. If he could choose variables from earlier periods, he would
choose choose $X=0$, $C_0=0$, and $C_1=0$: a ban on cocaine and zero
consumption in the earlier periods so he would have more consumption
himself.

\end{frame}

\begin{frame}

 NOT ALL FRAMES NEED HAVE A TITLE.
 
 

The Handout style in Beamer is pretty useless. It just takes out the overlay commands and prints one slide per page anyway. There is a way to print more per page, but it looks clunky too. Printing multiple pages using the PRINT command outside of latex doesn't work either, because too much white space is left around the text. We want a handout or notes page with just the essential text. Here's how I did it. I took out the beamer stuff, and replaced every begin frame  command with bigskip hrule bigskip. I deleted all the $\backslash$end  frame  commands and replaced $\backslash$maketitle with   $\backslash$   I also  put commands at the top to make the pages long and the text small.  The next pages illustrate
 
\end{frame}

\begin{frame}

  \frametitle{  DIAGRAMS }

I had a lot of trouble with diagrams (using the pause command with them, though I think that didn't cause the trouble). You're supposed to be able to use JPG files, but it didn't work. I opened the JPG file in Acrobat, and saved it as a PDF file. Then it worked fine.  (In the example below, I use a JPG file and it seems to work just fine!)

Also: if you leave blank lines between figures, they will display in a column. If you want  a row, don't leave blank lines between them. 

 \end{frame}

\begin{frame}

  \frametitle{  DIAGRAM ILLUSTRATION }

The command is like htis: 
$\backslash$includegraphics[width=1in]\{latex1.jpg\} 

  \includegraphics[width=1in]{latex1.jpg}   \pause  \includegraphics[width=1in]{latex1.jpg}  \pause

 \includegraphics[width=1in]{latex1.jpg}    




\end{frame}

\begin{frame}

  \frametitle{ Some preliminary packages and commands I use }

 $\backslash$documentclass\{article\} %documentclass for beamer

$\backslash$usepackage\{hyperref\} $\backslash$hypersetup\{breaklinks=true, pagecolor=white,
colorlinks= true, linkcolor=black, hyperfootnotes= false, urlcolor=blue
\} $\backslash$urlstyle\{ rm\} $\backslash$usepackage\{graphicx\} $\backslash$usepackage\{amsmath\} $\backslash$usepackage\{
amssymb\}

%$\backslash$usepackage\{beamerthemesplit\} %Key package for beamer

%$\backslash$usenavigationsymbolstemplate\{\} %Gets rid of slide navigation symbols

%^$\backslash$setbeamertemplate\{footline\}[frame number]

   $\backslash$reversemarginpar
   $\backslash$topmargin  -.8in
   $\backslash$oddsidemargin -.1in
  $\backslash$textheight  10in
   $\backslash$textwidth 7in
%  $\backslash$baselineskip 16pt

$\backslash$pagestyle\{empty\}



\end{frame}

\begin{frame}

 \frametitle{ Some preliminary packages and commands I use }

         $\backslash$begin\{document\}

$\backslash$bigskip $\backslash$hrule $\backslash$bigskip

\{$\backslash$footnotesize 

  \{$\backslash$bf \{    Quality-Ensuring Profits \}

 SLIDE GOES HERE

\end{frame}

\end{document}



