Tutorial of how to embed animations to LaTeX documents The tutorial can be viewed as pdf here. The .tex file itself can be used as a working example.