I'm looking to use the animate package in beamer to display animated graphics to my class, and I was wondering if it'd be possible for the animation to work on their Chromebooks. It seems Adobe isn't supported on ChromeOS, so is there any other alternative?

This question seems relevant, but I don't have any movie files or gifs, just what I've made using the animate package in LaTeX.

I understand this is quite likely not possible, but any help would be much appreciated.

  • Per the animate documentation the other viewer which can run the animation is PDF-XChange Viewer Commented Mar 26, 2015 at 2:26
  • pdf-xchange viewer did not run my animations inside PDF. Only Adobe PDF reader did.
    – Nasser
    Commented Apr 24, 2018 at 2:43
  • KDE Okular supports animations made with pkg animate.
    – AlexG
    Commented Feb 15, 2022 at 17:01

1 Answer 1


1 beamer class document in SVG format

Think about giving up the PDF format in favour of SVG.

Animations run in all contemporary Web browsers, while Blink-based ones (Chromium, Chrome, Edge, Opera) have the best performance. Also run on mobile devices.

With SVG as output format, video and YouTube embeds are possible too, using package media4svg; see: MP4 in presentation in a non-broken way . And even animated Gif.

Click the image to start presentation in the Web browser and press F11 for full-screen. Navigate through slides with PgUp and PgDown, mouse left or right click, or mouse wheel.

Compile the example code with

latex svgbeamer
latex svgbeamer
dvisvgm --zoom=-1 --font-format=woff2 --bbox=papersize --page=1- --linkmark=none svgbeamer

Example code svgbeamer.tex:



% slide navigation via keyboard and mouse left-or-right-click/mouse wheel,
% mouse cursor autohide on idle; navigation symbols <--, -->
\setbeamertemplate{navigation symbols}{}
    <style>svg{cursor: none}</style>%
    <script type="text/javascript">%
      var cursorTimer;%
      var downOnLink=false;%
      var downOnRoot=false;%
      function islink(tg){return (tg.tagName=='a') ? true : tg.parentNode ? islink(tg.parentNode) : false;};%
      function ismmedia(tg){return (tg.tagName=='video'||tg.tagName=='audio') ? true : tg.parentNode ? ismmedia(tg.parentNode) : false;};%
      document.addEventListener('mousemove', function(e){%
      window.addEventListener('contextmenu', function(e){% capture right click
        if(!islink(e.target)&&!ismmedia(e.target)) e.preventDefault();%
      document.addEventListener('mousedown', function(e){%
        if(islink(e.target)||ismmedia(e.target)) downOnLink=true;%
        else downOnRoot=true;%
      document.addEventListener('mouseup', function(e){%
          if(!e.shiftKey&&e.button==0) document.location.replace('\jobname-\zeroPad{\PreviousTotalPages}{\the\numexpr\currentPageNumber+1\relax}.svg');%
          if(e.shiftKey||e.button>1) document.location.replace('\jobname-\zeroPad{\PreviousTotalPages}{\the\numexpr\currentPageNumber-1\relax}.svg');%
      document.addEventListener('wheel', function(e){%
% helper macro \zeroPad : zero-pads integer according to template,
% e. g. 123 --> 00123 if template is `99999`
% #1: arbitrary integer number as template specifying the
%     width, e. g. `987654' for a width of 6 digits
% #2: the number to be formatted
%low level macros used by \zeroPad
\def\zeroPadI#1#2{% #1: string of zeros specifying width, #2 number
\def\zeroTemplate#1#2{% create template (string of zeros) from given num

%required by PSTricks example

\title{Using package \emph{animate} without Adobe}
\subtitle{Use a Web browser and press \framebox{F11}}



  trivial example

%  PSTricks example by J. Gilg
\def\R{4}            % Radius des festen Kreises (Length fixed Circle)
\def\r{1}            % Radius des abrollenden Kreises (Length rolling Circle)
\def\A{0.75}         % Abstand erzeugenden Punkt zu Mittelpunkt des abrollenden Kreises (Length Pointer)
\def\winkel{360}     % Winkel: 1 Umlauf entspricht 360 (Angle: 1 revolution corresponds to 360)

  hue=0 1,

  \pstVerb{% erzeugender Punkt (parameterized Hypocycloide)
    /Xcoord \ai\space cos \R\space \r\space sub mul \ai\space \R\space \r\space sub \r\space div mul cos \A\space mul add def % (R-r)cos(a)+A cos[(R/r-1) a]
    /Ycoord \ai\space sin \R\space \r\space sub mul \ai\space \R\space \r\space sub \r\space div mul sin \A\space mul sub def % (R-r)sin(a)-A sin[(R/r-1) a]

  % erzeugender Punkt (generating point)
  \rput(0,0){\rput(!Xcoord Ycoord){\psBall}}%

     hue=0 1,

\begin{frame}[t]{PSTricks Animation}
At the end of a rainbow \dots, by Jürgen Gilg.
  \item best viewed in Blink-based browsers, such as Chromium, Chrome, Opera
  \item frame rate printed to JavaScript console (Ctrl+Shift+I)
  \pstVerb{/clip {} def}% disable `clip' for much better SVG performance in Firefox

  \begin{center}\Huge The End\end{center}


2 Animated SVG as file attachment to PDF

animate can export to standalone SVG animations, as outlined in https://tex.stackexchange.com/a/136919 . The SVG can be embedded as a file attachment to the PDF, and be run in a Web browser on click or touch:

\usepackage{attachfile} % or attachfile2

or without being attached:


In either case, the operating system/window manager must be configured to use a Web browser as default application for opening SVG files.

Chromium-based Web browsers (e. g. Chrome, Opera) should be used for viewing animated SVG, because of their extremely good rendering performance. The Lorenz attractor may serve as a test example.

3 As for PDF, ...

... there is very good news! Open-Source PDF viewers are catching up.

Okular from KDE now supports JavaScript-driven animations. See:


Tested with Okular-1.10 (KDE-20.04.1)

We need an opensource PDF viewer with an opensource JavaScript engine added. All ingredients are there, e.g. Evince, Okular, JavaScriptCore from webkit.org (used by Apples web browser Safari), V8 (Google Chrome) or SpiderMonkey (Firefox).

MuPDF is a good starting point, but its integrated JavaScript support is quite rudimentary.

And the PDF rendering performance should be high, which is crucial for animations. MuPDF is one rendering library. The other two, Okular, Evince are based on the Poppler library.

The faster one, either MuPDF or Poppler should be chosen.

Someone should take up the challenge and put everything together.

  • Thanks for the answer. I'll have a look into whether it's possible to implement one of those on their devices :)
    – Platehead
    Commented Mar 27, 2015 at 12:41
  • 2
    To be clear, you are saying, "there is not yet a PDF viewer, other than Adobe, that can correctly display LaTeX animations." Is this correct? Commented Nov 2, 2015 at 18:51
  • 1
    @stvn66: Seem to work as well: PDF-XChange, Foxit (all of them closed source though). You may need to try first all three package options method=icon | widget | ocg.
    – AlexG
    Commented Nov 3, 2015 at 8:05
  • 0@stvn66 Animations most certainly don't worki in Okular, Evince or Chrome browser's integrated PDF viewer. I will give Foxit reader a go since it also has a Linux version which I can hopefully install on my Debian Jessie. Commented Mar 22, 2016 at 7:09
  • 1
    Interesting answer! I wonder why I had never seen it before! Maybe this technique could also be used for this question: tex.stackexchange.com/questions/455709/… Commented Dec 21, 2018 at 12:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .