<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Myriad Pro">Hi Patrick,<br>
<br>
PSTricks offers the _multido_ command to reproduce some different
graphics with animation character.<br>
<br>
They are setup on multiple pages. If you scroll the pages you get the
imitation of an animation.<br>
<br>
You can split the PDF pages and use them for other software to produce
an animation. pdf2swf or stuff.<br>
<br>
I do not really understand the aim you have. <br>
<br>
What is the advantage to have ONE TeX file per frame? Isn't it easier
to have ONE TeX file for all the necessary frames and rework the
produced PDF?<br>
<br>
animate package delivers the necessary commands to make an animation.
AcroTeX as well however distiller is needed to produce the necessary
layers for an animation.<br>
<br>
What format for the frames is the wanted for your purpose?<br>
<br>
Compile the following done with multido and then view the pages of the
resulting PDF.<br>
<br>
Regards, <br>
<br>
Juergen<br>
<br>
<br>
\documentclass{article}<br>
\usepackage{pst-3dplot}<br>
\usepackage{pstricks-add}<br>
\usepackage[nomessages]{fp}<br>
<br>
\pagestyle{empty}<br>
<br>
\definecolor{APBoceanblue}{rgb}{0.00,0.20,0.74}<br>
\definecolor{APBcoldblue}{rgb}{0.00,0.48,0.73}<br>
<br>
\begin{document}<br>
% \section*{A Torus}<br>
\def\voc{<br>
\psset{Beta=20,Alpha=50,linewidth=0.1pt,linecolor=APBcoldblue,origin={0,0,0}}%<br>
\parametricplotThreeD[xPlotpoints=100](80,\bi)(0,360){%<br>
/k 2 def /k2 4 def<br>
t cos 2 mul 4 u sin 2 mul add mul<br>
t sin 2 mul 4 u sin 2 mul add mul<br>
u cos 4 mul<br>
}<br>
\parametricplotThreeD[yPlotpoints=75](0,360)(80,\bi){%<br>
/k 2 def /k2 4 def<br>
u cos 2 mul 4 t sin 2 mul add mul<br>
u sin 2 mul 4 t sin 2 mul add mul<br>
t cos 4 mul<br>
}<br>
\parametricplotThreeD[yPlotpoints=1,linecolor=APBoceanblue,linewidth=2pt](0,360)(80,360){%<br>
/k 2 def /k2 4 def<br>
u cos 2 mul 4 t sin 2 mul add mul<br>
u sin 2 mul 4 t sin 2 mul add mul<br>
t cos 4 mul<br>
}<br>
}<br>
<br>
\psset{unit=0.35}<br>
<br>
\FPdiv{\myDeltaA}{16}{36}%<br>
\def\ai{-8}%<br>
\FPdiv{\myDeltaB}{280}{36}%<br>
\def\bi{80}%<br>
<br>
\multido{\i=1+1}{37}{%<br>
\begin{pspicture}(-2,-8)(2,8)<br>
\voc<br>
\end{pspicture}<br>
\newpage<br>
\FPadd{\ai}{\ai}{\myDeltaA}<br>
\FPadd{\bi}{\bi}{\myDeltaB}<br>
}<br>
\end{document} </font><br>
<br>
Patrick Drechsler wrote:
<blockquote cite="mid:87tzkhvid8.fsf@pdrechsler.de" type="cite">
<pre wrap="">Herbert Voss <a class="moz-txt-link-rfc2396E" href="mailto:Herbert.Voss@FU-Berlin.DE"><Herbert.Voss@FU-Berlin.DE></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">Patrick Drechsler schrieb:
</pre>
<blockquote type="cite">
<pre wrap="">I would like to produce a sequence of individual pstricks files. Is
there a LaTeX (or Pstricks) method to do this?
</pre>
</blockquote>
<pre wrap=""><a class="moz-txt-link-freetext" href="http://tug.org/PSTricks/main.cgi?file=Animation/basics">http://tug.org/PSTricks/main.cgi?file=Animation/basics</a>
</pre>
</blockquote>
<pre wrap=""><!---->
Thank you for pointing out the examples (I've also looked at AcroTeX,
but it has too many dependencies I can not fulfill at the moment).
I am still trying to understand the contents of the links provided on
this page. Although the examples by Manuel Luque look very cool, they
are way over my head (mainly because my french is very rusty).
Nevertheless, the examples for using the package "animate" are similar
to the examples published with the documentation of the package. They
use the *inline* capabilities to produce animations. As I wrote in my
original mail:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">I would like to refrain from using the inline version of writing code
in favour of using external files (each "frame" in a separate file).
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
The reason for this is that my system does not provide the required
GhostScript version. I would therefore like to create the animation on a
different system and than include it on my main document.
I think it might work using a combination of the "preview" and "pst-pdf"
package. Here is a new example:
*b-main.tex*
(this file can be compiled on a system with ghostscript <8.31):
--8<---------------cut here---------------start------------->8---
\documentclass{beamer}
\usepackage{animate}
\usepackage{graphicx}
\begin{document}
\begin{center}
\animategraphics[
controls, loop,
timeline=timeline.txt
]{4}{b-images-pics}{}{}
\end{center}
\end{document}
--8<---------------cut here---------------end--------------->8---
*b-images.tex*
(run ps4pdf; this pdf file has to be created on a system with
ghostscript >8.31; output file is called b-images-pics.pdf):
--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage{pstricks-add}
\usepackage{pst-pdf}
\pagestyle{empty}
\begin{document}
\begin{pspicture}[showgrid=false](5,5)
\pscircle(1,1){1}
\end{pspicture}
\begin{pspicture}[showgrid=false](5,5)
\pscircle(2,2){1}
\end{pspicture}
\begin{pspicture}[showgrid=false](5,5)
\pscircle(3,3){1}
\end{pspicture}
\end{document}
--8<---------------cut here---------------end--------------->8---
Can I create the file b-images-pics.pdf using "whiledo" or "multido"
instead of having a "pspicture"-environment for each frame?
Is my question phrased in an understandable manner? Please do not
hesitate to ask for further details.
Cheers,
Patrick
BTW, there is a typo on the link you have provided:
<a class="moz-txt-link-freetext" href="http://tug.org/PSTricks/main.cgi?file=Animation/basics">http://tug.org/PSTricks/main.cgi?file=Animation/basics</a>
The main header for the example currently reads "package animat". This
should be "package animate" (with an "e" at the end).
Also, there is a dead link on the site. The link titled "Script for
Linux" (pointing to <a class="moz-txt-link-freetext" href="http://tug.org/PSTricks/Examples/AnimWaves.sh">http://tug.org/PSTricks/Examples/AnimWaves.sh</a>) is
dead.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="65">--
Jürgen Gilg
Austr. 59
70376 Stuttgart
-------------------------------------
Tel 0711.59 27 88
e-Mail <a class="moz-txt-link-abbreviated" href="mailto:gilg@acrotex.net">gilg@acrotex.net</a>
Websites <a class="moz-txt-link-abbreviated" href="http://www.acrotex.net">www.acrotex.net</a>
<a class="moz-txt-link-abbreviated" href="http://www.brueckenkurs-physik.de">www.brueckenkurs-physik.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.gilligan-online.de">www.gilligan-online.de</a>
</pre>
</body>
</html>