walter a kehowski
2014-04-20
When I add the the line A.movie(0,num_anim); to my animation as in the Gallery and compile my file taylor-series-exp.tex I get the error message below. Files such as taylor-series-exp-1+0.tex and taylor-series-exp-1+0_0.pdf are written and taylor-series-exp-1+0.tex has the line
\includegraphics{\ASYprefix\jobname-1+0_0.pdf}%
so it's inputting the correct file.
However, it seems that convert.exe is clearly looking for taylor-series-exp-1+0.pdf.
Is this a bug or am I doing something wrong?
The animation is the same code as in my previous question on including more than one animation in a document but having only the first one work. The only addition I've made is the A.movie line mentioned above.
Executing: asy.exe -v C:\Users\user\Documents\Classes\230-Calc-II-2013-14-Sp\ser
ies-anim\taylor-series-exp-1.asy
Processing taylor-series-exp-1
y=exp(x)...
Wrote taylor-series-exp-1+0.tex
Wrote taylor-series-exp-1+1.tex
Wrote taylor-series-exp-1+2.tex
Wrote taylor-series-exp-1+3.tex
Wrote taylor-series-exp-1+4.tex
Wrote taylor-series-exp-1+5.tex
Wrote taylor-series-exp-1+6.tex
Wrote taylor-series-exp-1+7.tex
Wrote taylor-series-exp-1+8.tex
convert.exe: unable to open image taylor-series-exp-1+0.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: unable to open image
taylor-series-exp-1+1.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: unable to open image taylor-series-exp-1+2.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: unable to open image
taylor-series-exp-1+3.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: unable to open image taylor-series-exp-1+4.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: unable to open image
taylor-series-exp-1+5.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: unable to open image taylor-series-exp-1+6.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: unable to open image
taylor-series-exp-1+7.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: unable to open image taylor-series-exp-1+8.pdf': No such file or d
irectory @ error/blob.c/OpenBlob/2647.
convert.exe: no images defined
gif:taylor-series-exp-1.gif' @ error/convert.c/C
onvertImageCommand/3161.
C:\Program Files (x86)\Asymptote/animation.asy: 85.15: merge failed
Press any key to continue . . .
John Bowman
2014-04-20
Which animation from the gallery are you referring to? In order to help, we would really need to see the code, even if there are only minimal changes from some other example.
walter a kehowski
2014-04-22
If I compile the following document that includes the code form
http://asymptote.sourceforge.net/gallery/animations/wavepacket.asy
I get the same error as above: files such as asy-gallery-example-1+0.tex and asy-gallery-example-1+0_0.pdf are generated but convert.exe looks for asy-gallery-example-1+0.pdf (without the _0 in each filename).
Any ideas on what could be going wrong?
\documentclass[10pt]{article} \usepackage{amsmath} \pagestyle{empty} \usepackage[pdftex]{graphicx} \usepackage[inline]{asymptote} \usepackage{animate} \begin{document} \begin{asydef} import math; import graph; import animation; \end{asydef} \begin{center} \begin{asy} // Author : Philippe Ivaldi // http://www.piprime.fr/ // 2006/11/10 //import animation; //import graph; unitsize(x=2cm,y=1.5cm); typedef real realfcn(real); real lambda=4; real T=2; real [] k=new real[3]; real [] w=new real[3]; k[0]=2pi/lambda; w[0]=2pi/T; real dk=-.5; k[1]=k[0]-dk; k[2]=k[0]+dk; real dw=1; w[1]=w[0]-dw; w[2]=w[0]+dw; real vp=w[1]/k[1]; real vg=dw/dk; realfcn F(real x) { return new real(real t) { return cos(k[1]*x-w[1]*t)+cos(k[2]*x-w[2]*t); }; }; realfcn G(real x) { return new real(real t) { return 2*cos(0.5*(k[2]-k[1])*x+0.5*(w[1]-w[2])*t); }; }; realfcn operator -(realfcn f) {return new real(real t) {return -f(t);};}; animation A; real tmax=abs(2pi/dk); real xmax=abs(2pi/dw); pen envelope=0.8*blue; pen fillpen=lightgrey; int n=50; real step=tmax/(n-1); for(int i=0; i < n; ++i) { save(); real t=i*step; real a=xmax*t/tmax-xmax/pi; real b=xmax*t/tmax; path f=graph(F(t),a,b); path g=graph(G(t),a,b); path h=graph(-G(t),a,b); fill(buildcycle(reverse(f),g),fillpen); draw(f); draw(g,envelope); draw(h,envelope); A.add(); restore(); } for(int i=0; i < n; ++i) { save(); real t=i*step; real a=-xmax/pi; real b=xmax; path f=graph(F(t),a,b); path g=graph(G(t),a,b); path h=graph(-G(t),a,b); path B=box((-xmax/pi,-2),(xmax,2)); fill(buildcycle(reverse(f),g,B),fillpen); fill(buildcycle(f,g,reverse(B)),fillpen); draw(f); draw(g,envelope); draw(h,envelope); A.add(); restore(); } A.movie(0,10); \end{asy} \end{center} \end{document}
and here is the (abridged) error at the console:
Wrote asy-gallery-example-1+1.tex Wrote asy-gallery-example-1+2.tex Wrote asy-gallery-example-1+3.tex Wrote asy-gallery-example-1+4.tex convert.exe: unable to open image `asy-gallery-example-1+0.pdf': No such file or directory @ error/blob.c/OpenBlob/2647. convert.exe: unable to open image `asy-gallery-example-1+1.pdf': No such file or directory @ error/blob.c/OpenBlob/2647. convert.exe: unable to open image `asy-gallery-example-1+2.pdf': No such file or directory @ error/blob.c/OpenBlob/2647. convert.exe: unable to open image `asy-gallery-example-1+3.pdf': No such file or directory @ error/blob.c/OpenBlob/2647. convert.exe: unable to open image `asy-gallery-example-1+4.pdf': No such file or directory @ error/blob.c/OpenBlob/2647. convert.exe: no images defined `gif:asy-gallery-example-1.gif' @ error/convert.c /ConvertImageCommand/3161. C:\Program Files (x86)\Asymptote/animation.asy: 85.15: merge failed Press any key to continue . . .
John Bowman
2014-04-22
First notice that the file you referred to is an asy file, not a LaTeX document.
That difference is crucial: you are can't generate a gif movie inside a document; this example is meant to be run as an standalone asy file only.
I repeat: if you want to generate an inline movie with a LaTex document, you MUST follow the example
inlinemovie.tex
You already have an example based on this model working, so please let's move on now...
walter a kehowski
2014-04-22
Ah! I hoped it was something like that. Thank you!