diff options
author | Karl Berry <karl@freefriends.org> | 2017-02-22 23:04:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-02-22 23:04:10 +0000 |
commit | c4e9dec3e0c2a59adf33d09fe440f3c39944f7ed (patch) | |
tree | 6cf718f12c3b98a23fa6c284b824a99b80a8af95 /Master/texmf-dist/source/latex/animate | |
parent | 61baa79e78e4c4e58908e4a028784eb87f5d8378 (diff) |
animate (22feb17)
git-svn-id: svn://tug.org/texlive/trunk@43307 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/animate')
-rw-r--r-- | Master/texmf-dist/source/latex/animate/animate.tex | 14 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/animate/files/exp.mp | 7 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/animate/files/scarab.mp | 5 |
3 files changed, 17 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/animate/animate.tex b/Master/texmf-dist/source/latex/animate/animate.tex index f1e93a0826c..41165279f5a 100644 --- a/Master/texmf-dist/source/latex/animate/animate.tex +++ b/Master/texmf-dist/source/latex/animate/animate.tex @@ -20,10 +20,12 @@ \addmediapath{files} \usepackage{color} \usepackage{textcomp} -\usepackage{lmodern} \usepackage{mflogo} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} +%\usepackage{lmodern} + \usepackage[tt=false]{libertine} %override beramono (doesn't look like tt font) + \usepackage[libertine]{newtxmath} \usepackage[protrusion]{microtype} %\usepackage{ifpdf} \usepackage{parskip} @@ -108,7 +110,7 @@ %\newpage \section{Introduction} -This package provides an interface to create PDFs with animated content from sets of graphics or image files, from inline graphics, such as \LaTeX-picture, PSTricks or pgf/TikZ generated pictures, or just from typeset text. Unlike standard movie/video formats, package `animate' allows for animating vector graphics. The result is roughly similar to the SWF (Flash) format, although not as space-efficient. +This package provides an interface for creating PDFs with animated content from sets of graphics or image files, from inline graphics, such as \LaTeX-picture, PSTricks or pgf/TikZ generated pictures, or just from typeset text. Unlike standard movie/video formats, package `animate' allows for animating vector graphics. The result is roughly similar to the SWF (Flash) format, although not as space-efficient. The user interacts with the animation through optional animation controls or using the mouse like so: Pressing the mouse button over the animation widget immediately pauses a playing animation and releasing it resumes playback. Pressing the shift-key at the same time reverses the playback direction. Keeping the mouse button pressed while moving the mouse pointer off the animation widget permanently pauses playback. @@ -213,7 +215,7 @@ For example, given the sequence `frame\_5.png' through `frame\_50.png' from a po \animategraphics{12}{frame_}{5}{50} \end{verbatim} -The possible file formats depend on the output driver being used. In the case of \LaTeX{}+\verb+dvips+, files with the `eps' extension are at first searched for, followed by `mps' (\MP-generated Postscript) and `ps'. With pdf\LaTeX{} and Lua\LaTeX{} the searching order is: (1)~`pdf', (2)~`mps', (3)~`png', (4)~`jpg', (5)~`jpeg', (6)~`jbig2', (7)~`jb2', (8)~`jp2'\footnotemark[1], (9)~`j2k'\footnotemark[1], (10)~`jpx'\footnotemark[1]\footnotetext[1]{Only Lua\LaTeX{} currently supports JPEG2000.} and with \XeLaTeX{} or \LaTeX{}+\verb+dvipdfmx+: (1)~`pdf', (2)~`mps', (3)~`eps', (4)~`ps', (5)~`png', (6)~`jpg', (7)~`jpeg', (8)~`bmp'. That is, files capable of storing vector graphics are found first. Make sure that all file names have \emph{lower case} extensions. +The possible file formats depend on the output driver being used. In the case of \LaTeX{} + \verb+dvips+, files with the `eps' extension are at first searched for, followed by `mps' (\MP-generated Postscript) and `ps'. With pdf\LaTeX{} and Lua\LaTeX{} the searching order is: (1)~`pdf', (2)~`mps', (3)~`png', (4)~`jpg', (5)~`jpeg', (6)~`jbig2', (7)~`jb2', (8)~`jp2'\footnotemark[1], (9)~`j2k'\footnotemark[1], (10)~`jpx'\footnotemark[1]\footnotetext[1]{Only Lua\LaTeX{} currently supports JPEG2000.} and with \XeLaTeX{} or \LaTeX{}+\verb+dvipdfmx+: (1)~`pdf', (2)~`mps', (3)~`eps', (4)~`ps', (5)~`png', (6)~`jpg', (7)~`jpeg', (8)~`bmp'. That is, files capable of storing vector graphics are found first. Make sure that all file names have \emph{lower case} extensions. This searching procedure can be skipped thanks to the package and command option `\verb+type=<file ext>+'. It enforces the embedding of files with the given file name extension \verb+<file ext>+. @@ -522,9 +524,9 @@ name & description\\\hline\hline \end{tabularx} \end{table} -\clearpage +%\clearpage \section{Examples} -\subsection[Animations from sets of files, using `animategraphics' command]{Animations from sets of files, using {\tt \string\animategraphics} command}\label{sect:examples} +\subsection{Animations from sets of files, using {\tt\textbackslash animategraphics}}\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č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. @@ -679,7 +681,7 @@ The second, somewhat more complex example, Fig.~\ref{fig:scarab}, animates the g \end{document} \end{verbatim} \normalsize -\subsection[Animating PSTricks graphics, using `animateinline' environment]{Animating PSTricks graphics, using `{\tt animateinline}' environment} +\subsection{Animating PSTricks graphics, using `{\tt animateinline}' environment} Fig.~\ref{fig:torus} is an inline graphics example adapted from \cite{gilg05}. \small \begin{verbatim} diff --git a/Master/texmf-dist/source/latex/animate/files/exp.mp b/Master/texmf-dist/source/latex/animate/files/exp.mp index 064410ff502..ea8a3caeef0 100644 --- a/Master/texmf-dist/source/latex/animate/files/exp.mp +++ b/Master/texmf-dist/source/latex/animate/files/exp.mp @@ -1,12 +1,15 @@ % Jan Holecek, Alexander Grahn -% 2013/10/15 +% 2017/02/10 filenametemplate "%j_%c.mps"; verbatimtex \documentclass{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} -\usepackage{lmodern} +%\usepackage{lmodern} + \usepackage{libertine} + \usepackage[libertine]{newtxmath} + \usepackage[scaled=0.83]{luximono} %override beramono (doesn't look like tt font) \usepackage{amsmath} \begin{document} etex diff --git a/Master/texmf-dist/source/latex/animate/files/scarab.mp b/Master/texmf-dist/source/latex/animate/files/scarab.mp index 7f4a53ee483..4cb2e82ca53 100644 --- a/Master/texmf-dist/source/latex/animate/files/scarab.mp +++ b/Master/texmf-dist/source/latex/animate/files/scarab.mp @@ -7,7 +7,10 @@ verbatimtex \documentclass{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} -\usepackage{lmodern} +%\usepackage{lmodern} + \usepackage{libertine} + \usepackage[libertine]{newtxmath} + \usepackage[scaled=0.83]{luximono} %override beramono (doesn't look like tt font) \usepackage{amsmath} \begin{document} etex |