%$Id: beamerexample.pic,v 1.3 2004/04/13 21:36:47 hahe Exp hahe $
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\newcommand\gpicbox[1]{\vbox{\unvcopy\csname #1\endcsname\kern0pt}}
%***********************************************************************
\begin{document}

\section{PDF File Generation}

\frame{
\frametitle{How a PDF File is generated\ldots}
PS
[
 boxwid=0.8; boxht=0.2
 ellipsewid=0.8; ellipseht=0.25
 down
 A:ellipse "{\ttfamily foo.tex}"
 arrow 0.2 at A.s
 B:box "tex"
   [
   right
   ellipse wid 1.2*ellipsewid "{\ttfamily $\ast$.tfm}"
   arrow 0.2
   ] with .e at B.w
 arrow 0.2 at B.s
 C:ellipse "{\ttfamily foo.dvi}"
\only<2-3>{%
 arrow 0.2
 D:box "dvips"
   Q:[
   D: ellipse wid 1.2*ellipsewid "{\ttfamily $\ast$.vf}, {\ttfamily $\ast$.tfm}"
   move 0.1
   E: ellipse ht 0.8 wid 1.2*ellipsewid "{\ttfamily psfonts.map}" \
                     "{\ttfamily $\ast$.enc}, {\ttfamily $\ast$.pfb}"
   ] with .e at D.w - (0.2,0)
 spline -> right 0.05 from Q.D.e to D.nw
 spline -> right 0.05 from Q.E.e to D.sw
 arrow down 0.2 at D.s
 ellipse "{\ttfamily foo.ps}"
\relax}%
\only<3>{%
 arrow 0.2
 X:box "ps2pdf"
 arrow 0.2
 ellipse "{\ttfamily foo.pdf}"
\relax}%
\only<4-| handout:0>{%
 arrow 0.2 at C.s
 D1:box "dvipdfm\textcolor{black!50}{x}"
   Q1:[
   D: ellipse wid 1.2*ellipsewid "{\ttfamily $\ast$.vf}, {\ttfamily $\ast$.tfm}"
   move 0.1
   E: ellipse ht 0.8 wid 1.2*ellipsewid "{\ttfamily psfonts.map}" \
                     "{\ttfamily $\ast$.enc}, {\ttfamily $\ast$.pfb}"
   ] with .e at D.w - (0.2,0)
 spline -> right 0.05 from Q1.D.e to D1.nw
 spline -> right 0.05 from Q1.E.e to D1.sw
 arrow down 0.2 at D1.s
 ellipse "{\ttfamily foo.pdf}"
\relax}%
\only<5->{%
 move right 2.2 at A.n
 down
 ellipse "{\ttfamily foo.tex}"
 arrow 0.2
 P:box ht (B.n.y - D1.s.y) "pdftex"
   [
   right
   ellipse wid 1.2*ellipsewid "{\ttfamily $\ast$.vf}, {\ttfamily $\ast$.tfm}"
   arrow 0.2
   ] with .e at (P.w.x,Q.D.y)
   RR:[
   A:ellipse ht 0.8 wid 1.2*ellipsewid "{\ttfamily pdftex.map}" \
                     "{\ttfamily $\ast$.enc}, {\ttfamily $\ast$.pfb}"
   ] with .e at (P.w.x - 0.2,Q.E.y)
 spline -> right 0.05 from RR.A.e to P.sw
 down
 arrow 0.2 at P.s
 ellipse "{\ttfamily foo.pdf}"
]
\relax}%
PE

\centering
\leavevmode\gpicbox{graph}
}

\end{document}