| 1 |
=================================== |
| 2 |
The animate Package |
| 3 |
|
| 4 |
https://gitlab.com/agrahn/animate |
| 5 |
|
| 6 |
(C) 2007--\today Alexander Grahn |
| 7 |
=================================== |
| 8 |
|
| 9 |
|
| 10 |
1. Description |
| 11 |
============== |
| 12 |
|
| 13 |
This package provides an interface to create portable, JavaScript driven PDF |
| 14 |
and SVG animations from sets of (vector) graphics or rasterized image files |
| 15 |
or from inline (vector) graphics, such as LaTeX-picture, PSTricks or pgf/TikZ |
| 16 |
generated pictures, or just from typeset text. |
| 17 |
|
| 18 |
It supports the usual PDF making workflows, i. e. pdfLaTeX, LaTeX -> dvips |
| 19 |
-> ps2pdf (Ghostscript)/Distiller, (Xe)LaTeX -> (x)dvipdfmx, LuaLaTeX, and |
| 20 |
LaTeX -> dvisvgm for SVG. |
| 21 |
|
| 22 |
The resulting PDF with animations can be viewed in Acrobat Reader (except on |
| 23 |
mobile devices), KDE Okular, PDF-XChange, Foxit Reader, PDF.js (Firefox' |
| 24 |
built-in PDF viewer and extension for Chromium-based browsers). |
| 25 |
|
| 26 |
Animated SVG are self-contained files that can be embedded into HTML using |
| 27 |
the `<object>' tag or opened directly in a Web browser, such as Firefox or |
| 28 |
Chromium. |
| 29 |
|
| 30 |
Note, this file only gives a summary of usage and available package and |
| 31 |
command options. Please refer to the documentation `animate.pdf' for details |
| 32 |
and examples. |
| 33 |
|
| 34 |
* Keywords: include portable PDF animation SVG animation animated PDF animated |
| 35 |
SVG dvisvgm html TeX4ht web animating embed animated graphics |
| 36 |
LaTeX pdfLaTeX LuaLaTeX PSTricks pgf TikZ LaTeX-picture MetaPost |
| 37 |
inline graphics vector graphics animated GIF LaTeX dvips ps2pdf |
| 38 |
dvipdfmx XeLaTeX JavaScript Acrobat Reader KDE Okular PDF-XChange |
| 39 |
Foxit Reader PDF.js Firefox Chrome Chromium |
| 40 |
|
| 41 |
|
| 42 |
2. Usage |
| 43 |
======== |
| 44 |
|
| 45 |
\usepackage[<package options>]{animate} |
| 46 |
|
| 47 |
* Package options: |
| 48 |
|
| 49 |
width=<h-size>, height=<v-size>, totalheight=<v-size>, |
| 50 |
keepaspectratio, scale=<factor>, |
| 51 |
bb=<llx> <lly> <urx> <ury>, |
| 52 |
viewport=<llx> <lly> <urx> <ury>, |
| 53 |
trim=<left> <bottom> <right> <top>, |
| 54 |
hiresbb, pagebox=..., interpolate, |
| 55 |
type=[<file ext>], |
| 56 |
final, draft, nomouse, |
| 57 |
autopause, autoplay, autoresume, |
| 58 |
controls[=all | none | ...], |
| 59 |
controlsaligned=left[+<indent>] | center | right[+<indent>], |
| 60 |
buttonsize=<size>, |
| 61 |
buttonbg=<colour>, buttonfg=<colour>, buttonalpha=<opacity>, |
| 62 |
loop, palindrome, step, |
| 63 |
poster[=first | <num> | last | none], |
| 64 |
alttext=none | {<alternative description>}, |
| 65 |
method=icon | widget | ocg, |
| 66 |
dvipdfmx, dvisvgm, xetex, |
| 67 |
export |
| 68 |
|
| 69 |
|
| 70 |
\animategraphics[<options>]{<frame rate>}{<file basename>}{<first>}{<last>} |
| 71 |
|
| 72 |
\begin{animateinline}[<options>]{<frame rate>} |
| 73 |
... typeset material ... |
| 74 |
\newframe[<frame rate>] |
| 75 |
... typeset material ... |
| 76 |
\newframe*[<frame rate>] |
| 77 |
... typeset material ... |
| 78 |
\newframe |
| 79 |
\multiframe{<number of frames>}{[<variables>]}{ |
| 80 |
... repeated (parameterized) material ... |
| 81 |
\multiframebreak % optional ! |
| 82 |
} |
| 83 |
\end{animateinline} |
| 84 |
|
| 85 |
* Command options: |
| 86 |
|
| 87 |
width=<h-size>, height=<v-size>, totalheight=<v-size>, |
| 88 |
keepaspectratio, scale=<factor>, |
| 89 |
bb=<llx> <lly> <urx> <ury>, |
| 90 |
viewport=<llx> <lly> <urx> <ury>, |
| 91 |
trim=<left> <bottom> <right> <top>, |
| 92 |
hiresbb, pagebox=..., interpolate, |
| 93 |
type=[<file ext>], |
| 94 |
final, draft, nomouse, |
| 95 |
autopause, autoplay, autoresume, |
| 96 |
controls[=all | none | ...], |
| 97 |
controlsaligned=left[+<indent>] | center | right[+<indent>], |
| 98 |
buttonsize=<size>, |
| 99 |
buttonbg=<colour>, buttonfg=<colour>, buttonalpha=<opacity>, |
| 100 |
loop, palindrome, step, |
| 101 |
measure, |
| 102 |
poster[=first | <num> | last | none], |
| 103 |
alttext=none | {<alternative description>}, |
| 104 |
begin={<begin text>}, end={<end text>}, |
| 105 |
timeline=<timeline file>, |
| 106 |
method=icon | widget | ocg, |
| 107 |
every=<number>, label=<label text> |
| 108 |
|
| 109 |
|
| 110 |
3. Requirements |
| 111 |
=============== |
| 112 |
|
| 113 |
Recent versions of |
| 114 |
* Ghostscript or Adobe Distiller |
| 115 |
* dvipdfmx |
| 116 |
* dvisvgm |
| 117 |
* PDF: Acrobat Reader, KDE Okular, PDF-XChange, Foxit Reader, PDF.js, Firefox |
| 118 |
* SVG: Blink-based (Chromium, Chrome, Opera, ...) web browsers or Firefox |
| 119 |
|
| 120 |
|
| 121 |
4. Installation |
| 122 |
=============== |
| 123 |
|
| 124 |
Unzip the file `animate.tds.zip' into the local TDS root directory which can |
| 125 |
be found by running |
| 126 |
|
| 127 |
kpsewhich -var-value TEXMFLOCAL |
| 128 |
|
| 129 |
on the command line. |
| 130 |
|
| 131 |
After installation, update the filename database by running `texhash' on the |
| 132 |
command line. |
| 133 |
|
| 134 |
TeXLive and MiKTeX users should run the package manager for installation. |
| 135 |
|
| 136 |
|
| 137 |
* * * |
| 138 |
|
| 139 |
This material is subject to the LaTeX Project Public License. See |
| 140 |
|
| 141 |
http://mirrors.ctan.org/macros/latex/base/lppl.txt |
| 142 |
|
| 143 |
for the details of that license. |