%% 
%%  An UIT Edition example
%% 
%%  Example 07-05-1 on page 189.
%% 
%%  Copyright (C) 2012 Vo\ss 
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 

% Show page(s) 1,2,3,4,5,6

%% ==== 
\PassOptionsToClass{12pt}{beamer}
\documentclass{exabeamer}
\setlength\parindent{0pt}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage{etex}

%\StartShownPreambleCommands
\documentclass[12pt]{beamer}
\usepackage{graphicx,pstricks-add}  \setbeamertemplate{navigation symbols}{}
%\StopShownPreambleCommands

\begin{document}
\begin{frame}[plain]{Graphics with PSTricks}{}
\psset{framesep=2mm,arrowscale=1.75} \medskip
\psscalebox{0.8}{% scale to 80%
\begin{pspicture}(-1,-0.25)(8,9)
\only<1->{\rput(-0.5,9){%
  \rnode{A}{\psshadowbox[fillcolor=blue!30,fillstyle=solid]{source code}}}
  \uput[180](-0.5,8){\texttt{.tex}}}
\only<2->{\rput(1,7.25){%
  \rnode{B}{\psshadowbox[fillcolor=red!30,fillstyle=solid]{pdf\LaTeX}}}%
  \ncangle[angleA=-90,angleB=90]{->}{A}{B}}
\only<3->{\psframe*[linecolor=black!15](2.2,4)(9.2,9.6)
  \uput[0](1,6.5){\texttt{.aux}}
  \rput(4.5,6){\rnode{C}{\psshadowbox[fillcolor=red!30,fillstyle=solid]{Bib\TeX}}}
  \pnode(B|C){C'}\ncline{B}{C'}\psdot(C')  \ncline{->}{C'}{C}
  \rput(3.5,9){\rnode{D}{\psshadowbox[fillcolor=blue!30,fillstyle=solid]{Bib-data}}}
  \uput[180](3.25,8){\texttt{.bib}}
  \ncangles[angleA=-90,angleB=90,armA=1,offset=-0.2]{->}{D}{C}
  \rput(6,9){\rnode{E}{\psshadowbox[fillcolor=blue!30,fillstyle=solid]{Bib-style}}}
  \uput[0](6,8){\texttt{.bst}}
  \ncangles[angleA=-90,angleB=90,armA=1,offsetB=0.2]{->}{E}{C}}
\only<4->{\uput[180](4.5,5){\texttt{.bbl}}
  \rput(8,6){\rnode{F}{\psshadowbox[fillcolor=blue!30,fillstyle=solid]{log file}}}
  \uput[-90](6,5.75){\texttt{.blg}}  \ncline{->}{C}{F}  \pnode(C|0,4){C''}}
\only<4>{\ncline{->}{C}{C''}}
\only<5->{\rput(1,4.5){%
  \rnode{B}{\psshadowbox[fillcolor=red!30,fillstyle=solid]{pdf\LaTeX}}}
  \ncangle[angleA=-90,angleB=90,offsetB=-0.3]{->}{A}{B}
  \ncline{->}{C'}{B} \ncangle[angleA=-90]{->}{C}{B}
  \uput[0](1,3.5){\texttt{.aux}}  \pnode(B|0,3){B''}}
\only<5>{\ncline{->}{B}{B''}}
\only<6->{\rput(1,2){%
  \rnode{G}{\psshadowbox[fillcolor=red!30,fillstyle=solid]{pdf\LaTeX}}}
  \ncangle[angleA=-90,angleB=90,offsetB=-0.3]{->}{A}{G}
  \ncline{->}{B}{G}
  \rput(1,0.2){\rnode{H}{\psshadowbox[fillcolor=blue!30,fillstyle=solid]{PDF file}}}
  \ncline{->}{G}{H}
  \uput[0](1,1){\texttt{.pdf}}
  \rput(8,2){\rnode{F}{\psshadowbox[fillcolor=blue!30,fillstyle=solid]{log file}}}
  \uput[-90](6,1.75){\texttt{.log}}  \ncline{->}{G}{F}}
\end{pspicture}}
\end{frame}
\end{document}
