texlive[43095] Master/texmf-dist: animate (30jan17)

commits+karl at tug.org commits+karl at tug.org
Tue Jan 31 00:31:42 CET 2017


Revision: 43095
          http://tug.org/svn/texlive?view=revision&revision=43095
Author:   karl
Date:     2017-01-31 00:31:42 +0100 (Tue, 31 Jan 2017)
Log Message:
-----------
animate (30jan17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
    trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
    trunk/Master/texmf-dist/source/latex/animate/animate.tex
    trunk/Master/texmf-dist/tex/latex/animate/animate.sty

Modified: trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2017-01-30 23:31:14 UTC (rev 43094)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2017-01-30 23:31:42 UTC (rev 43095)
@@ -1,3 +1,6 @@
+2017-01-30
+	* fix: usability in RTL typesetting context
+
 2017-01-24
 	* fix: minor documentation update
 

Modified: trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/animate/animate.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/animate/animate.tex	2017-01-30 23:31:14 UTC (rev 43094)
+++ trunk/Master/texmf-dist/source/latex/animate/animate.tex	2017-01-30 23:31:42 UTC (rev 43095)
@@ -13,8 +13,7 @@
 \usepackage{pst-3dplot}
 \usepackage{pst-node,pst-plot,pst-tools,pst-text,pst-ode}
 \usepackage{media9}
-%\usepackage[buttonbg=0.9]{animate}
-\usepackage[buttonbg=0.9,method=widget]{animate}
+\usepackage[buttonbg=0.9]{animate}
 \usepackage{intcalc}
 \usepackage{graphicx}
 \graphicspath{{files/}}
@@ -324,6 +323,7 @@
 measure
 \end{verbatim}
 Measures the frame rate during one cycle of the animation and prints the value to the JavaScript console of the Reader. (For testing purposes.)
+\hypertarget{beginend}{}%
 \begin{verbatim}
 begin={<begin text>}
 end={<end text>}
@@ -1277,6 +1277,8 @@
 
   \item Animations do not work if the PDF was produced with Ghostscript versions older than 9.15.
 
+  \item If the `\verb+animateinline+' environment is used in a right-to-left typesetting context (RTL), every frame's content should be enclosed in a pair of \verb+\beginR+ and \verb+\endR+ commands in order to correctly typeset RTL text contained therein. This can be conveniently done by means of the `\verb+begin+' and `\verb+end+' \hyperlink{beginend}{options} of the `\verb+animateinline+' environment.
+
 %  \item If the \LaTeX{} $\rightarrow$ \verb+dvips+ $\rightarrow$ \verb+ps2pdf+/Distiller route is being taken, make sure that the original graphics size (i.\,e. not scaled by any of the `{\tt scale}', `{\tt width}', `{\tt height}' or `{\tt totalheight}' options) does not exceed the page size of the final document. During PS to PDF conversion every graphic of the animation is temporarily moved to the upper left page corner. Those parts of the graphics that do not fit onto the document page will be clipped in the resulting PDF. Fortunately, graphics files for building animations may be resized easily to fit into a given bounding box by means of the `{\tt epsffit}' command line tool:
 %
 %\quad{\tt epsffit -c <llx> <lly> <urx> <ury> infile.eps outfile.eps}

Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2017-01-30 23:31:14 UTC (rev 43094)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2017-01-30 23:31:42 UTC (rev 43095)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 
-\def\@anim at version{2017/01/24}
+\def\@anim at version{2017/01/30}
 \ProvidesPackage{animate}
 [\@anim at version\space PDF animations from files and inline graphics]
 
@@ -1338,6 +1338,7 @@
   \fi%
   \@anim at reset% to default settings
   \begingroup% make use of graphic[xs] search path
+  \ifnum\TeXXeTstate>\z@\beginL\fi%
   \ifcsname Ginput at path\endcsname%
     \let\input at path\Ginput at path%
   \fi%
@@ -1441,6 +1442,7 @@
       \@anim at getkeyval{btncol:\@anim at bgcolour:\@anim at fgcolour\@anim at lscape}}%
     \@anim at endsanitize%
   \fi%
+  \ifnum\TeXXeTstate>\z@\endL\fi%
   \endgroup%
   \global\advance\@anim at num by \@ne%
 }%
@@ -1731,6 +1733,7 @@
   \leavevmode%
   \@anim at reset% to default settings
   \begingroup%
+  \ifnum\TeXXeTstate>\z@\beginL\fi%
   % make use of graphic[xs] search path
   \ifcsname Ginput at path\endcsname%
     \let\input at path\Ginput at path%
@@ -1786,6 +1789,7 @@
       \@anim at keytoaux{a\the\@anim at num.poster}{\@anim at maxframe}%
     \fi%
   \fi%
+  \ifnum\TeXXeTstate>\z@\endL\fi%
   \endgroup%
   \global\advance\@anim at num by \@ne%
 }



More information about the tex-live-commits mailing list