diff options
author | Karl Berry <karl@freefriends.org> | 2016-09-07 21:47:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-09-07 21:47:38 +0000 |
commit | 7072d6453d79c6f97fb1d64d706cce408656b919 (patch) | |
tree | 2f66e853393bb508ce57a0d64ba3c02600d1a4d1 /Master/texmf-dist/source/latex | |
parent | af98a3be5d1bfeed339b5836ad3cae5acecd7204 (diff) |
animate (7sep16)
git-svn-id: svn://tug.org/texlive/trunk@42009 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/animate/animate.tex | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/latex/animate/animate.tex b/Master/texmf-dist/source/latex/animate/animate.tex index 94b0b89ca7d..18987ff4aee 100644 --- a/Master/texmf-dist/source/latex/animate/animate.tex +++ b/Master/texmf-dist/source/latex/animate/animate.tex @@ -1,5 +1,6 @@ +\ifdefined\outputmode\outputmode=0\fi +\ifdefined\pdfoutput\pdfoutput=0\fi \tracingstats1 -\pdfoutput=0 % Copyright 2007--\today Alexander Grahn % % This material is subject to the LaTeX Project Public License. See @@ -23,8 +24,9 @@ \usepackage{lmodern} \usepackage{mflogo} \usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} \usepackage[protrusion]{microtype} -\usepackage{ifpdf} +%\usepackage{ifpdf} \usepackage{parskip} \usepackage{tabls} \usepackage{multirow} @@ -49,11 +51,11 @@ {\itshape\normalsize}} \makeatother -\ifpdf - \makeatletter - \@latex@error{This document contains PSTricks code.\MessageBreak Please compile it using the following commands:\MessageBreak\MessageBreak latex, dvips, ps2pdf\MessageBreak\MessageBreak Don't use option `-Ppdf` with dvips} - \makeatother -\fi +%\ifpdf +% \makeatletter +% \@latex@error{This document contains PSTricks code.\MessageBreak Please compile it using the following commands:\MessageBreak\MessageBreak latex, dvips, ps2pdf\MessageBreak\MessageBreak Don't use option `-Ppdf` with dvips} +% \makeatother +%\fi \def\keywords{include portable PDF animation animated PDF animating embed animated graphics LaTeX pdfLaTeX LuaLaTeX PSTricks pgf TikZ LaTeX-picture MetaPost inline graphics vector graphics animated GIF LaTeX dvips ps2pdf dvipdfmx XeLaTeX JavaScript Acrobat Reader PDF-XChange Foxit Reader} \hypersetup{ @@ -272,7 +274,7 @@ step Step through the animation one frame at a time per mouse-click. The \verb+<frame rate>+ argument will be ignored. \begin{verbatim} width=<h-size> -height=<v-size> | totalheight=<v-size>, +height=<v-size> | totalheight=<v-size> keepaspectratio \end{verbatim} Resize the animation widget. If only one of `\verb+width+' or `\verb+[total]height+' is given, the other dimension of the animation widget is scaled to maintain the aspect ratio of the first frame's content. If both `\verb+width+' and `\verb+[total]height+' are given together with `\verb+keepaspectratio+', the first frame's content is resized to fit within \verb+<h-size>+ and \verb+<v-size>+ while maintaining its original aspect ratio. Any valid \TeX{} dimension is accepted as a parameter. In addition, the length commands \verb+\width+, \verb+\height+, \verb+\depth+ and \verb+\totalheight+ can be used to refer to the original dimensions of the first frame of the animated sequence. @@ -525,7 +527,7 @@ name & description\\\hline\hline \subsection[Animations from sets of files, using `animategraphics' command]{Animations from sets of files, using {\tt \string\animategraphics} command}\label{sect:examples} Animations in this section are made from graphics files that were prepared with \MP. Run `\verb+mpost --tex=latex+' on the files ending in `.mp' in the `files' directory to generate the graphics files. Both examples make use of the `\verb+timeline+' option to reduce the resulting PDF file size. -The first example, Fig.~\ref{fig:taylor}, originally written by Jan Hole\v{c}ek~\cite{hol}, shows the exponential function $y=e^x$ and its approximation by Taylor polynomials of different degree. Below the animation, a custom button was inserted using the JavaScript programming interface and the \verb+\mediabutton+ command from the `media9' package. +The first example, Fig.~\ref{fig:taylor}, originally written by Jan HoleÄek~\cite{hol}, shows the exponential function $y=e^x$ and its approximation by Taylor polynomials of different degree. Below the animation, a custom button was inserted using the JavaScript programming interface and the \verb+\mediabutton+ command from the `media9' package. \small \begin{verbatim} @@ -914,13 +916,13 @@ The last inline example in Fig.~\ref{fig:metronome} is a ticking metronome writt \define@key[psset]{pst-metronome}{r}{\def\psk@oscmetronomer{#1 }} \psset[pst-metronome]{r=1} % rayon du disque en cm \define@key[psset]{pst-metronome}{x}{\def\psk@oscmetronomex{#1 }} -\psset[pst-metronome]{x=8.4} % position du curseur en cm par rapport à l'axe +\psset[pst-metronome]{x=8.4} % position du curseur en cm par rapport à l'axe \define@key[psset]{pst-metronome}{d}{\def\psk@oscmetronomed{#1 }} \psset[pst-metronome]{d=3.2} % distance de l'axe au centre du disque en cm \define@key[psset]{pst-metronome}{dt}{\def\psk@oscmetronomedt{#1 }} \psset[pst-metronome]{dt=0.01} % pas pour RK4 \define@key[psset]{pst-metronome}{nT}{\def\psk@oscmetronomenT{#1 }} -\psset[pst-metronome]{nT=1} % nombre de périodes représentées +\psset[pst-metronome]{nT=1} % nombre de périodes représentées %---- calculer theta(t) et thetapoint(t) -------- \def\psmetronome{\pst@object{psmetronome}} \def\psmetronome@i{% @@ -933,14 +935,14 @@ The last inline example in Fig.~\ref{fig:metronome} is a ticking metronome writt /gp 9.8 def % pesanteur /radius \psk@oscmetronomer 1e-2 mul def % en m /OA \psk@oscmetronomed 1e-2 mul def % distance de l'axe au centre du disque en m - /xC \psk@oscmetronomex 1e-2 mul def % position du curseur en m par rapport à l'axe - /theta0 \psk@oscmetronomethetai def % en degrés + /xC \psk@oscmetronomex 1e-2 mul def % position du curseur en m par rapport à l'axe + /theta0 \psk@oscmetronomethetai def % en degrés /theta0rad theta0 deg2rad def % en radians /Md \psk@oscmetronometM 1e-3 mul def % en kg /mc \psk@oscmetronometm 1e-3 mul def % en kg /dt \psk@oscmetronomedt def /nT \psk@oscmetronomenT def - % moment d'inertie du métronome + % moment d'inertie du métronome % J=1/2M*R^2+M*a^2+m*x^2 /Ji {0.5 Md mul radius dup mul mul Md OA dup mul mul add mc xC dup mul mul add} def /AT {4 @@ -949,10 +951,10 @@ The last inline example in Fig.~\ref{fig:metronome} is a ticking metronome writt div sqrt mul} def - % Pour le calcul de la période - % coefficients de l'approximation polynômiale du calcul - % de l'intégrale elliptique -% coefficient pour le calcul de l'intégrale elliptique + % Pour le calcul de la période + % coefficients de l'approximation polynômiale du calcul + % de l'intégrale elliptique +% coefficient pour le calcul de l'intégrale elliptique /m0 theta0 2 div sin def /m1 {1 m0 dup mul sub} def /m2 {m1 dup mul} def @@ -1046,7 +1048,7 @@ dt dt Tm nT mul { % pop batt posC 1e2 mul } for ] def -/xT { % pour une valeur particulière battement -> position du curseur +/xT { % pour une valeur particulière battement -> position du curseur /batt exch def /Tmetronome2 120 batt div dup mul def /A1 16 mc mul EllipticK dup mul mul def @@ -1059,7 +1061,7 @@ dt dt Tm nT mul { % pop xC2 0 ge {/posC xC2 def}{/posC xC1 def} ifelse posC 1e2 mul } def -/xC \psk@oscmetronomex 1e-2 mul def % position du curseur en m par rapport à l'axe +/xC \psk@oscmetronomex 1e-2 mul def % position du curseur en m par rapport à l'axe /Tm {AT EllipticK mul} def }% \end@SpecialObj% @@ -1073,7 +1075,7 @@ dt dt Tm nT mul { % pop \pstVerb{% /radius \psk@oscmetronomer 1e-2 mul def % en m /OA \psk@oscmetronomed 1e-2 mul def % distance de l'axe au centre du disque en m - /xC \psk@oscmetronomex 1e-2 mul def % position du curseur en m par rapport à l'axe + /xC \psk@oscmetronomex 1e-2 mul def % position du curseur en m par rapport à l'axe }% \psframe[fillstyle=solid](! -0.075 \psk@oscmetronomed neg)(0.075,13) \pscircle[fillstyle=solid,fillcolor={[rgb]{0.75 0.75 0.75}}](! 0 \psk@oscmetronomed neg){!radius 1e2 mul} @@ -1320,12 +1322,12 @@ Note that the name of the Ghostscript executable may vary between operating syst \end{itemize} \section{Acknowledgements} -I would like to thank Fran\c{c}ois Lafont who discovered quite a few bugs and made many suggestions that helped to improve the functionality of the package. Many thanks to Jin-Hwan Cho, the developer of `\verb+dvipdfmx+', for contributing the `\verb+dvipdfmx+' specific code, and to Walter Scott for proof-reading the documentation. +I would like to thank François Lafont who discovered quite a few bugs and made many suggestions that helped to improve the functionality of the package. Many thanks to Jin-Hwan Cho, the developer of `\verb+dvipdfmx+', for contributing the `\verb+dvipdfmx+' specific code, and to Walter Scott for proof-reading the documentation. \begin{thebibliography}{8} \bibitem{chupin} Chupin, M.: \emph{Syracuse MetaPost/Animations.} URL: \url{http://melusine.eu.org/syracuse/metapost/animations/chupin/?idsec=scara} \bibitem{gilg05} Gilg, J.: PDF-Animationen. In: \emph{Die \TeX nische Kom\"odie}, Issue 4, 2005, pp.~30--37 -\bibitem{hol} Hole\v{c}ek, J.: \emph{Animations in a pdf\TeX-generated PDF}. URL: \url{http://www.fi.muni.cz/~xholecek/tex/pdfanim.xhtml} +\bibitem{hol} HoleÄek, J.: \emph{Animations in a pdf\TeX-generated PDF}. URL: \url{http://www.fi.muni.cz/~xholecek/tex/pdfanim.xhtml} \bibitem{luque12} Luque, M.: \emph{PSTricks : applications.} URL: \url{http://pstricks.blogspot.com} \bibitem{media9} \emph{The media9 Package}. URL: \url{http://www.ctan.org/pkg/media9} \end{thebibliography} |