%
% version 0002
% date 20040622
%
% by Jochen Skupin
%
\documentclass[12pt]{scrartcl}

% rm headers
\renewcommand{\descfont}{\rmfamily}
\renewcommand{\sectfont}{\rmfamily}
\normalfont

\usepackage{hyperref}
\hypersetup{
    pdfpagetransition=Glitter,
    pdftitle={Total lunar eclipse},
    pdfsubject={pdfTeX animation example},
    pdfauthor={Jochen Skupin},
    pdfkeywords={lunar eclipse pdf tex animation},
    pdfpagemode=None,
    plainpages=false,
    pdfstartview=Fit,
    breaklinks=true,
    colorlinks=false,
    pdfhighlight=/N,
    % define colors, even if not used
    linkcolor=blue,
    citecolor=blue,
    urlcolor=blue,
    citebordercolor=1 1 1,
    filebordercolor=1 1 1,
    linkbordercolor=1 1 1,
    menubordercolor=1 1 1,
    pagebordercolor=1 1 1,
    urlbordercolor=1 1 1,
    pdfborder=1 1 1
  }

% load the pdfanim style, should be done after hyperref
\usepackage[NoDocJS]{pdfanim}

% load and initialise animation
% arguments:
%   \PDFAnimLoad[options]{name}{xxx}{number}
%   - options: in this example the animation is looped 
%   - name: name of the animation 
%     (with this name it can be reused several times in the document)
%   - number: number of animation frames / files (n)
% the animation will be composed of files 
% xxx0.pdf, xxx1.pdf ... xxx(n-1).pdf
\PDFAnimLoad[width=0.5\linewidth,auto,loop,interval=100]{eclipse1}{moon_eclipse/moon_eclipse_}{59}%
\PDFAnimLoad[width=0.5\linewidth,loop,interval=100]{eclipse2}{moon_eclipse/moon_eclipse_}{59}%

\pagestyle{empty}

\newcommand{\comment}{%
  % add space for tiny comment line
  \enlargethispage{5\baselineskip}
  % the tiny comment line
  \vspace{2cm}\noindent
  {\tiny
  This file demonstrates how to imbed javascript animations 
  in PDF files using pdftex and the PDFAnim style.\hfill
  \begin{tabular}[t]{ll}
  Author: & Jochen Skupin \\
  email: & \url{jochen.skupin@uni-bremen.de}
  \end{tabular}
  }
}

% -------------------------------------------------

\begin{document}
  \begin{center}
  {\sffamily\Huge Total lunar eclipse}
  \vfill
  \PDFAnimation{eclipse1}  
  \PDFAnimation{eclipse2}  
  \vfill
  \end{center}
  \comment
\end{document}



