Can I use beamer
to display animations created by GeoGebra? GeoGebra can export Graphics to PGF/TikZ.
\documentclass[10pt]{article}
\usepackage{pgf,tikz}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\definecolor{qqqqff}{rgb}{0.,0.,1.}
\definecolor{ffqqqq}{rgb}{1.,0.,0.}
\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\draw[->,color=black] (-1.097777777777778,0.) -- (6.4044444444444455,0.);
\foreach \x in {-1.,-0.5,0.5,1.,1.5,2.,2.5,3.,3.5,4.,4.5,5.,5.5,6.}
\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
\draw[->,color=black] (0.,-2.0044444444444456) -- (0.,2.1555555555555586);
\foreach \y in {-2.,-1.5,-1.,-0.5,0.5,1.,1.5,2.}
\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};
\draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};
\clip(-1.097777777777778,-2.0044444444444456) rectangle (6.4044444444444455,2.1555555555555586);
\draw [line width=2.pt] (0.,0.) circle (1.cm);
\draw [domain=-0.00:6.2918,color=ffqqqq] plot(\x,{sin(\x*360/6.2918)});
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt,color=qqqqff] (0.9427546655283462,0.3334870921408144)-- (0.34,0.3334870921408144);
\begin{scriptsize}
\draw [fill=uuuuuu] (0.9427546655283462,0.3334870921408144) circle (1.5pt);
\draw[color=uuuuuu] (1.0088888888888892,0.4577777777777792) node {$P$};
\draw [fill=uuuuuu] (0.34,0.3334870921408144) circle (1.5pt);
\draw[color=uuuuuu] (0.40444444444444455,0.4577777777777792) node {$Q$};
\end{scriptsize}
\end{tikzpicture}
\end{document}
Best Answer
The following text is summarized from http://texwelt.de/wissen/fragen/7875/kann-ich-eine-interaktive-geogebra-datei-in-ein-latex-beamer-dokument-einbinden
@HenriMenke In case you would like to answer this question yourself, I will happily delete this
Save you animation as an animated gif, see https://www.geogebra.org/manual/en/Export_to_LaTeX_%28PGF,_PSTricks%29_and_Asymptote#Export_-_Graphics_View_as_Animated_GIF for a tutorial
Divide this .gif into individual frames. You can use the following command line expression to do this:
This will result in individual files, named animate-0.pdf to e.g. animate-200.pdf
To animate these files in beamer:
Use adobe reader (or another viewer capable of javascript) to view the pdf.