I know the many postprocessive threads from .tex to .ppt/.pptx/... where the main thread Export beamer slides to powerpoint/openoffice-impress/keynote editable format. However, their idea is mainly to postprocessively convert Beamer generated PDFs to ppt/pptx/libre office/... However, I would like to generate presentations with animations (.gif) from LaTeX source files. Pseudocode
You can use Imagemagick to convert the GIF to a series of PNG frames, and use this method to play back the series of image files - Vortico on the thread Putting animations into latex beamer presentation. Use png, gif? Run the command on the example penguin .gif animation and you get a directory of files
out00000.png
,out00001.png
, ... andout00016.png
# https://stackoverflow.com/a/12828048/54964 convert -coalesce giphy.gif out%05d.png
Use the .tex code in the same directory as 16 .png images.
\documentclass{beamer} \usepackage{animate} \usepackage{graphicx} \begin{document} \begin{frame} \begin{figure} % https://tex.stackexchange.com/a/99361/13173 % https://tex.stackexchange.com/a/355306/13173 \animategraphics[controls,autoplay,loop]{2}{out000}{00}{16} \end{figure} \end{frame} \end{document}
Present LaTeX beamer + .gif animations in any presentation format base based on the thread Putting animations into latex beamer presentation. Use png, gif? and how to include external animation (with animate) in Beamer
Output: pdf file does not run any animation in acroread
, but only a starting picture of the animation there; also the size of the figure is going over the frame size
Fig. 1 Example .gif animation where you see the animation after clicking it,
Fig. 2 Output in acroread
with only starting picture, no capability to start the animation,
Fig. 3 Output of Sharelatex here by AlexG where the penguins do not move if code generated in my system,
Fig. 4 Output of Sharelatex here by AlexG where the penguis do move if download ShareLaTeX version of the document and view through acroread
, like in Fig. 1!
Expected output: one slide with the animation on one page
Testing AlexG's proposal
Generate images as stated first.
Have \animategraphics[width=\textwidth, ...]{12}...
in contrast to the starting point.
The picture is now correctly in the center.
TODO why {12}
and not {2}
. Only relevant changes of the code from the first code
% AlexG
\begin{frame}
\begin{figure}
% https://tex.stackexchange.com/a/99361/13173
% https://tex.stackexchange.com/a/355306/13173
\animategraphics[controls,autoplay,loop]{2}{out000}{00}{16}
\end{figure}
\end{frame}
Output: generated in my system and viewed in acroread
, no response to action of buttons, the animation is not moving at start neither
Output of same code in ShareLaTeX: download the document from ShareLaTeX and view it with acroread
, you get expected output - the animation is in action from the start correctly
This phase difference proposes there is a problem in my TeXLive.
TeXLive: 2016
PDF viewer: Adobe Acrobat 9.5 (acroread
) installed as described here
OS: Debian 8.7
Internet browsers for ShareLatex: Firefox, Google Chrome