Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there any way to include an animated GIF directly in either PDFLaTeX or XeLaTeX? I realize the animate package can include animations in a PDF, but it doesn't support animated GIFs and you have to split them up manually into EPS or PNG files as far as I can tell.

share|improve this question
1  
What is the problem with splitting the gif first? The manual part of the job is to enter something like `convert my.gif my.png' at the command line. – AlexG Nov 15 '10 at 12:34
2  
It's a pain in the butt! – ptomato Nov 15 '10 at 12:36
2  
In this case, I recommend to abstain from using computers. – AlexG Nov 15 '10 at 12:43
2  
There was really no reason for that. I think my question is perfectly legitimate - I'm asking whether there is any way to do it without splitting the GIF by hand. "No" is a perfectly reasonable answer. – ptomato Nov 15 '10 at 12:46
Also, when I entered my comment, I hadn't yet seen the edit to your comment where you said it was a one-line command. Let me point out though, that I'm stuck on a Windows machine where "convert" is a command to modify the file system on your drive. – ptomato Nov 15 '10 at 12:49
show 2 more comments

1 Answer

up vote 7 down vote accepted

Yes, use the movie15 package (in Latex). You will need to use a PDF viewer that supports animated content.

share|improve this answer
14  
What – I can't get animations on paper? They do have that in the Harry Potter movies. Why can't we? – Harald Hanche-Olsen Nov 15 '10 at 10:57
7  
@Harald: yes, paper is a sort of PDF viewer, but it's hard to find paper that supports animated content. I've had no personal experience with magic paper. I'd love to hear of other people's... – Charles Stewart Nov 15 '10 at 11:18
This seems to work, although it doesn't compile in XeLaTeX, only in PDFLaTeX. Unfortunately I haven't managed to find a PDF viewer that will show the animated GIF! Even Acrobat says there's no plugin for GIFs available. – ptomato Nov 15 '10 at 11:30
5  
@Charles: Oh, it's been around for a while. Remember the old comics when you need to flip quickly through the pages to see an animation effect? Now, I'm sure some journals would object heavily to my 1200+ page manuscript containing 60s of video @ 24 fps.. – Martin Tapankov Nov 15 '10 at 13:34
5  
@Martin: You are quite right! Someone must write a printer driver that creates flip books when given an animated GIF. – Charles Stewart Nov 16 '10 at 10:19
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.