Changes

Jump to navigation Jump to search
1,863 bytes added ,  13:17, 9 August 2020
m
Text replacement - "<cmd>" to "{{cmd|"
< [[Presentations]] | [[Presentation effects]] | [[RawSteps]] | [[SlideWithSteps]] | [[JavaScript]]>
 
== Introduction ==
* making <b>multiple pages</b> and (quickly) browse through them
* using <b>[[JavaScript]]</b>
* using <b>[[modules:animation|the animation module]]</b>* (probably one day [[SVG]] will anable enable that too)
The first alternative can be hardcoded, achieved with either some trickery (<{{cmd>|dorecurse</cmd> }} may sometimes help you) or with support of mudules modules such as [[RawSteps]].
This page will mostly deal with <b>[[JavaScript]]</b> animations.
* [[EuroAnim|Animated construction of the "euro" symbol]]
* pdfclock
* [[5BarMechAnim|Animation of a five bar mechanism]]
 
== Using [[modules:animation|the animation module]] ==
 
=== Simple example ===
<texcode>
\usemodule[animation]
\setupinteraction[state=start]
 
\starttext
 
\startanimation
{\externalfigure[dummy]A}
{\externalfigure[dummy]B}
{\externalfigure[dummy]C}
{\externalfigure[dummy]D}
\stopanimation
 
\stoptext
</texcode>
 
 
=== Add captions ===
<texcode>
\usemodule[animation]
\setupinteraction[state=start]
 
\definepairedbox[animationtext][location=top,align=middle,width=\textwidth]
 
\starttext
 
\startanimation
{\placeanimationtext{The letter a}{\externalfigure[dummy]}}
{\placeanimationtext{The letter b}{\externalfigure[dummy]}}
{\placeanimationtext{The letter c}{\externalfigure[dummy]}}
{\placeanimationtext{The letter d}{\externalfigure[dummy]}}
\stopanimation
 
\stoptext
</texcode>
 
=== Example with formulae ===
<texcode>
\usemodule[animation]
 
\setuppapersize[S6][S6]
 
\setupinteraction[state=start]
 
\definepairedbox[animationtext][location=top,align=middle,width=\textwidth]
 
\starttext
 
\startanimation
{\placeanimationtext{Sine norm, and}{\startformula \int_{0}^{2\pi}\sin^2(x)dx = \stopformula}}
{\placeanimationtext{Cosine norm}{\startformula\int_{0}^{2\pi}\cos^2(x)dx = \stopformula}}
{\placeanimationtext{are equal}{\startformula = \pi. \stopformula}}
\stopanimation
 
\stoptext
</texcode>
== Animating Text ==
TODO: presentations with [[source:s-pre-61.tex|pre-61]] == Making animations with external tools == === Samples ===* [http://www-math.univ-poitiers.fr/~phan/animations.html Gif Animation]* [http://melusine.eu.org/syracuse/metapost/animations/ Flash Animations] made with '''swftools'''
== Documentation ==
* Javascript JavaScript (as well as PDF) reference from Adobe: at [[http://partners.adobe.com/public/developer/acrobat/sdk/index_doc.htmlAdobe]] {{todo|Here are a lot of empty sections, and a bit more order won't hurt}} [[Category:Graphics]]

Navigation menu