texlive[43131] Master/texmf-dist: animate (3feb17)

commits+karl at tug.org commits+karl at tug.org
Sat Feb 4 01:24:04 CET 2017


Revision: 43131
          http://tug.org/svn/texlive?view=revision&revision=43131
Author:   karl
Date:     2017-02-04 01:24:04 +0100 (Sat, 04 Feb 2017)
Log Message:
-----------
animate (3feb17)

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-02-04 00:23:49 UTC (rev 43130)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog	2017-02-04 00:24:04 UTC (rev 43131)
@@ -1,3 +1,6 @@
+2017-02-03
+	* fix: RTL related (luaTeX)
+
 2017-01-30
 	* fix: usability in RTL typesetting context
 

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-02-04 00:23:49 UTC (rev 43130)
+++ trunk/Master/texmf-dist/source/latex/animate/animate.tex	2017-02-04 00:24:04 UTC (rev 43131)
@@ -1277,7 +1277,7 @@
 
   \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 `\verb+animateinline+' environment is used in a right-to-left typesetting context (RTL) and using the (pdf)\LaTeX{} and \XeLaTeX{} engines, 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:
 %

Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2017-02-04 00:23:49 UTC (rev 43130)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty	2017-02-04 00:24:04 UTC (rev 43131)
@@ -13,7 +13,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 
-\def\@anim at version{2017/01/30}
+\def\@anim at version{2017/02/03}
 \ProvidesPackage{animate}
 [\@anim at version\space PDF animations from files and inline graphics]
 
@@ -1310,6 +1310,24 @@
   \fi
 \fi
 
+%environment for setting LTR typesetting direction
+\def\@anim at beginLTR{%
+  \ifdefined\textdir% LuaTeX
+    \begingroup%
+    \edef\@anim at curTxtDir{\the\textdir}%
+    \textdir TLT\relax%
+  \else%              e-TeX based engines
+    \ifnum\TeXXeTstate>\z@\beginL\fi%
+  \fi%
+}
+\def\@anim at endLTR{%
+  \ifdefined\textdir%
+    \endgroup%
+  \else%
+    \ifnum\TeXXeTstate>\z@\endL\fi%
+  \fi%
+}
+
 %user command for embedding animation sequence
 % #1: options
 % #2: frame rate (fps)
@@ -1338,7 +1356,7 @@
   \fi%
   \@anim at reset% to default settings
   \begingroup% make use of graphic[xs] search path
-  \ifnum\TeXXeTstate>\z@\beginL\fi%
+  \@anim at beginLTR%
   \ifcsname Ginput at path\endcsname%
     \let\input at path\Ginput at path%
   \fi%
@@ -1442,7 +1460,7 @@
       \@anim at getkeyval{btncol:\@anim at bgcolour:\@anim at fgcolour\@anim at lscape}}%
     \@anim at endsanitize%
   \fi%
-  \ifnum\TeXXeTstate>\z@\endL\fi%
+  \@anim at endLTR%
   \endgroup%
   \global\advance\@anim at num by \@ne%
 }%
@@ -1733,7 +1751,7 @@
   \leavevmode%
   \@anim at reset% to default settings
   \begingroup%
-  \ifnum\TeXXeTstate>\z@\beginL\fi%
+  \@anim at beginLTR%
   % make use of graphic[xs] search path
   \ifcsname Ginput at path\endcsname%
     \let\input at path\Ginput at path%
@@ -1789,7 +1807,7 @@
       \@anim at keytoaux{a\the\@anim at num.poster}{\@anim at maxframe}%
     \fi%
   \fi%
-  \ifnum\TeXXeTstate>\z@\endL\fi%
+  \@anim at endLTR%
   \endgroup%
   \global\advance\@anim at num by \@ne%
 }
@@ -1875,6 +1893,7 @@
 \def\@anim at beginframe{%
   \begingroup%
   \lrbox{\@anim at box}% store graphics in a box
+  \ifdefined\@anim at curTxtDir\textdir\@anim at curTxtDir\fi%
   \@anim at begin%
 }
 



More information about the tex-live-commits mailing list