How to include animated GIF in LaTeX / PDF
GeoGebra allows exporting animated GIF images but does not export the Protocols of Construction, the ide of this post is how to include GIF and animated Construction Protocols in LaTeX.
For include animated GIFs Need ImageMagick program and one GIF animated, for this example we use the picture hypo_hypotrochoid_001.gif
Now follow steps
1. Create a directory called test and copy hypo_hypotrochoid_001.gif
2.The following is convert the image into separate files, we have two cases
a) For Latex users (latex>dvisps>ps2pdf) open a command prompt, move to the test directory and enter the following line
then create the directory imgeps and copy ALL pictures in this.
b) For pdfLatex users (xelatex,lualatex) open a command prompt, move to the test directory and enter the following line
then create the directory imgpdf and copy ALL pictures in this.
With this we have completed the process of conversion of images, we can now create your TEX file
3.We create a tex file and add the following lines into the preamble
4. And the body of the document add the line
Compiled and finish, we have a PDF with an animated image.
To animated construction step we use the environment animateinline, this environment allows separate figure for steps, this will use the \newframe, the idea goes like this, we create our figure with GeoGebra and export, depending on the situation we have to add different lines.
Now we must create the "timeline", this is a file containing the order and time of the transparencies, the amount of overhead this ity in the amount of \newframe which is used, this file has the following form
To fully understand how it works you should read the documentation of animate (texdoc animate for TeXLive)
Compressed file attached two examples pstanimate.pdf and tikzanimate.pdf
Hope this helps for users of GeoGebra and LaTeX