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

\usepackage{wrisym}
%\usepackage[sf]{vivaldi}

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

\usepackage{url}
\usepackage{graphicx}

\usepackage{hyperref}
\hypersetup{
    pdftitle={The Lorenz Attractor},
    pdfsubject={pdfTeX animation example},
    pdfauthor={Jochen Skupin},
    pdfkeywords={strange lorenz attractor 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[loop,remember]{lorenz1}{lorenz_plots/lorenz}{60}

\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 The Lorenz Attractor}
\end{center}

\noindent
The Lorenz attractor is a strange attractor that arises in a system of
equations describing the \mbox{2-dimensional} flow of fluid of uniform depth, with
an imposed vertical temperature difference.
In the early 1960s, Lorenz discovered the chaotic behavior of a
simplified \mbox{3-dimensional} system of this problem,
now known as the Lorenz equations:

\begin{eqnarray}
  \frac{\dd}{\dd t}X &=& \sigma(Y-X) \label{eq:X}\\
  \frac{\dd}{\dd t}Y &=& -XZ + rX -Y \label{eq:Y}\\
  \frac{\dd}{\dd t}Z &=& XY - bZ \label{eq:Z}
\end{eqnarray}

\noindent 
The following figure shows the numerical solution of equations 
(\ref{eq:X}) to (\ref{eq:Z}) calculated with
$\sigma = 3$,
$r = 26.5$ and
$b = 1$.
The complex \mbox{3-dimensional} structure of this attractor is
hard to see in a \mbox{2-dimensional} plot. Therefore click on 
the image to start/stop a slow rotation.

\vfill

\centering
% put the animation with name "lorenz1" here
\PDFAnimation{lorenz1}\\

\subsection*{Reference}
\begin{itemize}
  \item Lorenz, E. N. "Deterministic Nonperiodic Flow." 
	{\em J. Atmos. Sci.} 20, 130-141, 1963.
\end{itemize}

\comment
\end{document}



