%% 
%%  An UIT Edition example
%%  
%%  1st edition
%% 
%%  Example 02-04-8 on page 31.
%% 
%%  Copyright (C) 2012 Herbert Voss
%% 
%%  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

\documentclass[size=12pt,paper=screen,mode=present,display=slidesnotes, style=BerlinFU,nopagebreaks,fleqn,british]{exapd}
\pagestyle{empty}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,babel,pst-node}
\pdsetup{lf=\textbf{FU-Berlin},trans=Dissolve}
\psset{nodesep=3pt}
\definecolor{lila}{rgb}{0.6, 0.2, 0.5}
\definecolor{darkyellow}{rgb}{1, 0.9, 0}
%\StartShownPreambleCommands
\newcommand\pBox[2]{\psframebox*[fillcolor=#1]{\vphantom{\frac{(A)^1}{(B)^1}}#2}}
%\StopShownPreambleCommands
\begin{document}
\begin{wideslide}{Node example}
The binding energy in the liquid drop model consists of the following parts:
\begin{itemize}[type=0]
\item<3-> the \rnode{b}{surface term,} \item<2-> the \rnode{a}{volume term,}
\item[]% only dummy
\end{itemize}
\[E =
  \onslide{2-}{\rnode[t]{ae}{\pBox{darkyellow}{a_vA}} +}
  \onslide{3-}{\rnode[t]{be}{\pBox{lightgray}{-a_fA^{2/3}}} +}
  \onslide{4-}{\rnode[t]{ce}{\pBox{green}{-a_c\frac{Z(Z-1)}{A^{1/3}}}} +}
  \onslide{5-}{\rnode[t]{de}{\pBox{cyan}{-a_s\frac{(A-2Z)^2}{A}}} +}
  \onslide{6-}{\rnode[t]{ee}{\pBox{yellow}{E_p}}}
\]
\medskip
\begin{itemize}[type=0]
\item<4-> the \rnode{c}{Coulomb term,} \item<5-> the \rnode{d}{asymmetry term,}
\item<6-> and a \rnode{e}{pairing term.}
\end{itemize}
\psset{linecolor=darkgray,linewidth=0.5pt,linestyle=solid}
\onslide*{2-}{\nccurve[linecolor=darkyellow,angleA=-90,angleB=90]{->}{a}{ae}}
\onslide*{3-}{\nccurve[linecolor=lightgray,angleB=45]{->}{b}{be}}
\onslide*{4-}{\nccurve[linecolor=green,angleB=-90]{->}{c}{ce}}
\onslide*{5-}{\nccurve[linecolor=cyan,angleB=-90]{->}{d}{de}}
\onslide*{6-}{\nccurve[linecolor=yellow,angleB=-90]{->}{e}{ee}}
\end{wideslide}
\end{document}
