Graphics, Figures & TablesProblem with animate package

Information and discussion about graphics, figures & tables in LaTeX documents.
jonysatie
Posts: 27
Joined: Fri Apr 06, 2007 1:15 am

Problem with animate package

Post by jonysatie »

Hi everybody, how are you?

I have a problem when I try to include an animation with animate package. I have used animateinline environment und it's working in theory because there are no mistakes nor warnings at the output.
However there is no animation in the pdf. I'm using LaTeX=>PS=>PDF because I'm using EPS images to make this document, but I couldn't
include it due to their weight (3mb)

I also included the code as an attachment. I hope anyone could find what the problem is.
Thank you.
Attachments
problem.pdf
(56.75 KiB) Downloaded 451 times
problem.tex
(5.25 KiB) Downloaded 458 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem with animate package

Post by gmedina »

Hi,

I compiled your code and got the desired result. Perhaps you are using old versions of some packages? Try the following short example:

Code: Select all

\listfiles
\documentclass{article}
\usepackage{pst-plot}
\usepackage{animate}
\usepackage[spanish]{babel}
\usepackage[ansinew]{inputenc}
\usepackage{xcolor}
\usepackage{graphicx}

\begin{document}

\begin{center}
  \begin{animateinline}[controls, loop]{2}
  1
  \newframe[2]
  2
  \newframe[2]
  3	
  \end{animateinline}
\end{center}

\end{document}
I attach the resulting pdf. If you get something different after compilation of my example, go to the .log file and search for the *File List* section (the \listfiles command in the first line of my example code simply writes this list in the .log file). Compare this section with the one that I got:

Code: Select all

 *File List*
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pst-plot.sty    2004/07/15 package wrapper for pst-plot.tex
pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2009/05/19 v1.29 `PSTricks' (tvz,hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-plot.tex    2009/06/08 1.04 `pst-plot' (tvz)
 animate.sty    2009/08/17 PDF animations from files and inline graphics
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
   ifpdf.sty    2009/04/10 v2.0 Provides the ifpdf switch (HO)
 ifdraft.sty    2008/08/11 v1.3 Switch for option draft (HO)
    calc.sty    2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
  animfp.sty    2009/07/23 fixed point addition for animate.sty
   babel.sty    2008/07/06 v3.8l The Babel package
 bblopts.cfg    2006/07/31 v1.0 MiKTeX 'babel' configuration
 spanish.ldf
inputenc.sty    2006/05/05 v1.1b Input encoding file
 ansinew.def    2006/05/05 v1.1b Input encoding file
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
 ***********
Update packages, if necessary, and retry compiling my example. If problems persist, please report them.
Attachments
test.pdf
(14.07 KiB) Downloaded 561 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jonysatie
Posts: 27
Joined: Fri Apr 06, 2007 1:15 am

Problem with animate package

Post by jonysatie »

Thanks gmedina.

It works with your minimal example, but please try with my example. It's larger than the one you have posted.
Here I have my log anyways.

Code: Select all

 *File List*
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pst-plot.sty    2004/07/15 package wrapper for pst-plot.tex
pstricks.sty    2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2008/06/17 v1.24 `PSTricks' (tvz)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-plot.tex    2007/06/26 1.00 `pst-plot' (tvz)
 animate.sty    2009/08/31 PDF animations from files and inline graphics
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
   ifpdf.sty    2007/12/12 v1.6 Provides the ifpdf switch (HO)
 ifdraft.sty    2006/02/20 v1.2 Switch for option draft (HO)
    calc.sty    2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
  animfp.sty    2009/07/23 fixed point addition for animate.sty
   babel.sty    2008/03/16 v3.8j The Babel package
 bblopts.cfg    2006/07/31 v1.0 MiKTeX 'babel' configuration
 spanish.ldf
inputenc.sty    2006/05/05 v1.1b Input encoding file
 ansinew.def    2006/05/05 v1.1b Input encoding file
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
 ***********
The problem is that sometimes the animation appears and sometimes it doesn't. Please try the first example that I have uploaded.
Thanks again.

PD: by the way, which packages are already obsolet?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem with animate package

Post by gmedina »

jonysatie wrote:...The problem is that sometimes the animation appears and sometimes it doesn't. Please try the first example that I have uploaded.
Thanks again.
Of course I tried it (that's the first thing I did), and as I said before, it worked OK in my system. I attach the resulting pdf (of course, there's some problems with the accented vowels since your encoding is different from mine, but that's not relevant for the issue tretaed).
Attachments
test.pdf
(69.06 KiB) Downloaded 410 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jonysatie
Posts: 27
Joined: Fri Apr 06, 2007 1:15 am

Re: Problem with animate package

Post by jonysatie »

Ahhh I can't fix it. :(
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Problem with animate package

Post by gmedina »

As I mentioned before, perhaps the problem is that your system is using older versions of some packages (compare the two *File List* sections and you will notice that). Upgrade your packages and try again.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jonysatie
Posts: 27
Joined: Fri Apr 06, 2007 1:15 am

Problem with animate package

Post by jonysatie »

Ok. Now I have uploaded all the packages and the problem remains. I have here I clear example of what really happen. The first animation works but the second one doesn't. I can't upload EPS files because there are too big.
Why me !! xD

Code: Select all

 *File List*
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pst-plot.sty    2004/07/15 package wrapper for pst-plot.tex
pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2009/05/19 v1.29 `PSTricks' (tvz,hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-plot.tex    2009/06/08 1.04 `pst-plot' (tvz)
 animate.sty    2009/08/31 PDF animations from files and inline graphics
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
   ifpdf.sty    2009/04/10 v2.0 Provides the ifpdf switch (HO)
 ifdraft.sty    2008/08/11 v1.3 Switch for option draft (HO)
    calc.sty    2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
  animfp.sty    2009/07/23 fixed point addition for animate.sty
   babel.sty    2008/07/06 v3.8l The Babel package
 bblopts.cfg    2006/07/31 v1.0 MiKTeX 'babel' configuration
 spanish.ldf
inputenc.sty    2006/05/05 v1.1b Input encoding file
 ansinew.def    2006/05/05 v1.1b Input encoding file
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
 ***********
Attachments
proof.png
proof.png (88.07 KiB) Viewed 12003 times
intento.tex
(5.31 KiB) Downloaded 422 times
intento.pdf
(167.42 KiB) Downloaded 427 times
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Problem with animate package

Post by gmedina »

Without the actual images it can be really difficult to provide effective help.
Does the problem occur only with those particular eps images or can you reproduce
the problem with another set of eps images that you can attach here for us to test?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jonysatie
Posts: 27
Joined: Fri Apr 06, 2007 1:15 am

Re: Problem with animate package

Post by jonysatie »

Ok. Here I have included two eps images. Please take a look if you can !!
Attachments
forum.rar
(92.71 KiB) Downloaded 333 times
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Problem with animate package

Post by gmedina »

Unfortunately, with the code and images you provided, everything went OK in my system; no problems with the
animation (see the resulting pdf file attached). At this point, if you are getting undesired
results with that very same code, I don't know where the cause of your problem resides.
Perhaps a problem with your pdf viewer? Or perhaps with your dvi to ps or ps to pdf converters?
Attachments
test.pdf
(143.99 KiB) Downloaded 475 times
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply